P4 to Git Change 1446561 by smekhano@stas-mwamba-rocm on 2017/08/13 15:22:24
SWDEV-127767 - COmplib: process -fuse-native option with LC Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#41 edit
This commit is contained in:
@@ -896,6 +896,13 @@ processOption(int OptDescTableIx, Options& Opts, const std::string& Value,
|
||||
}
|
||||
break;
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
case OID_OptUseNative:
|
||||
Opts.llvmOptions.append(" -mllvm -amdgpu-use-native=");
|
||||
Opts.llvmOptions.append(sval);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case OID_WFComma:
|
||||
case OID_WBComma:
|
||||
case OID_WHComma:
|
||||
|
||||
@@ -260,7 +260,7 @@ bool LightningProgram::compileImpl(const std::string& sourceCode,
|
||||
driverOptions.append(hsailOptions(options));
|
||||
|
||||
// Set whole program mode
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all");
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all -mllvm -amdgpu-prelink");
|
||||
|
||||
// Find the temp folder for the OS
|
||||
std::string tempFolder = amd::Os::getEnvironment("TEMP");
|
||||
|
||||
@@ -100,7 +100,7 @@ bool HSAILProgram::compileImpl_LC(const std::string& sourceCode,
|
||||
driverOptions.append(options->llvmOptions);
|
||||
|
||||
// Set whole program mode
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all");
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all -mllvm -amdgpu-prelink");
|
||||
|
||||
driverOptions.append(preprocessorOptions(options));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user