spec: add cam4, roms, and wrf
This commit is contained in:
@@ -7,19 +7,38 @@ export interface HaveSPECObjects {
|
|||||||
export interface SPECBenchData {
|
export interface SPECBenchData {
|
||||||
num: number;
|
num: number;
|
||||||
name: string;
|
name: string;
|
||||||
exe: string;
|
}
|
||||||
|
|
||||||
|
export function dotifyBench(bench: SPECBenchData): string {
|
||||||
|
return `${bench.num}.${bench.name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function benchpath(specdir: string, bench: SPECBenchData): string {
|
export function benchpath(specdir: string, bench: SPECBenchData): string {
|
||||||
return path.join(specdir, 'benchspec', 'CPU', `${bench.num}.${bench.name}`);
|
return path.join(specdir, 'benchspec', 'CPU', dotifyBench(bench));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function exepath(specdir: string, bench: SPECBenchData): string {
|
export function exepath(specdir: string, bench: SPECBenchData): string {
|
||||||
const benchmarkDir = benchpath(specdir, bench);
|
const benchmarkDir = benchpath(specdir, bench);
|
||||||
return path.join(benchmarkDir, 'exe', bench.exe);
|
return path.join(benchmarkDir, 'exe');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function buildpath(specdir: string, bench: SPECBenchData): string {
|
export function buildpath(specdir: string, bench: SPECBenchData): string {
|
||||||
const benchmarkDir = benchpath(specdir, bench);
|
const benchmarkDir = benchpath(specdir, bench);
|
||||||
return path.join(benchmarkDir, 'build');
|
return path.join(benchmarkDir, 'build');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const cam4: SPECBenchData = {
|
||||||
|
name: 'cam4_s',
|
||||||
|
num: 627,
|
||||||
|
};
|
||||||
|
|
||||||
|
export const roms: SPECBenchData = {
|
||||||
|
name: 'roms_s',
|
||||||
|
num: 654,
|
||||||
|
};
|
||||||
|
|
||||||
|
export const wrf: SPECBenchData = {
|
||||||
|
name: 'wrf_s',
|
||||||
|
num: 621,
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user