Merge "SWDEV-110636 - added if statement so that output of clBuildProgram follows opencl specification" into amd-staging

Этот коммит содержится в:
Victor Zhang
2023-01-26 16:25:11 -05:00
коммит произвёл Gerrit Code Review
родитель 49c76fa04f 1fe9918576
Коммит a1beaf54a6
+3
Просмотреть файл
@@ -500,6 +500,9 @@ RUNTIME_ENTRY(cl_int, clBuildProgram,
if ((num_devices > 0 && device_list == NULL) || (num_devices == 0 && device_list != NULL)) {
return CL_INVALID_VALUE;
}
if (pfn_notify == nullptr && user_data != nullptr) {
return CL_INVALID_VALUE;
}
amd::Program* amdProgram = as_amd(program);