From 78643c4462472855e1779c7ac0e152a6254c5996 Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 8 Feb 2022 07:28:14 -0500 Subject: [PATCH] Crusher HIPCC Profile: Fix export of env variables --- .../crusher-ornl/batch_hipcc_picongpu.profile.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/picongpu/crusher-ornl/batch_hipcc_picongpu.profile.example b/etc/picongpu/crusher-ornl/batch_hipcc_picongpu.profile.example index b83f642cef..89296da8da 100644 --- a/etc/picongpu/crusher-ornl/batch_hipcc_picongpu.profile.example +++ b/etc/picongpu/crusher-ornl/batch_hipcc_picongpu.profile.example @@ -38,7 +38,6 @@ module load PrgEnv-cray/8.2.0 # Compiling with cray compiler wrapper CC module load craype-accel-amd-gfx90a module load rocm/4.5.2 -export CXX=hipcc export MPICH_GPU_SUPPORT_ENABLED=1 module load cray-mpich/8.1.12 @@ -50,6 +49,13 @@ module load boost/1.77.0-cxx17 module load git/2.31.1 +## set environment variables required for compiling and linking w/ hipcc +## see (https://docs.olcf.ornl.gov/systems/crusher_quick_start_guide.html#compiling-with-hipcc) +export CXX=hipcc +export HIPCC_COMPILE_FLAGS_APPEND="$HIPCC_COMPILE_FLAGS_APPEND -I${MPICH_DIR}/include" +export HIPCC_LINK_FLAGS_APPEND="$HIPCC_LINK_FLAGS_APPEND -L${MPICH_DIR}/lib -lmpi -L${CRAY_MPICH_ROOTDIR}/gtl/lib -lmpi_gtl_hsa" +export HIPFLAGS="--amdgpu-target=gfx90a $HIPFLAGS" + # Other Software ############################################################## # module load c-blosc/1.21.0 adios2/2.7.1 hdf5/1.12.0