upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / magma / trunk / add_cuda_archs.patch
blob94735b250fc10a78cb79522f79ba7e224fe55b00
1 --- magma-2.6.2lol/CMakeLists.txt 2022-10-06 07:08:50.732278629 +0200
2 +++ magma-2.6.2/CMakeLists.txt 2022-10-06 07:10:36.348650499 +0200
3 @@ -294,6 +294,42 @@
4 message( STATUS " compile for CUDA arch 8.0 (Ampere)" )
5 endif()
7 + if (GPU_TARGET MATCHES sm_86)
8 + if (NOT MIN_ARCH)
9 + set( MIN_ARCH 860 )
10 + endif()
11 + set( NV_SM ${NV_SM} -gencode arch=compute_86,code=sm_86 )
12 + set( NV_COMP -gencode arch=compute_86,code=compute_86 )
13 + message( STATUS " compile for CUDA arch 8.6" )
14 + endif()
16 + if (GPU_TARGET MATCHES sm_87)
17 + if (NOT MIN_ARCH)
18 + set( MIN_ARCH 870 )
19 + endif()
20 + set( NV_SM ${NV_SM} -gencode arch=compute_87,code=sm_87 )
21 + set( NV_COMP -gencode arch=compute_87,code=compute_87 )
22 + message( STATUS " compile for CUDA arch 8.7" )
23 + endif()
25 + if (GPU_TARGET MATCHES sm_89)
26 + if (NOT MIN_ARCH)
27 + set( MIN_ARCH 890 )
28 + endif()
29 + set( NV_SM ${NV_SM} -gencode arch=compute_89,code=sm_89 )
30 + set( NV_COMP -gencode arch=compute_89,code=compute_89 )
31 + message( STATUS " compile for CUDA arch 8.9" )
32 + endif()
34 + if (GPU_TARGET MATCHES sm_90)
35 + if (NOT MIN_ARCH)
36 + set( MIN_ARCH 900 )
37 + endif()
38 + set( NV_SM ${NV_SM} -gencode arch=compute_90,code=sm_90 )
39 + set( NV_COMP -gencode arch=compute_90,code=compute_90 )
40 + message( STATUS " compile for CUDA arch 9.0" )
41 + endif()
43 if (NOT MIN_ARCH)
44 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]" )
45 endif()