hip #43
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
name: hip | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "22 22 * * 6" | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-hip | |
cancel-in-progress: true | |
jobs: | |
Tests-gmake: | |
name: HIP Tests & GNU Make | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_hip.sh | |
- name: Tests | |
run: | | |
export PATH=/opt/rocm/bin:$PATH | |
hipcc --version | |
cd Tests/GPU | |
make -j4 USE_HIP=TRUE AMD_ARCH=gfx90a | |
Tests-cmake: | |
name: HIP Tests & CMake | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_hip.sh | |
- name: Tests | |
run: | | |
export PATH=/opt/rocm/bin:$PATH | |
hipcc --version | |
cmake --version | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_INSTALL_PREFIX=../hip_installdir \ | |
-DENABLE_HIP=ON \ | |
-DCMAKE_HIP_ARCHITECTURES=gfx90a \ | |
-DENABLE_TESTS=ON | |
make -j4 VERBOSE=ON | |
make install | |
Tutorials-cmake: | |
name: HIP Tutorials & CMake | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_hip.sh | |
- name: Tests | |
run: | | |
export PATH=/opt/rocm/bin:$PATH | |
hipcc --version | |
cmake --version | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_INSTALL_PREFIX=../hip_installdir \ | |
-DENABLE_HIP=ON \ | |
-DCMAKE_HIP_ARCHITECTURES=gfx90a | |
make -j4 VERBOSE=ON | |
make install | |
cd ../Tutorials/libamrexpr | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_PREFIX_PATH=$(realpath ../../../hip_installdir) \ | |
-DENABLE_HIP=ON \ | |
-DCMAKE_HIP_ARCHITECTURES=gfx90a | |
make -j4 VERBOSE=ON |