P4 to Git Change 1392064 by smekhano@stas-mwamba-rocm on 2017/03/29 13:38:24
SWDEV-116959 - ROCm OpenCL: split -amdgpu-internalize-symbols and -amdgpu-early-inline-all
We shall not run internalize pass in FE, it breaks separate compilation.
Thus two options are split now.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#38 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#61 edit
[ROCm/clr commit: a831af4af0]
Bu işleme şunda yer alıyor:
@@ -273,7 +273,7 @@ LightningProgram::compileImpl(
|
||||
driverOptions.append(hsailOptions(options));
|
||||
|
||||
// Set whole program mode
|
||||
driverOptions.append(" -mllvm -amdgpu-internalize-symbols");
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all");
|
||||
|
||||
//Find the temp folder for the OS
|
||||
std::string tempFolder = amd::Os::getEnvironment("TEMP");
|
||||
|
||||
@@ -1511,7 +1511,7 @@ LightningProgram::linkImpl(amd::option::Options *options)
|
||||
codegenOptions.append(" ").append(ostrstr.str());
|
||||
|
||||
// Set whole program mode
|
||||
codegenOptions.append(" -mllvm -amdgpu-internalize-symbols");
|
||||
codegenOptions.append(" -mllvm -amdgpu-internalize-symbols -mllvm -amdgpu-early-inline-all");
|
||||
|
||||
// Tokenize the options string into a vector of strings
|
||||
std::istringstream strstr(codegenOptions);
|
||||
|
||||
@@ -100,7 +100,7 @@ HSAILProgram::compileImpl_LC(
|
||||
driverOptions.append(options->llvmOptions);
|
||||
|
||||
// Set whole program mode
|
||||
driverOptions.append(" -mllvm -amdgpu-internalize-symbols");
|
||||
driverOptions.append(" -mllvm -amdgpu-early-inline-all");
|
||||
|
||||
driverOptions.append(preprocessorOptions(options));
|
||||
|
||||
|
||||
@@ -820,7 +820,7 @@ HSAILProgram::linkImpl_LC(amd::option::Options *options)
|
||||
codegenOptions.append(" ").append(ostrstr.str());
|
||||
|
||||
// Set whole program mode
|
||||
codegenOptions.append(" -mllvm -amdgpu-internalize-symbols");
|
||||
codegenOptions.append(" -mllvm -amdgpu-internalize-symbols -mllvm -amdgpu-early-inline-all");
|
||||
|
||||
// Tokenize the options string into a vector of strings
|
||||
std::istringstream strstr(codegenOptions);
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle