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
이 커밋은 다음에 포함됨:
foreman
2018-08-15 14:13:08 -04:00
부모 2ec2cfd3c1
커밋 ad4ae89d13
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
+3 -1
파일 보기
@@ -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:
+1 -1
파일 보기
@@ -67,7 +67,7 @@ extern amd::Memory* getMemoryObject(const void* ptr, size_t& offset);
#define HIP_RETURN(ret) \
hip::g_lastError = ret; \
return ret; \
return hip::g_lastError; \
#endif // HIP_SRC_HIP_INTERNAL_H