diff options
| author | Jacob Kahn <jacobkahn1@gmail.com> | 2020-12-04 18:47:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-04 16:47:00 -0800 |
| commit | 2835810bfa5fa9ebdf3d47aaa2b31f9426c65f58 (patch) | |
| tree | 9963ee897c7e1d31042d0cd52fdafe054da26f16 /ports/arrayfire/build.patch | |
| parent | 85739301a8e27fa5edc9ab9fb9111e839af3f046 (diff) | |
| download | vcpkg-2835810bfa5fa9ebdf3d47aaa2b31f9426c65f58.tar.gz vcpkg-2835810bfa5fa9ebdf3d47aaa2b31f9426c65f58.zip | |
[arrayfire] Update port to fix cuSparse issue with CUDA 10.1 (#14911)
Diffstat (limited to 'ports/arrayfire/build.patch')
| -rw-r--r-- | ports/arrayfire/build.patch | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/ports/arrayfire/build.patch b/ports/arrayfire/build.patch index c952f5f62..b2a4f279f 100644 --- a/ports/arrayfire/build.patch +++ b/ports/arrayfire/build.patch @@ -1,5 +1,5 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index e1108c60..670f271b 100644 +index 1f30a5b3..f93e4ed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,18 +104,11 @@ mark_as_advanced( @@ -62,13 +62,6 @@ index 2c7b96ea..b5006ee0 100644 endif() # Libraries -diff --git a/assets b/assets -index cd08d749..c53bfab9 160000 ---- a/assets -+++ b/assets -@@ -1 +1 @@ --Subproject commit cd08d749611b324012555ad6f23fd76c5465bd6c -+Subproject commit c53bfab909adfeed626f91ed419555711e20bca5 diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt index 967eaa63..ff04392c 100644 --- a/src/api/unified/CMakeLists.txt @@ -131,7 +124,7 @@ index 170bb0f3..c6e20177 100644 arrayfire_set_default_cxx_flags(afcpu) diff --git a/src/backend/cuda/CMakeLists.txt b/src/backend/cuda/CMakeLists.txt -index 7e3e4089..bbd8d838 100644 +index 7e3e4089..a3a53087 100644 --- a/src/backend/cuda/CMakeLists.txt +++ b/src/backend/cuda/CMakeLists.txt @@ -110,7 +110,11 @@ cuda_include_directories( @@ -147,6 +140,31 @@ index 7e3e4089..bbd8d838 100644 endif() file(GLOB jit_src "kernel/jit.cuh") +@@ -240,9 +244,14 @@ if(AF_WITH_NONFREE) + set(cxx_definitions -DAF_WITH_NONFREE_SIFT) + endif() + ++# New API of cuSparse was introduced in 10.1.168 for Linux and the older ++# 10.1.105 fix version doesn't it. Unfortunately, the new API was introduced in ++# in a fix release of CUDA - unconventionally. As CMake's FindCUDA module ++# doesn't provide patch/fix version number, we use 10.2 as the minimum ++# CUDA version to enable this new cuSparse API. + if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR + (UNIX AND +- CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0)) ++ CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1)) + list(APPEND cxx_definitions -DAF_USE_NEW_CUSPARSE_API) + endif() + +@@ -301,7 +310,7 @@ set_target_properties(af_cuda_static_cuda_library + + if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR + (UNIX AND +- CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0)) ++ CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1)) + target_compile_definitions(af_cuda_static_cuda_library PRIVATE AF_USE_NEW_CUSPARSE_API) + endif() + diff --git a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt index 9a796c9e..d9864b00 100644 --- a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt @@ -191,10 +209,3 @@ index d618ff2f..9f517398 100644 ) set_target_properties(opencl_sort_by_key_${SBK_TYPE} -diff --git a/test/data b/test/data -index 408f4405..6a48c886 160000 ---- a/test/data -+++ b/test/data -@@ -1 +1 @@ --Subproject commit 408f44059015c57a66e13b4c98df86ebcb427950 -+Subproject commit 6a48c88658bcd68392e99344714cb0dccd4ec285 |
