SWDEV-534394 - Kernel launch stream check (#533)
hipErrorInvalidResourceHandle is returned if stream is not on the launching device
[ROCm/clr commit: 7e777d3755]
这个提交包含在:
@@ -429,6 +429,9 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, amd::LaunchParams& launch_par
|
||||
uint64_t prevGridSum = 0, uint64_t allGridSum = 0,
|
||||
uint32_t firstDevice = 0) {
|
||||
int deviceId = hip::Stream::DeviceId(hStream);
|
||||
if (deviceId != ihipGetDevice()) {
|
||||
return hipErrorInvalidResourceHandle;
|
||||
}
|
||||
HIP_RETURN_ONFAIL(PlatformState::instance().initStatManagedVarDevicePtr(deviceId));
|
||||
|
||||
if (f == nullptr) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户