-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ $# -eq 2 ]]; then | ||
CVER=$1 | ||
else | ||
CVER=4.8 | ||
fi | ||
|
||
wget https://github.com/ccache/ccache/releases/download/v${CVER}/ccache-${CVER}-linux-x86_64.tar.xz | ||
tar xvf ccache-${CVER}-linux-x86_64.tar.xz | ||
sudo cp -f ccache-${CVER}-linux-x86_64/ccache /usr/local/bin/ |
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 |
---|---|---|
|
@@ -7,32 +7,45 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build-hip: | ||
name: HIP ROCm C++17 | ||
tests-hip: | ||
name: HIP ROCm C++17 [tests] | ||
runs-on: ubuntu-20.04 | ||
# Have to have -Wno-deprecated-declarations due to deprecated atomicAddNoRet | ||
# Have to have -Wno-gnu-zero-variadic-macro-arguments to avoid | ||
# amrex/Src/Base/AMReX_GpuLaunchGlobal.H:15:5: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments] | ||
# __launch_bounds__(amrex_launch_bounds_max_threads) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:178:71: note: expanded from macro '__launch_bounds__' | ||
# select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:176:9: note: macro 'select_impl_' defined here | ||
# #define select_impl_(_1, _2, impl_, ...) impl_ | ||
# Have to have -Wno-unused-command-line-argument to avoid | ||
# clang-15: error: argument unused during compilation: '-Xoffload-linker --whole-archive' [-Werror,-Wunused-command-line-argument] | ||
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-command-line-argument"} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Dependencies | ||
run: .github/workflows/dependencies/dependencies_hip.sh | ||
run: | | ||
.github/workflows/dependencies/dependencies_hip.sh | ||
.github/workflows/dependencies/dependencies_ccache.sh | ||
- name: Set Up Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/ccache | ||
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | ||
restore-keys: | | ||
ccache-${{ github.workflow }}-${{ github.job }}-git- | ||
- name: Build & Install | ||
# Have to have -Wno-deprecated-declarations due to deprecated atomicAddNoRet | ||
# Have to have -Wno-gnu-zero-variadic-macro-arguments to avoid | ||
# amrex/Src/Base/AMReX_GpuLaunchGlobal.H:15:5: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments] | ||
# __launch_bounds__(amrex_launch_bounds_max_threads) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:178:71: note: expanded from macro '__launch_bounds__' | ||
# select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:176:9: note: macro 'select_impl_' defined here | ||
# #define select_impl_(_1, _2, impl_, ...) impl_ | ||
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments"} | ||
run: | | ||
export CCACHE_COMPRESS=1 | ||
export CCACHE_COMPRESSLEVEL=10 | ||
export CCACHE_MAXSIZE=100M | ||
ccache -z | ||
source /etc/profile.d/rocm.sh | ||
hipcc --version | ||
which clang | ||
which clang++ | ||
which flang | ||
# "mpic++ --showme" forgets open-pal in Ubuntu 20.04 + OpenMPI 4.0.3 | ||
# https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786 | ||
|
@@ -50,25 +63,39 @@ jobs: | |
cmake --build build -j 2 | ||
tests-hip-wrapper: | ||
name: HIP ROCm [email protected] C++17 | ||
name: HIP ROCm [email protected] C++17 [tests-hipcc] | ||
runs-on: ubuntu-20.04 | ||
# Have to have -Wno-deprecated-declarations due to deprecated atomicAddNoRet | ||
# Have to have -Wno-gnu-zero-variadic-macro-arguments to avoid | ||
# amrex/Src/Base/AMReX_GpuLaunchGlobal.H:15:5: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments] | ||
# __launch_bounds__(amrex_launch_bounds_max_threads) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:178:71: note: expanded from macro '__launch_bounds__' | ||
# select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:176:9: note: macro 'select_impl_' defined here | ||
# #define select_impl_(_1, _2, impl_, ...) impl_ | ||
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments"} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Dependencies | ||
run: .github/workflows/dependencies/dependencies_hip.sh | ||
run: | | ||
.github/workflows/dependencies/dependencies_hip.sh | ||
.github/workflows/dependencies/dependencies_ccache.sh | ||
- name: Set Up Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/ccache | ||
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | ||
restore-keys: | | ||
ccache-${{ github.workflow }}-${{ github.job }}-git- | ||
- name: Build & Install | ||
# Have to have -Wno-deprecated-declarations due to deprecated atomicAddNoRet | ||
# Have to have -Wno-gnu-zero-variadic-macro-arguments to avoid | ||
# amrex/Src/Base/AMReX_GpuLaunchGlobal.H:15:5: error: must specify at least one argument for '...' parameter of variadic macro [-Werror,-Wgnu-zero-variadic-macro-arguments] | ||
# __launch_bounds__(amrex_launch_bounds_max_threads) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:178:71: note: expanded from macro '__launch_bounds__' | ||
# select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) | ||
# ^ | ||
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:176:9: note: macro 'select_impl_' defined here | ||
# #define select_impl_(_1, _2, impl_, ...) impl_ | ||
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments"} | ||
run: | | ||
export CCACHE_COMPRESS=1 | ||
export CCACHE_COMPRESSLEVEL=10 | ||
export CCACHE_MAXSIZE=40M | ||
ccache -z | ||
source /etc/profile.d/rocm.sh | ||
hipcc --version | ||
|