diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/magma/sm_37.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/magma/sm_37.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/magma/sm_37.patch b/var/spack/repos/builtin/packages/magma/sm_37.patch new file mode 100644 index 0000000000..0d7eaf0dce --- /dev/null +++ b/var/spack/repos/builtin/packages/magma/sm_37.patch @@ -0,0 +1,27 @@ +--- a/CMakeLists.txt 2021-06-19 15:53:21.028881552 +0000 ++++ b/CMakeLists.txt 2021-06-19 15:54:09.204228276 +0000 +@@ -132,7 +132,7 @@ + endif() + + if (GPU_TARGET MATCHES Kepler) +- set( GPU_TARGET "${GPU_TARGET} sm_30 sm_35" ) ++ set( GPU_TARGET "${GPU_TARGET} sm_30 sm_35 sm_37" ) + endif() + + if (GPU_TARGET MATCHES Maxwell) +@@ -182,6 +182,15 @@ + message( STATUS " compile for CUDA arch 3.5 (Kepler)" ) + endif() + ++ if (GPU_TARGET MATCHES sm_37) ++ if (NOT MIN_ARCH) ++ set( MIN_ARCH 300 ) ++ endif() ++ set( NV_SM ${NV_SM} -gencode arch=compute_37,code=sm_37 ) ++ set( NV_COMP -gencode arch=compute_37,code=compute_37 ) ++ message( STATUS " compile for CUDA arch 3.7 (Kepler)" ) ++ endif() ++ + if (GPU_TARGET MATCHES sm_50) + if (NOT MIN_ARCH) + set( MIN_ARCH 500 ) |