-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #972 from 36000/cuda12
[ENH] add CUDA 12 compat to GPU tractography
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 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
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,11 +1,21 @@ | ||
COMMIT=${1} | ||
COMMIT="$(echo "${COMMIT}" | tr -d '[:space:]')" | ||
export COMMIT | ||
NO_TAG="ghcr.io/${2}/pyafq_gpu" | ||
|
||
NO_TAG="ghcr.io/${2}/pyafq_gpu_cuda_11" | ||
TAG="${NO_TAG}:${COMMIT}" | ||
TAG2="${NO_TAG}:latest" | ||
TAG="$(echo "${TAG}" | tr -d '[:space:]')" | ||
TAG2="$(echo "${TAG2}" | tr -d '[:space:]')" | ||
|
||
echo $TAG | ||
docker build --no-cache -t $TAG -t $TAG2 --build-arg COMMIT ./gpu_docker | ||
|
||
NVIDIAVERSION="12.0.1-devel-ubuntu20.04" | ||
export NVIDIAVERSION | ||
NO_TAG="ghcr.io/${2}/pyafq_gpu_cuda_12" | ||
TAG="${NO_TAG}:${COMMIT}" | ||
TAG2="${NO_TAG}:latest" | ||
TAG="$(echo "${TAG}" | tr -d '[:space:]')" | ||
TAG2="$(echo "${TAG2}" | tr -d '[:space:]')" | ||
echo $TAG | ||
docker build --no-cache -t $TAG -t $TAG2 --build-arg COMMIT --build-arg NVIDIAVERSION ./gpu_docker |
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,4 +1,9 @@ | ||
NO_TAG="ghcr.io/${1}/pyafq_gpu" | ||
NO_TAG="ghcr.io/${1}/pyafq_gpu_cuda_11" | ||
NO_TAG="$(echo "${NO_TAG}" | tr -d '[:space:]')" | ||
|
||
docker push --all-tags $NO_TAG | ||
|
||
NO_TAG="ghcr.io/${1}/pyafq_gpu_cuda_12" | ||
NO_TAG="$(echo "${NO_TAG}" | tr -d '[:space:]')" | ||
|
||
docker push --all-tags $NO_TAG |