Skip to content

Commit ace9f4a

Browse files
authored
Merge pull request #1088 from ldorau/Fix_remove_CUDA_ERROR_INVALID_RESOURCE_TYPE
Fix: remove `CUDA_ERROR_INVALID_RESOURCE_TYPE`
2 parents f046ffd + 316c220 commit ace9f4a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@ if(UMF_BUILD_CUDA_PROVIDER AND (NOT UMF_CUDA_INCLUDE_DIR))
454454
set(CUDA_INCLUDE_DIRS
455455
${cuda-headers_SOURCE_DIR}
456456
CACHE PATH "Path to CUDA headers")
457-
message(STATUS "CUDA include directory: ${CUDA_INCLUDE_DIRS}")
457+
message(STATUS "CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")
458458
elseif(UMF_BUILD_CUDA_PROVIDER)
459459
# Only header is needed to build UMF
460460
set(CUDA_INCLUDE_DIRS ${UMF_CUDA_INCLUDE_DIR})
461-
message(STATUS "CUDA include directory: ${CUDA_INCLUDE_DIRS}")
461+
message(STATUS "CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")
462462
endif()
463463

464464
# This build type check is not possible on Windows when CMAKE_BUILD_TYPE is not

src/provider/provider_cuda.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ static umf_result_t cu2umf_result(CUresult result) {
150150
return UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY;
151151
case CUDA_ERROR_INVALID_VALUE:
152152
case CUDA_ERROR_INVALID_HANDLE:
153-
case CUDA_ERROR_INVALID_RESOURCE_TYPE:
154153
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
155154
default:
156155
cu_store_last_native_error(result);

0 commit comments

Comments
 (0)