Skip to content

Compiling on a Cray / MI300A system #634

Closed Answered by joneuhauser
joneuhauser asked this question in Compiling
Discussion options

You must be logged in to vote

To summarize the solution:

  • Use the AMD compiler with compiler wrappers.
  • Compile using
    rm -r build || true
    rm -r .local/nekrs || true
    export FFLAGS=""
    export CC=cc FC=ftn CXX=CC
    module load PrgEnv-amd
    module unload cray-libsci
    cmake -S . -B build -Wfatal-errors
    cmake --build ./build --target install -j24
    echo "Compiling complete"
    
  • Run using
    module load PrgEnv-amd
    module unload cray-libsci
    export FFLAGS="-fuse-ld=bfd"
    export NEKRS_HOME=$HOME/.local/nekrs
    export PATH=$HOME/Nek5000/bin:$NEKRS_HOME/bin:$PATH
    export CC=cc FC=ftn CXX=CC
    export MPICH_GPU_SUPPORT_ENABLE=1
    mpirun ...
    

Replies: 9 comments 16 replies

Comment options

You must be logged in to vote
1 reply
@joneuhauser
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@stgeke
Comment options

@joneuhauser
Comment options

@joneuhauser
Comment options

@joneuhauser
Comment options

@joneuhauser
Comment options

Comment options

You must be logged in to vote
5 replies
@joneuhauser
Comment options

@stgeke
Comment options

@joneuhauser
Comment options

@joneuhauser
Comment options

@joneuhauser
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joneuhauser
Comment options

Comment options

You must be logged in to vote
1 reply
@joneuhauser
Comment options

Comment options

You must be logged in to vote
2 replies
@joneuhauser
Comment options

@joneuhauser
Comment options

Answer selected by joneuhauser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants