-
Notifications
You must be signed in to change notification settings - Fork 88
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
1 parent
c1082ad
commit 2dee7ce
Showing
15 changed files
with
328 additions
and
138 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,25 +1,37 @@ | ||
{ | ||
"shutdownAction": "stopContainer", | ||
"image": "rapidsai/devcontainers:23.06-cpp-gcc12-cuda12.1-ubuntu22.04", | ||
"hostRequirements": { | ||
"gpu": true | ||
}, | ||
"initializeCommand": [ | ||
"/bin/bash", | ||
"-c", | ||
"mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}" | ||
], | ||
"containerEnv": { | ||
"SCCACHE_REGION": "us-east-2", | ||
"SCCACHE_BUCKET": "rapids-sccache-devs", | ||
"VAULT_HOST": "https://vault.ops.k8s.rapids.ai", | ||
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history" | ||
}, | ||
"workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", | ||
"source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", | ||
"source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent" | ||
] | ||
"shutdownAction": "stopContainer", | ||
"image": "rapidsai/devcontainers:23.08-cpp-gcc12-cuda12.2-ubuntu22.04", | ||
"hostRequirements": { | ||
"gpu": true | ||
}, | ||
"initializeCommand": [ | ||
"/bin/bash", | ||
"-c", | ||
"mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}" | ||
], | ||
"containerEnv": { | ||
"SCCACHE_REGION": "us-east-2", | ||
"SCCACHE_BUCKET": "rapids-sccache-devs", | ||
"VAULT_HOST": "https://vault.ops.k8s.rapids.ai", | ||
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history" | ||
}, | ||
"workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", | ||
"source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", | ||
"source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"llvm-vs-code-extensions.vscode-clangd" | ||
], | ||
"settings": { | ||
"clangd.arguments": [ | ||
"--compile-commands-dir=${workspaceFolder}/build/latest" | ||
] | ||
} | ||
} | ||
} | ||
} |
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,3 +1,4 @@ | ||
|
||
#! /usr/bin/env bash | ||
|
||
launch_devcontainer() { | ||
|
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,24 @@ | ||
name: Compute Matrix | ||
description: "Compute the matrix for a given matrix type from the specified matrix file" | ||
|
||
inputs: | ||
matrix_query: | ||
description: "The jq query used to specify the desired matrix. e.g., .pull_request.nvcc" | ||
required: true | ||
matrix_file: | ||
description: 'The file containing the matrix' | ||
required: true | ||
outputs: | ||
matrix: | ||
description: 'The requested matrix' | ||
value: ${{ steps.compute-matrix.outputs.MATRIX }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Compute matrix | ||
id: compute-matrix | ||
run: | | ||
MATRIX=$(./.github/actions/compute-matrix/compute-matrix.sh ${{inputs.matrix_file}} ${{inputs.matrix_query}} ) | ||
echo "matrix=$MATRIX" | tee -a $GITHUB_OUTPUT | ||
shell: bash -euxo pipefail {0} |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Check for the correct number of arguments | ||
if [ $# -ne 2 ]; then | ||
echo "Usage: $0 MATRIX_FILE MATRIX_QUERY" | ||
echo "MATRIX_FILE: The path to the matrix file." | ||
echo "MATRIX_QUERY: The jq query used to specify the desired matrix. e.g., '.pull-request.nvcc'" | ||
exit 1 | ||
fi | ||
|
||
# Get realpath before changing directory | ||
MATRIX_FILE=$(realpath "$1") | ||
MATRIX_QUERY="$2" | ||
|
||
# Ensure the script is being executed in its containing directory | ||
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; | ||
|
||
echo "Input matrix file:" >&2 | ||
cat "$MATRIX_FILE" >&2 | ||
echo "Query: $MATRIX_QUERY" >&2 | ||
echo $(yq -o=json "$MATRIX_FILE" | jq -c -r "$MATRIX_QUERY | map(. as \$o | {std: .std[]} + del(\$o.std))") |
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 was deleted.
Oops, something went wrong.
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.