mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 14:58:54 +00:00
Squashed commit of the following:
commitc5b2fc0a8bAuthor: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 21:48:20 2024 +0000 Add supported compilers and tools in README.md. commit92fe366da5Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 20:45:30 2024 +0000 Fix issues discovered by header tests. commitf7f6c92143Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 20:45:06 2024 +0000 Setup header tests, add C++20 header tests + examples. The core library will always be built with C++17, but we test our headers / examples under 17 and 20. commit4b24f26b66Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 16:21:42 2024 +0000 Pass CUDA FLAGS to install tests. commit4fb672ae91Author: Allison Piper <alliepiper16@gmail.com> Date: Sat Apr 6 15:43:41 2024 +0000 Add newer GCC (13) and Clang (17, 18).
This commit is contained in:
10
.github/actions/compute-matrix/compute-matrix.sh
vendored
10
.github/actions/compute-matrix/compute-matrix.sh
vendored
@@ -8,21 +8,13 @@ write_output() {
|
||||
echo "$key=$value" | tee --append "${GITHUB_OUTPUT:-/dev/null}"
|
||||
}
|
||||
|
||||
explode_std_versions() {
|
||||
jq -cr 'map(. as $o | {std: $o.std[]} + del($o.std))'
|
||||
}
|
||||
|
||||
explode_libs() {
|
||||
jq -cr 'map(. as $o | {lib: $o.lib[]} + del($o.lib))'
|
||||
}
|
||||
|
||||
extract_matrix() {
|
||||
local file="$1"
|
||||
local type="$2"
|
||||
local matrix=$(yq -o=json "$file" | jq -cr ".$type")
|
||||
write_output "DEVCONTAINER_VERSION" "$(yq -o json "$file" | jq -cr '.devcontainer_version')"
|
||||
|
||||
local nvcc_full_matrix="$(echo "$matrix" | jq -cr '.nvcc' | explode_std_versions )"
|
||||
local nvcc_full_matrix="$(echo "$matrix" | jq -cr '.nvcc')"
|
||||
local per_cuda_compiler_matrix="$(echo "$nvcc_full_matrix" | jq -cr ' group_by(.cuda + .compiler.name) | map({(.[0].cuda + "-" + .[0].compiler.name): .}) | add')"
|
||||
write_output "PER_CUDA_COMPILER_MATRIX" "$per_cuda_compiler_matrix"
|
||||
write_output "PER_CUDA_COMPILER_KEYS" "$(echo "$per_cuda_compiler_matrix" | jq -r 'keys | @json')"
|
||||
|
||||
Reference in New Issue
Block a user