SWDEV-325799 - Fix segfault with hipStreamPerThread

Change-Id: Ie6d4bf55131d65590234796443373b968a21b3d2


[ROCm/clr commit: 53b4888113]
이 커밋은 다음에 포함됨:
Sarbojit Sarkar 작성하고 Sarbojit Sarkar가 2022-03-07 06:19:05 -05:00를 커밋함
1 부모 98fef69edd
커밋 bb53dfb244
1 파일이 변경됨
+6
+6
파일 보기
@@ -553,6 +553,12 @@ hipError_t ihipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsL
if ((numDevices > numActiveGPUs) || (launchParamsList == nullptr)) {
return hipErrorInvalidValue;
}
// Validate all streams passed by user
for (int i = 0; i < numDevices; ++i) {
if (!hip::isValid(launchParamsList[i].stream)) {
return hipErrorInvalidValue;
}
}
uint64_t allGridSize = 0;
std::vector<const amd::Device*> mgpu_list(numDevices);