-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.LEONARDO
More file actions
36 lines (30 loc) · 1.39 KB
/
Makefile.LEONARDO
File metadata and controls
36 lines (30 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -------------------------
# Makefile.LEONARDO
# CINECA Leonardo — nvcc, OpenMPI, NVHPC
# -------------------------
CXX := nvcc
# -- System paths (Configured for Leonardo NVHPC/OpenMPI) --
CUDA_HOME := /leonardo/prod/spack/06/install/0.22/linux-rhel8-icelake/gcc-8.5.0/nvhpc-24.5-torlmnyzcexnrs6pq4cccabv7ehkv3xy/Linux_x86_64/24.5/cuda
NCCL_HOME := /leonardo/prod/spack/06/install/0.22/linux-rhel8-icelake/gcc-8.5.0/nvhpc-24.5-torlmnyzcexnrs6pq4cccabv7ehkv3xy/Linux_x86_64/24.5/comm_libs/nccl
MPI_HOME := /leonardo/prod/spack/06/install/0.22/linux-rhel8-icelake/gcc-12.2.0/openmpi-4.1.6-jnvfio5kii7e7oba2bu4jsgzr4nvwhkw
# On Leonardo, OpenMPI is usually CUDA-aware by default.
MPICUDA_HOME := $(MPI_HOME)
# -------------------------------------------------------
# Config: nccl
# CUDA buffers + NCCL collectives
# -------------------------------------------------------
CONFIGS += nccl
BACKEND_nccl := nccl
EXTRA_CXXFLAGS_nccl := -arch=sm_80
# -------------------------------------------------------
# Config: mpi_gpu_cuda
# CUDA buffers, MPI collectives only (no NCCL)
# -------------------------------------------------------
CONFIGS += mpi_gpu_cuda
BACKEND_mpi_gpu_cuda := mpi_gpu_cuda
EXTRA_CXXFLAGS_mpi_gpu_cuda := -arch=sm80
# -------------------------------------------------------
# Includes
# -------------------------------------------------------
include Makefile.flags.mk
include Makefile.common