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
bd515328
Commit
bd515328
authored
Jul 27, 2022
by
Tim Dettmers
Browse files
Fixed deployment script to check for LD_LIBRARY_PATH.
parent
389f66ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
29 deletions
+37
-29
deploy_from_slurm.sh
deploy_from_slurm.sh
+37
-29
No files found.
deploy_from_slurm.sh
View file @
bd515328
#!/bin/bash
#!/bin/bash
BASE_PATH
=
$1
BASE_PATH
=
$1
echo
"MAKE SURE LD_LIBRARY_PATH IS EMPTY!"
echo
$LD_LIBRARY_PATH
if
[[
!
-z
"
${
LD_LIBRARY_PATH
}
"
]]
;
then
echo
"Compilation unsuccessul!"
1>&2
exit
64
fi
module unload cuda
module unload cuda
module unload gcc
module unload gcc
#
rm -rf dist build
rm
-rf
dist build
#
make clean
make clean
#
make cleaneggs
make cleaneggs
#
export CUDA_HOME=
export
CUDA_HOME
=
#
make cpuonly
make cpuonly
#
#
if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
#
# Control will enter here if $DIRECTORY doesn't exist.
# Control will enter here if $DIRECTORY doesn't exist.
#
echo "Compilation unsuccessul!" 1>&2
echo
"Compilation unsuccessul!"
1>&2
#
exit 64
exit
64
#
fi
fi
#
CUDA_VERSION=cpu python -m build
CUDA_VERSION
=
cpu python
-m
build
#
python -m twine upload dist/* --verbose --repository testpypi
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
make cleaneggs
make cleaneggs
export
CUDA_HOME
=
$BASE_PATH
/cuda-11.0
export
CUDA_HOME
=
$BASE_PATH
/cuda-11.0
make cuda110
make cuda110
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
# Control will enter here if $DIRECTORY doesn't exist.
# Control will enter here if $DIRECTORY doesn't exist.
...
@@ -102,20 +111,20 @@ fi
...
@@ -102,20 +111,20 @@ fi
CUDA_VERSION
=
115 python
-m
build
CUDA_VERSION
=
115 python
-m
build
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
#
rm -rf dist build
rm
-rf
dist build
#
make clean
make clean
#
make cleaneggs
make cleaneggs
#
export CUDA_HOME=$BASE_PATH/cuda-11.6
export
CUDA_HOME
=
$BASE_PATH
/cuda-11.6
#
#
make cuda11x
make cuda11x
#
if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
#
# Control will enter here if $DIRECTORY doesn't exist.
# Control will enter here if $DIRECTORY doesn't exist.
#
echo "Compilation unsuccessul!" 1>&2
echo
"Compilation unsuccessul!"
1>&2
#
exit 64
exit
64
#
fi
fi
#
CUDA_VERSION=116 python -m build
CUDA_VERSION
=
116 python
-m
build
#
python -m twine upload dist/* --verbose --repository testpypi
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
#
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
make cleaneggs
make cleaneggs
...
@@ -257,5 +266,4 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -257,5 +266,4 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
117-nomatmul python
-m
build
CUDA_VERSION
=
117-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
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