P4 to Git Change 2021977 by kjayapra@1_HIPWS_LNX1_PAL on 2019/10/30 13:27:19

SWDEV-209747 - Improve HIP Error codes and debug messages.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#20 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_event.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#80 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_peer.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#47 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_profile.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_surface.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_texture.cpp#25 edit
This commit is contained in:
foreman
2019-10-30 13:37:03 -04:00
parent a0f8995e3a
commit e833ad571f
11 changed files with 60 additions and 59 deletions
+7 -7
View File
@@ -268,7 +268,7 @@ hipError_t hipCtxGetDevice(hipDevice_t* device) {
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorInvalidContext);
}
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion) {
@@ -276,7 +276,7 @@ hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipCtxGetCacheConfig(hipFuncCache_t* cacheConfig) {
@@ -284,7 +284,7 @@ hipError_t hipCtxGetCacheConfig(hipFuncCache_t* cacheConfig) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig) {
@@ -292,7 +292,7 @@ hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config) {
@@ -300,7 +300,7 @@ hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipCtxSynchronize(void) {
@@ -308,7 +308,7 @@ hipError_t hipCtxSynchronize(void) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipCtxGetFlags(unsigned int* flags) {
@@ -316,7 +316,7 @@ hipError_t hipCtxGetFlags(unsigned int* flags) {
assert(0 && "Unimplemented");
HIP_RETURN(hipErrorUnknown);
HIP_RETURN(hipErrorNotSupported);
}
hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int* flags, int* active) {