SWDEV-508590 - Fix segfault issue with hipModuleLoad

- Ensuring devProgram pointer isn't nullptr

Change-Id: Ia5786d0a2441f3a512d79b4998eb314beb98b35e
このコミットが含まれているのは:
Pengda Xie
2025-01-13 21:31:25 -08:00
committed by Pengda Xie
コミット f76733e5b8
+1 -1
ファイルの表示
@@ -132,7 +132,7 @@ int32_t Program::addDeviceProgram(Device& device, const void* image, size_t leng
Device& rootDev = device;
// if the rootDev is already associated with a program
if (devicePrograms_[&rootDev] != NULL) {
if (getDeviceProgram(rootDev) != NULL) {
return CL_SUCCESS;
}