Skip to content

Fix: remove CUDA_ERROR_INVALID_RESOURCE_TYPE #1088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,11 @@ if(UMF_BUILD_CUDA_PROVIDER AND (NOT UMF_CUDA_INCLUDE_DIR))
set(CUDA_INCLUDE_DIRS
${cuda-headers_SOURCE_DIR}
CACHE PATH "Path to CUDA headers")
message(STATUS "CUDA include directory: ${CUDA_INCLUDE_DIRS}")
message(STATUS "CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")
elseif(UMF_BUILD_CUDA_PROVIDER)
# Only header is needed to build UMF
set(CUDA_INCLUDE_DIRS ${UMF_CUDA_INCLUDE_DIR})
message(STATUS "CUDA include directory: ${CUDA_INCLUDE_DIRS}")
message(STATUS "CUDA_INCLUDE_DIRS = ${CUDA_INCLUDE_DIRS}")
endif()

# This build type check is not possible on Windows when CMAKE_BUILD_TYPE is not
Expand Down
1 change: 0 additions & 1 deletion src/provider/provider_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ static umf_result_t cu2umf_result(CUresult result) {
return UMF_RESULT_ERROR_OUT_OF_HOST_MEMORY;
case CUDA_ERROR_INVALID_VALUE:
case CUDA_ERROR_INVALID_HANDLE:
case CUDA_ERROR_INVALID_RESOURCE_TYPE:
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
default:
cu_store_last_native_error(result);
Expand Down
Loading