forked from cupy/cupy
-
Notifications
You must be signed in to change notification settings - Fork 0
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 cupy#8190 from cupy/admin/add-cuda-import-ci
Add CI to test `cupy.show_config()` pass without CUDA installed
- Loading branch information
1 parent
d2ca6e0
commit be80f32
Showing
7 changed files
with
56 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cuda122.Dockerfile |
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,25 @@ | ||
#!/bin/bash | ||
|
||
# Based on cuda122.sh | ||
|
||
set -uex | ||
|
||
ACTIONS="$(dirname $0)/actions" | ||
. "$ACTIONS/_environment.sh" | ||
|
||
export NVCC="ccache nvcc" | ||
|
||
export CUPY_ACCELERATORS="cutensor,cub" | ||
|
||
# Make the build faster. | ||
export CUPY_NVCC_GENERATE_CODE="arch=compute_70,code=sm_70" | ||
|
||
"$ACTIONS/build.sh" | ||
|
||
# Make sure that CuPy can be imported without CUDA Toolkit installed. | ||
rm -rf /usr/local/cuda* | ||
pushd / | ||
python3 -c 'import cupy, cupyx; cupy.show_config(_full=True)' | ||
popd | ||
|
||
"$ACTIONS/cleanup.sh" |
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