Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Makefile in GPU examples to set default values for CUDA-relevant variables #438

Open
wants to merge 1 commit into
base: gpu
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions examples/GPU/tsunami/bowl-radial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,24 @@ PLOTDIR = _plots # Directory for plots

OVERWRITE ?= True # False ==> make a copy of OUTDIR first

FC = pgi
USE_CUDA = TRUE
# FC = gfortran
# USE_CUDA = FALSE
FC = pgi
CUDA_PATH ?= /usr/local/cuda-10.0
CUDA_VERSION ?= 10.0
CUDA_CC ?= cc60


# DEBUG = TRUE
DEBUG = FALSE

CC = pgi
USE_CPP = TRUE

PROFILE = TRUE
# PROFILE = FALSE

USE_OPENMP = TRUE

VERBOSE = FALSE

# USE_DOUBLE_PRECISION = FALSE
USE_DOUBLE_PRECISION = TRUE

DIM = 2
Expand All @@ -50,8 +48,6 @@ NUM_COEFFS = 1
USE_FWAVES = TRUE
USE_CAPA = FALSE

# Environment variable FC should be set to fortran compiler, e.g. gfortran

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=

Expand Down
12 changes: 4 additions & 8 deletions examples/GPU/tsunami/chile2010/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,24 @@ PLOTDIR = _plots # Directory for plots

OVERWRITE ?= True # False ==> make a copy of OUTDIR first

FC = pgi
USE_CUDA = TRUE
# FC = gfortran
# USE_CUDA = FALSE
FC = pgi
CUDA_PATH ?= /usr/local/cuda-10.0
CUDA_VERSION ?= 10.0
CUDA_CC ?= cc60


# DEBUG = TRUE
DEBUG = FALSE

CC = pgi
USE_CPP = TRUE

PROFILE = TRUE
# PROFILE = FALSE

USE_OPENMP = TRUE

VERBOSE = FALSE

# USE_DOUBLE_PRECISION = FALSE
USE_DOUBLE_PRECISION = TRUE

DIM = 2
Expand All @@ -49,8 +47,6 @@ NUM_COEFFS = 3
USE_FWAVES = TRUE
USE_CAPA = TRUE

# Environment variable FC should be set to fortran compiler, e.g. gfortran

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=

Expand Down
12 changes: 4 additions & 8 deletions examples/GPU/tsunami/chile2010_adjoint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,24 @@ PLOTDIR = _plots # Directory for plots

OVERWRITE ?= True # False ==> make a copy of OUTDIR first

FC = pgi
USE_CUDA = TRUE
# FC = gfortran
# USE_CUDA = FALSE
FC = pgi
CUDA_PATH ?= /usr/local/cuda-10.0
CUDA_VERSION ?= 10.0
CUDA_CC ?= cc60


# DEBUG = TRUE
DEBUG = FALSE

CC = pgi
USE_CPP = TRUE

PROFILE = TRUE
# PROFILE = FALSE

USE_OPENMP = TRUE

VERBOSE = FALSE

# USE_DOUBLE_PRECISION = FALSE
USE_DOUBLE_PRECISION = TRUE

DIM = 2
Expand All @@ -49,8 +47,6 @@ NUM_COEFFS = 3
USE_FWAVES = TRUE
USE_CAPA = TRUE

# Environment variable FC should be set to fortran compiler, e.g. gfortran

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=

Expand Down