You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change the default FetchContent behavior to search first
* fix compilation with openblas
* use a tagged version of costa in FetchContent
* fix build cosma ~scalapack
* remove language C
* fix name in CI
* update tiled-mm tag
# implementation. We have to sort out what we should find for the FindBLAS and
42
42
# GPU supports since they are treated as separate components
43
43
44
+
if(COSMA_BLASSTREQUAL"OFF")
45
+
message(FATAL_ERROR"A Blas implementation is needed when running on CPU only: choices are : auto, MKL, OPENBLAS, CRAY_LIBSCI, NVPL, CUSTOM, BLIS, ATLAS, FLEXIBLAS, ARMPL, GenericBLAS, CUDA or ROCM")
46
+
endif()
47
+
44
48
if (COSMA_BLASMATCHES"CUDA|ROCM")
45
49
set(COSMA_GPU_BACKEND${COSMA_BLAS})
46
50
else()
47
-
if(COSMA_BLASSTREQUAL"OFF")
48
-
message(FATAL_ERROR"A Blas implementation is needed when running on CPU only: choices are : auto, MKL, OPENBLAS, CRAY_LIBSCI, NVPL, CUSTOM, BLIS, ATLAS, FLEXIBLAS, ARMPL, GenericBLAS")
49
-
else()
50
-
set(COSMA_BLAS_VENDOR${COSMA_BLAS})
51
-
endif()
51
+
set(COSMA_BLAS_VENDOR${COSMA_BLAS})
52
52
endif()
53
53
54
-
if (COSMA_WITH_NCCLANDNOTCOSMA_GPU_BACKENDIN_LISTCOSMA_GPU_BACKENDS_LIST)
55
-
message(FATAL_ERROR"NCCL can only be used with the GPU backend.")
54
+
if ((COSMA_WITH_NCCLORCOSMA_WITH_RCCL)ANDNOTCOSMA_GPU_BACKENDIN_LISTCOSMA_GPU_BACKENDS_LIST)
55
+
message(FATAL_ERROR"NCCL (RCCL) can only be used with the GPU backend set to CUDA (ROCM).")
56
56
endif()
57
57
58
58
if (COSMA_WITH_GPU_AWARE_MPIANDNOTCOSMA_GPU_BACKENDIN_LISTCOSMA_GPU_BACKENDS_LIST)
59
-
message(FATAL_ERROR"GPU-aware MPI can only be used with the GPU backend.")
59
+
message(FATAL_ERROR"GPU-aware MPI can only be used with the GPU backend set to CUDA or ROCM.")
60
60
endif()
61
61
62
62
if(NOTCMAKE_BUILD_TYPE)
63
63
set(CMAKE_BUILD_TYPE"Release")
64
64
endif()
65
65
66
+
# Dependencies
67
+
# MPI
68
+
set(MPI_DETERMINE_LIBRARY_VERSIONTRUE)
69
+
find_package(MPICOMPONENTSCXXREQUIRED)
70
+
adjust_mpiexec_flags()
66
71
67
72
# check if scalapack backend is valid
68
73
message(STATUS"Selected SCALAPACK backend for COSMA: ${COSMA_SCALAPACK}")
74
+
69
75
if(NOTCOSMA_SCALAPACKIN_LISTCOSMA_SCALAPACK_LIST)
70
76
message(FATAL_ERROR"Invalid value for COSMA_SCALAPACK!")
71
77
endif()
@@ -79,53 +85,42 @@ if (NOT COSMA_SCALAPACK MATCHES "OFF")
79
85
endif()
80
86
endif()
81
87
82
-
if (NOTCOSMA_BLAS_VENDORMATCHES"OFF")
83
-
find_package(BlasREQUIRED)
84
-
endif()
85
88
86
-
# preserve rpaths when installing and make the install folder relocatable
0 commit comments