SWDEV-297217 - Append user options after default options

Change-Id: I1bdd309f98997f805357baa5d3ff36063797460c
이 커밋은 다음에 포함됨:
Jatin Chaudhary 작성하고 Jatin Chaudhary가 2021-09-21 15:12:36 -04:00를 커밋함
1 부모 7aaad05910
커밋 c250a13849
1 파일이 변경됨
+5 -1
+5 -1
파일 보기
@@ -244,7 +244,8 @@ hiprtcResult hiprtcCompileProgram(hiprtcProgram prog, int numOptions, const char
amd::Program* program = as_amd(reinterpret_cast<cl_program>(prog));
std::ostringstream ostrstr;
std::vector<std::string> oarr(&options[0], &options[numOptions]);
std::vector<std::string> oarr;
oarr.reserve(numOptions + 12);
const std::string hipVerOpt{"--hip-version=" + std::to_string(HIP_VERSION_MAJOR) + '.' +
std::to_string(HIP_VERSION_MINOR) + '.' +
@@ -269,6 +270,9 @@ hiprtcResult hiprtcCompileProgram(hiprtcProgram prog, int numOptions, const char
#endif
#endif
// Append the rest of options
oarr.insert(oarr.end(), &options[0], &options[numOptions]);
transformOptions(oarr, program);
std::copy(oarr.begin(), oarr.end(), std::ostream_iterator<std::string>(ostrstr, " "));