mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-07 23:42:12 +01:00

new file: b/Blender/Blender-3.1.0-GCC-10.3.0.eb new file: b/Boost/Boost-1.77.0-GCC-10.2.0-Python-3.8.6.eb new file: b/Boost/Boost-1.77.0-intel-compilers-2021.4.0-Python-3.9.6.eb modified: c/CUDAcore/CUDAcore-11.6.0.eb new file: d/DualSPHysics/DualSPHysics-5.0.175-GCC-11.2.0-CUDA-11.6.0.eb new file: d/DualSPHysics/DualSPHysics-5.0.175-GCC-11.2.0.eb new file: d/DualSPHysics/DualSPHysics-5.0.175.patch new file: h/hwloc/hwloc-1.11.7-GCC-10.2.0.eb modified: o/ORCA/ORCA-4.2.0-OpenMPI-3.1.4.eb modified: o/ORCA/ORCA-4.2.1-OpenMPI-3.1.4.eb new file: o/OpenMPI/OpenMPI-3.1.4-GCC-10.2.0.eb new file: q/QEMU/QEMU-6.2.0-VDE2.eb new file: s/sqsgenerator/sqsgenerator-0.0.5-GCC-10.2.0-Python-3.8.6.eb new file: s/sqsgenerator/sqsgenerator-0.1-GCC-10.2.0-Python-3.8.6.eb
28 lines
2.2 KiB
Diff
28 lines
2.2 KiB
Diff
Author: Robert Mijakovic <robert.mijakovic@lxp.lu>
|
|
Adds newly supported code generation for CUDA 11.
|
|
diff -Naur DualSPHysics-5.0.175/src/source/CMakeLists.txt DualSPHysics-5.0.175/src/source/CMakeLists.txt
|
|
--- DualSPHysics-5.0.175/src/source/CMakeLists.txt 2021-02-25 18:46:13.000000000 +0100
|
|
+++ DualSPHysics-5.0.175/src/source/CMakeLists.txt 2021-10-13 18:46:17.000000000 +0200
|
|
@@ -52,9 +52,12 @@
|
|
elseif(CUDA_VERSION VERSION_GREATER "7.4" AND CUDA_VERSION VERSION_LESS "9.1")
|
|
message("Using cuda version >=7.5 and <9.1")
|
|
list(APPEND CUDA_NVCC_FLAGS "-use_fast_math -O3 -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\"")
|
|
- else()
|
|
- message("Using cuda version >=9.1")
|
|
+ elseif(CUDA_VERSION VERSION_GREATER "9.1" AND CUDA_VERSION VERSION_LESS "11.1")
|
|
+ message("Using cuda version >=9.1 and <11.1")
|
|
list(APPEND CUDA_NVCC_FLAGS "-use_fast_math -O3 -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_70,code=\"sm_70,compute_70\"")
|
|
+ else()
|
|
+ message("Using cuda version >=11.1")
|
|
+ list(APPEND CUDA_NVCC_FLAGS "-use_fast_math -O3 -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" -gencode=arch=compute_80,code=\"sm_80,compute_80\"")
|
|
endif()
|
|
else()
|
|
message("CUDA Libraries were not found.")
|
|
@@ -201,4 +204,4 @@
|
|
string(REGEX REPLACE "/MD" "/MT" ${CPP_FLAGS} "${${CPP_FLAGS}}")
|
|
endif(${CPP_FLAGS} MATCHES "/MD")
|
|
endforeach(CPP_FLAGS)
|
|
-endif()
|
|
\ No newline at end of file
|
|
+endif()
|