Skip to content

Commit

Permalink
Moving to CUDA 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepd-nv committed Sep 13, 2023
1 parent a2459a1 commit b79905a
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/gh-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
options: -u root
image: "${{ inputs.image }}"
env:
CUDA_VERSION: "${{ inputs.CUDA }}"
CUDA_VERSION: "12.0"
CUDA_VERSION_MAJOR: "12"
CUDA_VERSION_MINOR: "0"
SCCACHE_REGION: "us-east-2"
SCCACHE_BUCKET: "rapids-sccache-devs"
SCCACHE_S3_KEY_PREFIX: "legate-cunumeric-dev"
Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:

- name: Build cunumeric
run: |
export PATH="/home/coder/cunumeric/continuous_integration:$PATH"
export PATH="/home/coder/cunumeric/continuous_integration/scripts:$PATH"
build-cunumeric-all
- name: Upload build artifacts
Expand Down
2 changes: 1 addition & 1 deletion cmake/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"git_url" : "https://github.com/nv-legate/legate.core.git",
"git_shallow": false,
"always_download": false,
"git_tag" : "14cca04834095553e4d88f503dc4cd35e4072212"
"git_tag" : "06b0e4d7fded0b4207fd8b4ba34c330333ee3543"
}
}
}
2 changes: 1 addition & 1 deletion conda/conda-build/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## The placeholder version is strictly for making two-pass conda build process.
## It should not be used for any other purpose, and this is not a default version.
{% set placeholder_version = '0.0.0.dev' %}
{% set default_cuda_version = '11.8' %}
{% set default_cuda_version = '12.0' %}
{% set cuda_version='.'.join(environ.get('CUDA', default_cuda_version).split('.')[:2]) %}
{% set cuda_major=cuda_version.split('.')[0]|int %}
{% set py_version=environ.get('CONDA_PY', '') %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ build_cunumeric_all() {
conda info;

set -xeuo pipefail;
printf "\n\n\n\n********* BUILDING CUNUMERIC CPP *********"
printf "\n\n\n\n********* BUILDING CUNUMERIC CPP *********\n"
build-cunumeric-cpp;
printf "\n\n\n\n********* BUILDING CUNUMERIC WHEEL *********"
printf "\n\n\n\n********* BUILDING CUNUMERIC WHEEL *********\n"
build-cunumeric-wheel;
printf "\n\n\n\n********* BUILDING CUNUMERIC CONDA *********"
printf "\n\n\n\n********* BUILDING CUNUMERIC CONDA *********\n"
build-cunumeric-conda;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build_cunumeric_conda_package() {
python_version="$(python3 --version 2>&1 | cut -d' ' -f2 | cut -d'.' -f3 --complement)";
fi

mkdir -p /tmp/conda-build /tmp/out
cp -r ~/.artifacts/legate_core /tmp/conda-build/

local conda_build_args=();
Expand Down
File renamed without changes.
46 changes: 46 additions & 0 deletions continuous_integration/scripts/entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash

sccache_stop_server_and_show_stats() {
sccache --stop-server || true && sccache --show-stats;
}

init_devcontainer() {
# disable xtrace and history
local xtrace_enabled=$(echo "${SHELLOPTS:-}" | grep -q 'xtrace'; echo $?);
local history_enabled=$(echo "${SHELLOPTS:-}" | grep -q 'history'; echo $?);
{ set +xo history; } 2>/dev/null;
eval "export $(find /run/secrets/ -type f -exec bash -c 'echo ${0/\/run\/secrets\//}=$(<${0})' {} \;)";
if [ "${history_enabled}" -eq "0" ]; then { set -o history; } 2>/dev/null; fi;
if [ "${xtrace_enabled}" -eq "0" ]; then { set -o xtrace; } 2>/dev/null; fi;

set -xeo pipefail

. devcontainer-utils-post-attach-command;

sleep 10;
. devcontainer-utils-vault-s3-test;
. devcontainer-utils-vault-s3-export 0;
}

entrypoint() {
set -x

mkdir -p /home/coder/.cache;

local secrets_dir=/run/secrets

if [ -d "$secrets_dir" ] && [ "$(ls -A $secrets_dir)" ]; then
init_devcontainer
else
sccache_stop_server_and_show_stats
fi

echo AWS_REGION=${AWS_REGION:-}
echo AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:-}
echo AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-}
echo AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-}

exec "$@";
}

entrypoint "$@";
File renamed without changes.

0 comments on commit b79905a

Please sign in to comment.