Commit 9df81fc0 authored by Emanuele De Rubeis's avatar Emanuele De Rubeis
Browse files

Replace Makefile.M100 cufftMp

parent 93695a12
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line

CC       =  gcc
CXX      =  g++

@@ -15,11 +14,23 @@ FITSIO_LIB= /m100_work/IscrC_CD-DLS/cfitsio-3.49

NVCC = nvcc
NVFLAGS = -arch=sm_70 -Xcompiler -mno-float128 -std=c++11
CUFFT_INCL= -I/cineca/prod/opt/compilers/cuda/10.1/none/include/
NVLIB = -L/cineca/prod/opt/compilers/cuda/10.1/none/lib64/ -lcudart -lcuda -lcufft
CUFFT_INCL= -I/cineca/prod/opt/compilers/cuda/11.3/none/include/
CUFFTMP_INCL= -I/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.1/math_libs/11.8/include/cufftmp/
#CUFFTMP_INCL = -I/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.3/math_libs/11.0/include/cufftmp/
CUFFTMP_LIB= -L/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.1/math_libs/11.8/lib64/ -lcufftMp -lcuda -lnvidia-ml
#CUFFTMP_LIB = -L/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.3/math_libs/11.0/lib64/ -lcufftMp -lcuda -lnvidia-ml
#CUFFTMP_LIB = -lcufftMp -lcuda -lnvidia-ml
#CUFFTMP_LIB = -lcufft -lcuda -lnvidia-ml
#NVSHMEM_INCL = -I/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.3/comm_libs/nvshmem/include/
#NVSHMEM_LIB = -L/cineca/prod/opt/compilers/hpc-sdk/2023/binary/Linux_ppc64le/23.3/comm_libs/nvshmem/lib -lnvshmem_host -lnvshmem_device
#NVSHMEM_LIB = -lnvshmem_host -lnvshmem_device
#NVSHMEM_LIB = -lnvshmem_host -lnvshmem_device -cuda
NVLIB= -L/cineca/prod/opt/compilers/cuda/11.3/none/lib64 -lcudart -lcuda
#NVLIB = -lcudart


OMP= -fopenmp

CFLAGS +=  -I. $(FFTW_INCL) $(GSL_INCL) $(MPI_INCL) $(FITSIO_INCL) $(CUFFT_INCL)
CFLAGS +=  -I. $(FFTW_INCL) $(GSL_INCL) $(MPI_INCL) $(FITSIO_INCL) $(CUFFT_INCL) $(CUFFTMP_INCL)

OPTIMIZE = $(OMP) -O3 -mtune=native
OPTIMIZE = $(OMP) -O3