P4 to Git Change 1313477 by lmoriche@lmoriche_opencl_dev on 2016/09/12 17:22:37
SWDEV-94610 - Split the HSAILProgram::hsailOptions into preprocessorOptions amd codegenOptions. Pass the codegenOptions to the IR->ISA stage (linkImpl).
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#13 edit
[ROCm/clr commit: 64ed800f46]
이 커밋은 다음에 포함됨:
1 부모
bb8ebe5ed4
커밋
e52e05fe56
3 파일이 변경됨
+34
-23
검색과 일치하는 파일 없음
@@ -181,7 +181,7 @@ HSAILProgram::compileImpl_LC(
|
||||
driverOptions.append(" -include-pch " + pch->Name());
|
||||
driverOptions.append(" -Xclang -fno-validate-pch");
|
||||
|
||||
driverOptions.append(hsailOptions(options));
|
||||
driverOptions.append(preprocessorOptions(options));
|
||||
if (clVer >= 200) {
|
||||
std::stringstream opts;
|
||||
//Add only for CL2.0 and later
|
||||
@@ -197,7 +197,7 @@ HSAILProgram::compileImpl_LC(
|
||||
}
|
||||
|
||||
// Tokenize the options string into a vector of strings
|
||||
std::istringstream istrstr(driverOptions);
|
||||
std::istringstream istrstr(driverOptions + codegenOptions(options));
|
||||
std::istream_iterator<std::string> sit(istrstr), end;
|
||||
std::vector<std::string> params(sit, end);
|
||||
|
||||
@@ -347,7 +347,8 @@ HSAILProgram::compileImpl(
|
||||
}
|
||||
|
||||
//Compile source to IR
|
||||
this->compileOptions_.append(hsailOptions(options));
|
||||
this->compileOptions_.append(preprocessorOptions(options));
|
||||
this->compileOptions_.append(codegenOptions(options));
|
||||
|
||||
errorCode = g_complibApi._aclCompile(device().compiler(),
|
||||
binaryElf_,
|
||||
|
||||
새 이슈에서 참조
사용자 차단