SWDEV-234295 - Dont clear device programs during amd::program::build()

Change-Id: I87bc7e2c830edee783ee490bbb087492467f2704


[ROCm/clr commit: e9bd41bf1a]
이 커밋은 다음에 포함됨:
kjayapra-amd 작성하고 Karthik Jayaprakash가 2020-06-03 12:18:25 -04:00를 커밋함
1 부모 41d93c5cad
커밋 a9ead10354
2 파일이 변경됨
+6 -4

검색과 일치하는 파일 없음

+5 -3
파일 보기
@@ -469,7 +469,7 @@ void Program::StubProgramSource(const std::string& app_name) {
int32_t Program::build(const std::vector<Device*>& devices, const char* options,
void(CL_CALLBACK* notifyFptr)(cl_program, void*), void* data,
bool optionChangable) {
bool optionChangable, bool newDevProg) {
ScopedLock sl(buildLock_);
int32_t retval = CL_SUCCESS;
@@ -485,8 +485,10 @@ int32_t Program::build(const std::vector<Device*>& devices, const char* options,
StubProgramSource(devices[0]->appProfile()->appFileName());
}
// Clear the program object
clear();
if (newDevProg) {
// Clear the program object
clear();
}
// Process build options.
std::string cppstr(options ? options : "");