P4 to Git Change 1596023 by skudchad@skudchad_test2_win_opencl on 2018/08/20 18:40:38
SWDEV-145570 - [HIP] Fixes to HIP env var logic
ReviewBoardURL = http://ocltc.amd.com/reviews/r/15653/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#15 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#225 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#311 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#105 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#96 edit
[ROCm/clr commit: 188c4e9bd7]
This commit is contained in:
@@ -96,10 +96,8 @@ hipError_t ihipDeviceGetCount(int* count) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
auto* deviceHandle = g_devices[0]->devices()[0];
|
||||
|
||||
// Get all available devices
|
||||
*count = deviceHandle->isOrdinalValid() ? g_devices.size() : 0;
|
||||
*count = g_devices.size();
|
||||
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user