Skip to content

Commit

Permalink
Merge pull request #295 from ludwig-cf/feature-293-amd
Browse files Browse the repository at this point in the history
Feature 293 amd
  • Loading branch information
kevinstratford authored Feb 28, 2024
2 parents eb6c5fa + ce5132b commit 4367aae
Show file tree
Hide file tree
Showing 52 changed files with 3,652 additions and 3,672 deletions.
36 changes: 36 additions & 0 deletions config/epcc-archer2-hipcc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
##############################################################################
#
# epcc-archer2-hipcc.mk
#
# ROCM 5.2.3.
#
# module load PrgEnv-amd
#
# -fgpu-rdc is equivalent of nvcc -dc for relocatable device code
# [allows multiple translation units]
# --hip-link required at link time
#
##############################################################################

BUILD = parallel
MODEL = -D_D3Q19_
TARGET = hipcc

CFLAGS_EXTRA = -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false

CC = cc

CFLAGS = -x hip -fgpu-rdc -O2 -DADDR_SOA $(CFLAGS_EXTRA) --offload-arch=gfx90a

AR = ar
ARFLAGS = -cr
LDFLAGS = -fgpu-rdc --hip-link --offload-arch=gfx90a

MPI_HOME =
MPI_INC_PATH =
MPI_LIB_PATH = -L${HIP_LIB_PATH} -lamdhip64

LAUNCH_SERIAL_CMD =
LAUNCH_MPIRUN_CMD =
MPIRUN_NTASK_FLAG =

Loading

0 comments on commit 4367aae

Please sign in to comment.