P4 to Git Change 1594075 by skudchad@skudchad-lnx on 2018/08/15 14:00:33

SWDEV-145570 - [HIP] Fix some test failures

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#14 edit


[ROCm/hip commit: c998b3c3e2]
Tento commit je obsažen v:
foreman
2018-08-15 14:13:08 -04:00
rodič 3c4e2d4529
revize cd7d8c49c5
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
+3 -1
Zobrazit soubor
@@ -155,7 +155,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
//FIXME: should we cache the props, or just select from deviceHandle->info_?
hipDeviceProp_t prop = {0};
hipError_t err = hipGetDeviceProperties(&prop, device);
if (err != hipSuccess) HIP_RETURN(err);
if (err != hipSuccess) {
HIP_RETURN(err);
}
switch (attr) {
case hipDeviceAttributeMaxThreadsPerBlock: