From 84e3702eba2db33ffdb911131120453e8de252da Mon Sep 17 00:00:00 2001 From: "giovanni.lacopo" Date: Thu, 25 Jan 2024 12:20:30 +0100 Subject: [PATCH] AMD LUMI updates --- Build/Makefile.local | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Build/Makefile.local b/Build/Makefile.local index d03c366..e9606f2 100644 --- a/Build/Makefile.local +++ b/Build/Makefile.local @@ -53,15 +53,23 @@ MPICHLIB = CLANG = clang CLANG++ = clang++ - + +HIPCC = hipcc +OPT_HIPCC = -std=c++17 --offload-arch=gfx90a + OPTIMIZE_AMD = -O3 -Ofast -fopenmp -march=native -mavx -mavx2 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a +MPI_INCL = -I/opt/cray/pe/mpich/8.1.27/ofi/crayclang/14.0/include +MPI_LIB = -L/opt/cray/pe/mpich/8.1.27/ofi/crayclang/14.0/lib + RCCL_INCL= -I/opt/rocm-5.2.3/rccl/include RCCL_LIB= -L/opt/rocm-5.2.3/rccl/lib HIP_INCL= -I/opt/rocm-5.2.3/hip/include HIP_LIB= -L/opt/rocm-5.2.3/hip/lib -AMDLIB = $(HIP_INCL) $(HIP_LIB) $(RCCL_INCL) $(RCCL_LIB) -lamdhip64 -lrccl +AMDLIB = $(HIP_INCL) $(HIP_LIB) $(MPI_INCL) $(MPI_LIB) -lamdhip64 -lrccl + +AMDLIB_3 = $(HIP_INCL) $(HIP_LIB) $(MPI_INCL) $(MPI_LIB) $(RCCL_INCL) $(RCCL_LIB) -lamdhip64 -lrccl ########################################################### -- GitLab