Date: Thursday, October 6, 2022 @ 08:20:27
  Author: svenstaro
Revision: 1321817

upgpkg: magma 2.6.2-3: cuda 11.8 rebuild

Added:
  magma/trunk/add_cuda_archs.patch
    (from rev 1321816, magma/trunk/add_cuda86_arch.patch)
Modified:
  magma/trunk/PKGBUILD
Deleted:
  magma/trunk/add_cuda86_arch.patch

-----------------------+
 PKGBUILD              |   10 +++++-----
 add_cuda86_arch.patch |   19 -------------------
 add_cuda_archs.patch  |   45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-06 08:07:08 UTC (rev 1321816)
+++ PKGBUILD    2022-10-06 08:20:27 UTC (rev 1321817)
@@ -5,7 +5,7 @@
 
 pkgname=magma
 pkgver=2.6.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Matrix Algebra on GPU and Multicore Architectures"
 arch=('x86_64')
 url="https://icl.utk.edu/magma/";
@@ -15,15 +15,15 @@
 optdepends=('python: for examples and tests'
             'gcc11-fortran: Fortran interface')
 
source=("${pkgname}-${pkgver}.tar.gz::https://icl.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz";
-        'add_cuda86_arch.patch')
+        'add_cuda_archs.patch')
 sha256sums=('75b554dab00903e2d10b972c913e50e7f88cbc62f3ae432b5a086c7e4eda0a71'
-            '896a6b66b4e3c10fab9bb3ae27b6783c2fad3ebd5e204d62da9fdec443bd6c15')
+            '1ed3706a65a124ecef71012273687307aac70bfc80bc99a978002dfb0ee000cc')
 options=(!lto)
 
 prepare() {
   cd "${pkgname}-${pkgver}"
 
-  patch -Np1 -i "${srcdir}/add_cuda86_arch.patch"
+  patch -Np1 -i "${srcdir}/add_cuda_archs.patch"
 }
 
 build() {
@@ -38,7 +38,7 @@
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DBUILD_SHARED_LIBS=ON \
-    -DGPU_TARGET="sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 sm_86"
+    -DGPU_TARGET="sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 sm_86 
sm_87 sm_89 sm_90"
   ninja -C build
 }
 

Deleted: add_cuda86_arch.patch
===================================================================
--- add_cuda86_arch.patch       2022-10-06 08:07:08 UTC (rev 1321816)
+++ add_cuda86_arch.patch       2022-10-06 08:20:27 UTC (rev 1321817)
@@ -1,19 +0,0 @@
-diff --color -aur magma-2.6.1-old/CMakeLists.txt magma-2.6.1-new/CMakeLists.txt
---- magma-2.6.1-old/CMakeLists.txt      2021-07-13 01:35:20.000000000 +0300
-+++ magma-2.6.1-new/CMakeLists.txt      2021-07-21 11:02:28.014236200 +0300
-@@ -294,6 +294,15 @@
-         message( STATUS "    compile for CUDA arch 8.0 (Ampere)" )
-     endif()
- 
-+    if (GPU_TARGET MATCHES sm_86)
-+        if (NOT MIN_ARCH)
-+            set( MIN_ARCH 860 )
-+        endif()
-+        set( NV_SM ${NV_SM} -gencode arch=compute_86,code=sm_86 )
-+        set( NV_COMP        -gencode arch=compute_86,code=compute_86 )
-+        message( STATUS "    compile for CUDA arch 8.6 (Ampere)" )
-+    endif()
-+
-     if (NOT MIN_ARCH)
-         message( FATAL_ERROR "GPU_TARGET must contain one or more of Fermi, 
Kepler, Maxwell, Pascal, Volta, Turing, Ampere, or valid sm_[0-9][0-9]" )
-     endif()

Copied: magma/trunk/add_cuda_archs.patch (from rev 1321816, 
magma/trunk/add_cuda86_arch.patch)
===================================================================
--- add_cuda_archs.patch                                (rev 0)
+++ add_cuda_archs.patch        2022-10-06 08:20:27 UTC (rev 1321817)
@@ -0,0 +1,45 @@
+--- magma-2.6.2lol/CMakeLists.txt      2022-10-06 07:08:50.732278629 +0200
++++ magma-2.6.2/CMakeLists.txt 2022-10-06 07:10:36.348650499 +0200
+@@ -294,6 +294,42 @@
+         message( STATUS "    compile for CUDA arch 8.0 (Ampere)" )
+     endif()
+ 
++    if (GPU_TARGET MATCHES sm_86)
++        if (NOT MIN_ARCH)
++            set( MIN_ARCH 860 )
++        endif()
++        set( NV_SM ${NV_SM} -gencode arch=compute_86,code=sm_86 )
++        set( NV_COMP        -gencode arch=compute_86,code=compute_86 )
++        message( STATUS "    compile for CUDA arch 8.6" )
++    endif()
++
++    if (GPU_TARGET MATCHES sm_87)
++        if (NOT MIN_ARCH)
++            set( MIN_ARCH 870 )
++        endif()
++        set( NV_SM ${NV_SM} -gencode arch=compute_87,code=sm_87 )
++        set( NV_COMP        -gencode arch=compute_87,code=compute_87 )
++        message( STATUS "    compile for CUDA arch 8.7" )
++    endif()
++
++    if (GPU_TARGET MATCHES sm_89)
++        if (NOT MIN_ARCH)
++            set( MIN_ARCH 890 )
++        endif()
++        set( NV_SM ${NV_SM} -gencode arch=compute_89,code=sm_89 )
++        set( NV_COMP        -gencode arch=compute_89,code=compute_89 )
++        message( STATUS "    compile for CUDA arch 8.9" )
++    endif()
++
++    if (GPU_TARGET MATCHES sm_90)
++        if (NOT MIN_ARCH)
++            set( MIN_ARCH 900 )
++        endif()
++        set( NV_SM ${NV_SM} -gencode arch=compute_90,code=sm_90 )
++        set( NV_COMP        -gencode arch=compute_90,code=compute_90 )
++        message( STATUS "    compile for CUDA arch 9.0" )
++    endif()
++
+     if (NOT MIN_ARCH)
+         message( FATAL_ERROR "GPU_TARGET must contain one or more of Fermi, 
Kepler, Maxwell, Pascal, Volta, Turing, Ampere, or valid sm_[0-9][0-9]" )
+     endif()

Reply via email to