Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC_Imaging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Claudio Gheller
HPC_Imaging
Commits
76ca4e00
Commit
76ca4e00
authored
1 year ago
by
Emanuele De Rubeis
Browse files
Options
Downloads
Patches
Plain Diff
Makefile reordering
parent
fafe050a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+54
-27
54 additions, 27 deletions
Makefile
with
54 additions
and
27 deletions
Makefile
+
54
−
27
View file @
76ca4e00
...
...
@@ -27,9 +27,16 @@ CFLAGS += -I./
FFTWLIBS
=
# ========================================================
# CODE OPTIONS
#
# CODE OPTIONS FOR THE COMPILATION
# (refer to the RICK wiki here
# https://www.ict.inaf.it/gitlab/claudio.gheller/hpc_imaging/-/wikis/home)
# ========================================================
# PARALLEL FFT IMPLEMENTATION
# use FFTW (it can be switched on ONLY if MPI is active)
OPT
+=
-DUSE_FFTW
...
...
@@ -40,37 +47,36 @@ OPT += -DUSE_FFTW
# switch on the OpenMP parallelization
#OPT += -DUSE_OMP
# write the full 3D cube of gridded visibilities and its FFT transform
#OPT += -DWRITE_DATA
# ========================================================
# ACTIVATE PIECES OF THE CODE TO BE PERFORMED
# write the final image
OPT
+=
-DWRITE_IMAGE
# perform w-stacking phase correction
OPT
+=
-DPHASE_ON
# Support CFITSIO !!! Remember to add the path to the CFITSIO library to LD_LIBRARY_PATH
#OPT += -DFITSIO
# Normalize uvw in case it is not done in the binMS
#OPT += -DNORMALIZE_UVW
# Gridding kernel: GAUSS, GAUSS_HI_PRECISION, KAISERBESSEL
# ========================================================
# SELECT THE GRIDDING KERNEL: GAUSS, GAUSS_HI_PRECISION, KAISERBESSEL
OPT
+=
-DGAUSS_HI_PRECISION
#OPT += -DGAUSS
#OPT += -DKAISERBESSEL
#OPT += -DVERBOSE
# ========================================================
# ACCELERATION
#
# GPU OFFLOADING OPTIONS
#OPT += -DNVIDIA
#use
cuda
for GPUs
#
use
CUDA
for GPUs
#OPT += -DCUDACC
# use GPU acceleration via OMP
...
...
@@ -82,26 +88,47 @@ OPT += -DGAUSS_HI_PRECISION
# use NVIDIA GPU to perform the reduce
#OPT += -DNCCL_REDUCE
# use AMD GPU to perform the reduce
#OPT += -DRCCL_REDUCE
# use GPU to perform FFT
#OPT += -DCUFFTMP
#support for AMD GPUs
# FULL GPU SUPPORT - Recommended for full NVIDIA GPU code execution
OPT
+=
-DFULL_NVIDIA
ifeq
(FULL_NVIDIA,$(findstring FULL_NVIDIA,$(OPT)))
OPT
+=
-DCUDACC
-DNCCL_REDUCE
-DCUFFTMP
endif
# support for AMD GPUs
#OPT += __HIP_PLATFORM_AMD__
# use AMD GPU to perform the reduce
#OPT += -DRCCL_REDUCE
# =======================================================
# OUTPUT HANDLING
# Support CFITSIO !!! Remember to add the path to the CFITSIO library to LD_LIBRARY_PATH
#OPT += -DFITSIO
# write the full 3D cube of gridded visibilities and its FFT transform
#OPT += -DWRITE_DATA
# write the final image
OPT
+=
-DWRITE_IMAGE
# =======================================================
# DEVELOPING OPTIONS
#OPT += -DVERBOSE
#perform the debugging in the ring implementation
#OPT += -DDEBUG
# ========================================================
# ========================================================
#FULL GPU SUPPORT!!!
OPT
+=
-DFULL_NVIDIA
ifeq
(FULL_NVIDIA,$(findstring FULL_NVIDIA,$(OPT)))
OPT
+=
-DCUDACC
-DNCCL_REDUCE
-DCUFFTMP
endif
# =======================================================
# END OF OPTIONS
# =======================================================
ifeq
(USE_OMP,$(findstring USE_OMP,$(OPT)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment