-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from PDoakORNL/frontier_build
Frontier build
- Loading branch information
Showing
11 changed files
with
91 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
|
||
#export CXXFLAGS="-I/opt/cray/pe/papi/6.0.0.17/include" | ||
#export LDFLAGS="-L/opt/cray/pe/papi/6.0.0.17/lib -lpapi" | ||
#-DDCA_PROFILER=PAPI | ||
|
||
FFTW_PATH=/sw/frontier/spack-envs/base/opt/cray-sles15-zen3/gcc-11.2.0/fftw-3.3.10-njtwalw5xctv6e3fshucadlgu32jb4k6 | ||
|
||
MAGMA_ROOT=/lustre/orion/world-shared/cph102/epd/gcc-11.2.0/magma-2.7.2-c5m5kzaz7irix5hk5zzf3mrwwlij43is | ||
|
||
OPENBLAS_ROOT=/lustre/orion/world-shared/cph102/epd/gcc-11.2.0/openblas-0.3.25-scaywvuh5zsm5u7smg54plj2oyf7nekv | ||
|
||
cmake -DDCA_WITH_CUDA=off -DDCA_WITH_HIP=ON \ | ||
-DFFTW_ROOT=$FFTW_PATH \ | ||
-DDCA_FIX_BROKEN_MPICH=ON \ | ||
-DROCM_ROOT=${OLCF_ROCM_ROOT} \ | ||
-DMAGMA_ROOT=${MAGMA_ROOT} \ | ||
-DLAPACK_ROOT=${OPENBLAS_ROOT} \ | ||
-DBLAS_ROOT=${OPENBLAS_ROOT} \ | ||
-DDCA_WITH_TESTS_FAST=ON \ | ||
-DTEST_RUNNER="srun" \ | ||
-DGPU_TARGETS=gfx90a \ | ||
-DAMDGPU_TARGETS=gfx90a \ | ||
-DCMAKE_C_COMPILER=mpicc \ | ||
-DCMAKE_CXX_COMPILER=mpic++ \ | ||
-DCMAKE_INSTALL_PREFIX=$INST \ | ||
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH \ | ||
-GNinja \ | ||
.. | ||
======= | ||
cmake -DDCA_WITH_CUDA=off -DDCA_WITH_HIP=ON -DFFTW_INCLUDE_DIR=${OLCF_FFTW_ROOT}/include -DFFTW_LIBRARY=${OLCF_FFTW_ROOT}/lib/libfftw3.a -DDCA_FIX_BROKEN_MPICH=ON -GNinja -DROCM_ROOT=${ROCM_PATH} -DDCA_WITH_TESTS_FAST=ON -DTEST_RUNNER="srun" -DGPU_TARGETS=gfx908 -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpic++ .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
#!/bin/bash | ||
# | ||
# Loads all modules that are required to build DCA++ on ORNL's Spock cluster. | ||
# A reset is done at the beginning to restore to the default programming environment on Spock. | ||
# Loads all modules that are required to build DCA++ on ORNL's Frontier. | ||
# A reset is done at the beginning to restore to the default programming environment on Frontier. | ||
# This is for development only at this point. | ||
# | ||
# Usage: source spock_load_modules.sh | ||
# Usage: source frontier_load_modules.sh | ||
|
||
module reset | ||
module load gcc/11.2.0 | ||
module load openblas | ||
module load hdf5 | ||
module load rocm | ||
module load rocm/5.4.0 | ||
module load fftw | ||
module load cmake | ||
module load ninja | ||
|
||
# After 2 weeks of digging through opaque linking and runtime errors, | ||
# I have concluded that cray-libsci causes such a mess | ||
# that it's much easier to compile your own openblas | ||
# and magma rather than fuss with it. I did the latter in 1 day. | ||
module unload cray-libsci | ||
|
||
export CC=mpicc | ||
export CXX=mpicxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters