-
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 #326 from PDoakORNL/fix_hip_mishap
Fix hip mishap
- Loading branch information
Showing
99 changed files
with
929 additions
and
783 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
cmake -DDCA_WITH_CUDA=off -DDCA_WITH_HIP=ON \ | ||
-DFFTW_ROOT=$FFTW_PATH \ | ||
-DDCA_FIX_BROKEN_MPICH=ON \ | ||
-DROCM_ROOT=${ROCM_PATH} \ | ||
-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_HIP_COMPILER=/opt/rocm-6.0.0/llvm/bin/clang++ \ | ||
-DCMAKE_INSTALL_PREFIX=$INST \ | ||
-DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" \ | ||
-GNinja \ | ||
.. | ||
|
||
#cmake -DDCA_WITH_CUDA=off -DDCA_WITH_HIP=ON \ | ||
-DFFTW_ROOT=$FFTW_PATH \ | ||
-DDCA_FIX_BROKEN_MPICH=ON \ | ||
-DROCM_ROOT=${ROCM_PATH} \ | ||
-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_HIP_COMPILER=/opt/rocm-6.0.0/llvm/bin/clang++ \ | ||
-DCMAKE_INSTALL_PREFIX=$INST \ | ||
-DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" \ | ||
-GNinja \ | ||
.. | ||
# cmake -DDCA_WITH_CUDA=off -DDCA_WITH_HIP=ON -DFFTW_ROOT=$FFTW_PATH -DDCA_FIX_BROKEN_MPICH=ON -DROCM_ROOT=${ROCM_PATH} -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_HIP_COMPILER=/opt/rocm-6.0.0/llvm/bin/clang++ -DCMAKE_INSTALL_PREFIX=$INST -DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" -GNinja .. | ||
.. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export CC=mpicc | ||
export CXX=mpicxx | ||
|
||
export OPENBLAS_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/gcc-11.2.0/openblas-0.3.25-scaywvuh5zsm5u7smg54plj2oyf7nekv | ||
export HDF5_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/hdf5-1.12.1-ajskwiaabdvgc36ozb6hzqnrwu2becha | ||
export MAGMA_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/magma-master-rizw3ajkhfcq5cjutoykgkkv5hexftoz | ||
export FFTW_PATH=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/fftw-3.3.10-2mykijticsr5rfbyunax4zrwhhzcb7qm |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# | ||
# 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 frontier_load_modules.sh | ||
|
||
|
||
module reset | ||
module load amd-mixed/6.0.0 | ||
spack load cmake%gcc@11.2.0 | ||
spack load ninja%gcc@11.2.0 | ||
spack load magma@master amdgpu_target=gfx90a | ||
spack load hdf5@1.12.1 +cxx ~mpi api=v112 %rocmcc@6.0.0 | ||
spack load fftw ~mpi %rocmcc@6.0.0 | ||
spack load openblas@0.3.25 %gcc@11.2.0 | ||
|
||
export CC=mpicc | ||
export CXX=mpicxx | ||
|
||
export OPENBLAS_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/gcc-11.2.0/openblas-0.3.25-scaywvuh5zsm5u7smg54plj2oyf7nekv | ||
export HDF5_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/hdf5-1.12.1-ajskwiaabdvgc36ozb6hzqnrwu2becha | ||
export MAGMA_ROOT=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/magma-master-rizw3ajkhfcq5cjutoykgkkv5hexftoz | ||
export FFTW_PATH=/lustre/orion/cph102/proj-shared/epd/spack/opt/spack/linux-sles15-zen3/rocmcc-6.0.0/fftw-3.3.10-2mykijticsr5rfbyunax4zrwhhzcb7qm | ||
#export LD_PRELOAD=/opt/cray/pe/lib64/cce/libtcmalloc_minimal.so.1 |
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
Oops, something went wrong.