P4 to Git Change 1979482 by zukhan@zukhan-ocl-win10 on 2019/08/07 11:30:33
SWDEV-196326 - [hipclang-vdi-rocm]: [FBA-80]: Runtime error when all GPUs are hidden by ROCR_VISIBLE_DEVICES - Adjusted hipGetDeviceCount to return "hipErrorNoDevice". - This was done to match the same behaviour as HIP-HCC, and API spec for when no devices are found. Rather then return "count = 0" as it did. ReviewBoardURL = http://ocltc.amd.com/reviews/r/17789/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#22 edit
这个提交包含在:
1 父节点
042a4c2bb2
当前提交
7f0373f2e3
1 个文件已更改
+4
@@ -99,6 +99,10 @@ hipError_t ihipDeviceGetCount(int* count) {
|
||||
// Get all available devices
|
||||
*count = g_devices.size();
|
||||
|
||||
if (*count < 1) {
|
||||
return hipErrorNoDevice;
|
||||
}
|
||||
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户