Loading .gitignore +2 −0 Original line number Diff line number Diff line *.o .DS_Store sync.sh phase_correction.c w-stacking.c w-stackingCfftw Loading Build/Makefile.Magellanus 0 → 100644 +32 −0 Original line number Diff line number Diff line CC = gcc-10 CXX = g++-10 MPICC = mpicc MPIC++ = mpiCC OPTIMIZE = -O3 #-ffast-math -fopt-info-all-omp -fcf-protection=none -fno-stack-protector -foffload=nvptx-none GSL_INCL = -I/home/taffoni/sw/include #-I/opt/cluster/openmpi/3.1.3/gnu/8.2.0/include GSL_LIBS = -L/home/taffoni/sw/lib #-L/opt/cluster/openmpi/3.1.3/gnu/8.2.0/lib -lmpi FFTW_INCL= -I/home/taffoni/sw/include FFTW_LIB= -L/home/taffoni/sw/lib -lfftw3_mpi -lfftw3 MPI_LIB = MPI_INCL= HDF5_INCL = HDF5_LIB = OMP = -fopenmp NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -std=c++11 NVLIB = -L/home/taffoni/sw/Linux_x86_64/21.5/cuda/11.3/lib64/ -lcudart -lcuda CFLAGS += $(OPTIMIZE) CFLAGS += -I. CFLAGS += -I/home/taffoni/sw/Linux_x86_64/21.5/comm_libs/mpi/include CFLAGS += $(FFTW_INCL) $(GSL_INCL) CFLAGS += $(FFTW_LIB) -lm Build/Makefile.Marconi 0 → 100644 +20 −0 Original line number Diff line number Diff line CC = gcc CXX = g++ MPICC = mpicc MPIC++ = mpiCC CFLAGS += -O3 -mcpu=native CFLAGS += -I. FFTW_INCL= -I/home/taffoni/sw/include FFTW_LIB= -L/home/taffoni/sw/lib LIBS = $(FFTW_LIB) -lfftw3_mpi -lfftw3 -lm NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -mno-float128 -std=c++11 NVLIB = -L/cineca/prod/opt/compilers/cuda/10.1/none/lib64/ -lcudart -lcuda CFLAGS += -O3 -mtune=native Build/Makefile.systype 0 → 100644 +24 −0 Original line number Diff line number Diff line CC = gcc-10 CXX = g++-10 MPICC = mpicc MPIC++ = mpiCC OPTIMIZE = GSL_INCL = GSL_LIB = FFTW_INCL= FFTW_LIB= NVCC = NVFLAGS = NVLIB = CFLAGS += MPICHLIB = HDF5INCL = HDF5LIB = Makefile +33 −24 Original line number Diff line number Diff line # comment/uncomment the various options depending hoe you want to build the program # Set default values for compiler options if no systype options are given or found CC = mpiCC CXX = mpiCC OPTIMIZE = -std=c++11 -Wall -g -O2 MPICHLIB = -lmpich SWITCHES = ifdef SYSTYPE SYSTYPE := $(SYSTYPE) include Build/Makefile.$(SYSTYPE) else include Build/Makefile.systype endif # create MPI code OPT += -DUSE_MPI # use FFTW (it can be switched on ONLY if MPI is active) ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) OPT += -DUSE_FFTW endif # perform one-side communication (suggested) instead of reduce (only if MPI is active) OPT += -DONE_SIDE # write the full 3D cube of gridded visibilities and its FFT transform Loading @@ -12,23 +34,6 @@ OPT += -DWRITE_IMAGE # perform w-stacking phase correction # OPT += PHASE_ON CC = gcc CXX = g++ ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) CC = mpicc CXX = mpiCC endif OMP = -fopenmp #OMP = CFLAGS += -O3 -mcpu=native CFLAGS += -I. LIBS = -L$(FFTW_LIB) -lfftw3_mpi -lfftw3 -lm NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -mno-float128 -std=c++11 NVLIB = -L/cineca/prod/opt/compilers/cuda/10.1/none/lib64/ -lcudart -lcuda DEPS = w-stacking.h w-stacking-fftw.c w-stacking.cu phase_correction.cu COBJ = w-stacking.o w-stacking-fftw.o phase_correction.o Loading @@ -39,11 +44,16 @@ w-stacking.c: w-stacking.cu phase_correction.c: phase_correction.cu cp phase_correction.cu phase_correction.c ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) %.o: %.c $(DEPS) $(MPICC) -c -o $@ $< $(CFLAGS) $(OPT) else %.o: %.c $(DEPS) $(CC) $(OMP) -c -o $@ $< $(CFLAGS) $(OPT) endif serial: $(COBJ) $(CC) $(OMP) -o w-stackingCfftw_serial $(CFLAGS) $^ -lm $(CC) -o w-stackingCfftw_serial $(CFLAGS) $^ -lm serial_cuda: $(NVCC) $(NVFLAGS) -c w-stacking.cu phase_correction.cu $(NVLIB) Loading @@ -51,15 +61,14 @@ serial_cuda: $(CXX) $(CFLAGS) $(OPT) -o w-stackingfftw_serial w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) -lm mpi: $(COBJ) $(CC) $(OMP) -o w-stackingCfftw $(CFLAGS) $^ $(LIBS) $(MPICC) -o w-stackingCfftw $^ $(CFLAGS) mpi_cuda: $(NVCC) $(NVFLAGS) -c w-stacking.cu phase_correction.cu $(NVLIB) $(CC) $(CFLAGS) $(OPT) -c w-stacking-fftw.c $(CXX) $(CFLAGS) $(OPT) -o w-stackingfftw w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) $(LIBS) -lm $(MPICC) $(CFLAGS) $(OPT) -c w-stacking-fftw.c $(MPIC++) $(OPT) -o w-stackingfftw w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) $(CFLAGS) clean: rm *.o rm w-stacking.c rm phase_correction.c Loading
.gitignore +2 −0 Original line number Diff line number Diff line *.o .DS_Store sync.sh phase_correction.c w-stacking.c w-stackingCfftw Loading
Build/Makefile.Magellanus 0 → 100644 +32 −0 Original line number Diff line number Diff line CC = gcc-10 CXX = g++-10 MPICC = mpicc MPIC++ = mpiCC OPTIMIZE = -O3 #-ffast-math -fopt-info-all-omp -fcf-protection=none -fno-stack-protector -foffload=nvptx-none GSL_INCL = -I/home/taffoni/sw/include #-I/opt/cluster/openmpi/3.1.3/gnu/8.2.0/include GSL_LIBS = -L/home/taffoni/sw/lib #-L/opt/cluster/openmpi/3.1.3/gnu/8.2.0/lib -lmpi FFTW_INCL= -I/home/taffoni/sw/include FFTW_LIB= -L/home/taffoni/sw/lib -lfftw3_mpi -lfftw3 MPI_LIB = MPI_INCL= HDF5_INCL = HDF5_LIB = OMP = -fopenmp NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -std=c++11 NVLIB = -L/home/taffoni/sw/Linux_x86_64/21.5/cuda/11.3/lib64/ -lcudart -lcuda CFLAGS += $(OPTIMIZE) CFLAGS += -I. CFLAGS += -I/home/taffoni/sw/Linux_x86_64/21.5/comm_libs/mpi/include CFLAGS += $(FFTW_INCL) $(GSL_INCL) CFLAGS += $(FFTW_LIB) -lm
Build/Makefile.Marconi 0 → 100644 +20 −0 Original line number Diff line number Diff line CC = gcc CXX = g++ MPICC = mpicc MPIC++ = mpiCC CFLAGS += -O3 -mcpu=native CFLAGS += -I. FFTW_INCL= -I/home/taffoni/sw/include FFTW_LIB= -L/home/taffoni/sw/lib LIBS = $(FFTW_LIB) -lfftw3_mpi -lfftw3 -lm NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -mno-float128 -std=c++11 NVLIB = -L/cineca/prod/opt/compilers/cuda/10.1/none/lib64/ -lcudart -lcuda CFLAGS += -O3 -mtune=native
Build/Makefile.systype 0 → 100644 +24 −0 Original line number Diff line number Diff line CC = gcc-10 CXX = g++-10 MPICC = mpicc MPIC++ = mpiCC OPTIMIZE = GSL_INCL = GSL_LIB = FFTW_INCL= FFTW_LIB= NVCC = NVFLAGS = NVLIB = CFLAGS += MPICHLIB = HDF5INCL = HDF5LIB =
Makefile +33 −24 Original line number Diff line number Diff line # comment/uncomment the various options depending hoe you want to build the program # Set default values for compiler options if no systype options are given or found CC = mpiCC CXX = mpiCC OPTIMIZE = -std=c++11 -Wall -g -O2 MPICHLIB = -lmpich SWITCHES = ifdef SYSTYPE SYSTYPE := $(SYSTYPE) include Build/Makefile.$(SYSTYPE) else include Build/Makefile.systype endif # create MPI code OPT += -DUSE_MPI # use FFTW (it can be switched on ONLY if MPI is active) ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) OPT += -DUSE_FFTW endif # perform one-side communication (suggested) instead of reduce (only if MPI is active) OPT += -DONE_SIDE # write the full 3D cube of gridded visibilities and its FFT transform Loading @@ -12,23 +34,6 @@ OPT += -DWRITE_IMAGE # perform w-stacking phase correction # OPT += PHASE_ON CC = gcc CXX = g++ ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) CC = mpicc CXX = mpiCC endif OMP = -fopenmp #OMP = CFLAGS += -O3 -mcpu=native CFLAGS += -I. LIBS = -L$(FFTW_LIB) -lfftw3_mpi -lfftw3 -lm NVCC = nvcc NVFLAGS = -arch=sm_70 -Xcompiler -mno-float128 -std=c++11 NVLIB = -L/cineca/prod/opt/compilers/cuda/10.1/none/lib64/ -lcudart -lcuda DEPS = w-stacking.h w-stacking-fftw.c w-stacking.cu phase_correction.cu COBJ = w-stacking.o w-stacking-fftw.o phase_correction.o Loading @@ -39,11 +44,16 @@ w-stacking.c: w-stacking.cu phase_correction.c: phase_correction.cu cp phase_correction.cu phase_correction.c ifeq (USE_MPI,$(findstring USE_MPI,$(OPT))) %.o: %.c $(DEPS) $(MPICC) -c -o $@ $< $(CFLAGS) $(OPT) else %.o: %.c $(DEPS) $(CC) $(OMP) -c -o $@ $< $(CFLAGS) $(OPT) endif serial: $(COBJ) $(CC) $(OMP) -o w-stackingCfftw_serial $(CFLAGS) $^ -lm $(CC) -o w-stackingCfftw_serial $(CFLAGS) $^ -lm serial_cuda: $(NVCC) $(NVFLAGS) -c w-stacking.cu phase_correction.cu $(NVLIB) Loading @@ -51,15 +61,14 @@ serial_cuda: $(CXX) $(CFLAGS) $(OPT) -o w-stackingfftw_serial w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) -lm mpi: $(COBJ) $(CC) $(OMP) -o w-stackingCfftw $(CFLAGS) $^ $(LIBS) $(MPICC) -o w-stackingCfftw $^ $(CFLAGS) mpi_cuda: $(NVCC) $(NVFLAGS) -c w-stacking.cu phase_correction.cu $(NVLIB) $(CC) $(CFLAGS) $(OPT) -c w-stacking-fftw.c $(CXX) $(CFLAGS) $(OPT) -o w-stackingfftw w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) $(LIBS) -lm $(MPICC) $(CFLAGS) $(OPT) -c w-stacking-fftw.c $(MPIC++) $(OPT) -o w-stackingfftw w-stacking-fftw.o w-stacking.o phase_correction.o $(NVLIB) $(CFLAGS) clean: rm *.o rm w-stacking.c rm phase_correction.c