spec: link ompstub if the optimization profile is not "openmp"
This commit is contained in:
@@ -333,6 +333,12 @@ export async function runSPEC({
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let libs = compilerSuite === "llvm" ? cflangLibs(prefix) : [];
|
||||||
|
|
||||||
|
if (optimizeProfile !== "openmp") {
|
||||||
|
libs.push("-lompstub");
|
||||||
|
}
|
||||||
|
|
||||||
// Spawn SPEC process with configuration
|
// Spawn SPEC process with configuration
|
||||||
const specProc = await spawnSPECWithID(
|
const specProc = await spawnSPECWithID(
|
||||||
specInstance,
|
specInstance,
|
||||||
@@ -360,7 +366,7 @@ export async function runSPEC({
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
compilerPaths: toolchain(compilerPrefix, compilerSuite as ToolchainSuite),
|
compilerPaths: toolchain(compilerPrefix, compilerSuite as ToolchainSuite),
|
||||||
libs: compilerSuite === "llvm" ? cflangLibs(prefix) : [],
|
libs,
|
||||||
specialFlags: getSpecialFlags(),
|
specialFlags: getSpecialFlags(),
|
||||||
openmp: {
|
openmp: {
|
||||||
threads: optimizeProfile === "openmp" ? 64 : 1,
|
threads: optimizeProfile === "openmp" ? 64 : 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user