[arch-commits] Commit in magma/trunk (PKGBUILD cuda11.patch)

Konstantin Gizdov kgizdov at archlinux.org
Mon Jun 22 14:04:09 UTC 2020


    Date: Monday, June 22, 2020 @ 14:04:08
  Author: kgizdov
Revision: 650558

update patch

Modified:
  magma/trunk/PKGBUILD
  magma/trunk/cuda11.patch

--------------+
 PKGBUILD     |    2 +-
 cuda11.patch |   28 ++++++++++++++++++++++++++--
 2 files changed, 27 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-22 13:51:44 UTC (rev 650557)
+++ PKGBUILD	2020-06-22 14:04:08 UTC (rev 650558)
@@ -17,7 +17,7 @@
 source=("${pkgname}-${pkgver}.tar.gz::http://icl.cs.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz"
         'cuda11.patch')
 sha256sums=('c602d269a9f9a3df28f6a4f593be819abb12ed3fa413bba1ff8183de721c5ef6'
-            '958467ea765b025a89b53bb74d7aea476d01c926ae0631ba0ed5520f9c697646')
+            '7a32d8de6fa845131eed3f7345baeb1531ef1d3cfa7e565b258e4cfbbaa66a5c')
 
 prepare() {
   mkdir "${srcdir}"/build

Modified: cuda11.patch
===================================================================
--- cuda11.patch	2020-06-22 13:51:44 UTC (rev 650557)
+++ cuda11.patch	2020-06-22 14:04:08 UTC (rev 650558)
@@ -1,6 +1,15 @@
 diff -aur --color magma-2.5.3-old/CMakeLists.txt magma-2.5.3-new/CMakeLists.txt
---- magma-2.5.3-old/CMakeLists.txt	2020-03-30 03:48:20.000000000 +0300
-+++ magma-2.5.3-new/CMakeLists.txt	2020-06-22 13:45:54.865895509 +0300
+--- magma-2.5.3-old/CMakeLists.txt  2020-06-22 16:18:13.789152294 +0300
++++ magma-2.5.3-new/CMakeLists.txt  2020-06-22 17:00:01.365798021 +0300
+@@ -101,7 +101,7 @@
+
+ # ----------------------------------------
+ # locate CUDA libraries
+-set( GPU_TARGET "Kepler Maxwell Pascal" CACHE STRING "CUDA architectures to compile for; one or more of Fermi, Kepler, Maxwell, Pascal, Volta, or valid sm_[0-9][0-9]" )
++set( GPU_TARGET "Kepler Maxwell Pascal" CACHE STRING "CUDA architectures to compile for; one or more of Fermi, Kepler, Maxwell, Pascal, Volta, Turing, Ampere or valid sm_[0-9][0-9]" )
+ find_package( CUDA )
+ if (CUDA_FOUND)
+     message( STATUS "Found CUDA ${CUDA_VERSION}" )
 @@ -151,6 +151,10 @@
          set( GPU_TARGET "${GPU_TARGET} sm_75" )
      endif()
@@ -31,3 +40,18 @@
      endif()
  
          set( CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -fPIC -DHAVE_CUBLAS ${NV_SM} ${NV_COMP} ${FORTRAN_CONVENTION} )
+diff -aur --color magma-2.5.3-old/interface_cuda/interface.cpp magma-2.5.3-new/interface_cuda/interface.cpp
+--- magma-2.5.3-old/interface_cuda/interface.cpp	2020-03-30 03:48:24.000000000 +0300
++++ magma-2.5.3-new/interface_cuda/interface.cpp	2020-06-22 15:48:15.192500739 +0300
+@@ -458,7 +458,11 @@
+             err = cudaPointerGetAttributes( &attr, const_cast<void*>( A ));
+             if ( ! err ) {
+                 // definitely know type
++#if (CUDA_VERSION >= 10000)
++                return (attr.type == cudaMemoryTypeDevice);
++#else
+                 return (attr.memoryType == cudaMemoryTypeDevice);
++#endif
+             }
+             else if ( err == cudaErrorInvalidValue ) {
+                 // clear error; see http://icl.cs.utk.edu/magma/forum/viewtopic.php?f=2&t=529



More information about the arch-commits mailing list