Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
1b0aabc7
Commit
1b0aabc7
authored
Mar 21, 2023
by
Tim Dettmers
Browse files
Added CUDA 12.1. addressing #201
parent
2c8352e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
cuda_install.sh
cuda_install.sh
+6
-2
deploy.sh
deploy.sh
+20
-0
No files found.
cuda_install.sh
View file @
1b0aabc7
...
@@ -12,6 +12,7 @@ URL116=https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installer
...
@@ -12,6 +12,7 @@ URL116=https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installer
URL117
=
https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_515.43.04_linux.run
URL117
=
https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_515.43.04_linux.run
URL118
=
https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
URL118
=
https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
URL120
=
https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda_12.0.0_525.60.13_linux.run
URL120
=
https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda_12.0.0_525.60.13_linux.run
URL121
=
https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
CUDA_VERSION
=
$1
CUDA_VERSION
=
$1
...
@@ -60,11 +61,14 @@ if [[ -n "$CUDA_VERSION" ]]; then
...
@@ -60,11 +61,14 @@ if [[ -n "$CUDA_VERSION" ]]; then
elif
[[
"
$CUDA_VERSION
"
-eq
"120"
]]
;
then
elif
[[
"
$CUDA_VERSION
"
-eq
"120"
]]
;
then
URL
=
$URL120
URL
=
$URL120
FOLDER
=
cuda-12.0
FOLDER
=
cuda-12.0
elif
[[
"
$CUDA_VERSION
"
-eq
"121"
]]
;
then
URL
=
$URL121
FOLDER
=
cuda-12.1
else
else
echo
"argument error: No cuda version passed as input. Choose among
: {111, 115}
"
echo
"argument error: No cuda version passed as input. Choose among
versions 92 to 121
"
fi
fi
else
else
echo
"argument error: No cuda version passed as input. Choose among
: {111,
11
5}
"
echo
"argument error: No cuda version passed as input. Choose among
versions 92 to
11
2
"
fi
fi
FILE
=
$(
basename
$URL
)
FILE
=
$(
basename
$URL
)
...
...
deploy.sh
View file @
1b0aabc7
...
@@ -128,6 +128,16 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120.so" ]; then
...
@@ -128,6 +128,16 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120.so" ]; then
exit
64
exit
64
fi
fi
make clean
export
CUDA_HOME
=
$BASE_PATH
/cuda-12.1
make cuda12x
CUDA_VERSION
=
121
if
[
!
-f
"./bitsandbytes/libbitsandbytes_cuda121.so"
]
;
then
# Control will enter here if $DIRECTORY doesn't exist.
echo
"Compilation unsuccessul!"
1>&2
exit
64
fi
make clean
make clean
export
CUDA_HOME
=
$BASE_PATH
/cuda-10.2
export
CUDA_HOME
=
$BASE_PATH
/cuda-10.2
...
@@ -241,5 +251,15 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120_nocublaslt.so" ]; then
...
@@ -241,5 +251,15 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120_nocublaslt.so" ]; then
exit
64
exit
64
fi
fi
make clean
export
CUDA_HOME
=
$BASE_PATH
/cuda-12.1
make cuda12x_nomatmul
CUDA_VERSION
=
121
if
[
!
-f
"./bitsandbytes/libbitsandbytes_cuda121_nocublaslt.so"
]
;
then
# Control will enter here if $DIRECTORY doesn't exist.
echo
"Compilation unsuccessul!"
1>&2
exit
64
fi
python
-m
build
python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment