Skip to content

Commit

Permalink
Merge pull request ComputationalRadiationPhysics#3976 from steindev/f…
Browse files Browse the repository at this point in the history
…ix-2022-02_crusher-hipcc-profile

Crusher HIPCC Profile: Fix export of env variables
  • Loading branch information
psychocoderHPC authored Feb 8, 2022
2 parents a860d37 + 78643c4 commit 9c96339
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9c96339

Please sign in to comment.