@@ -17,7 +17,7 @@ rm -rf dist build
1717make cleaneggs
1818make cleanlibs
1919
20- make clean
20+ rm -rf build/ *
2121export CUDA_HOME=
2222export CUDA_VERSION=
2323make cpuonly CUDA_VERSION=" CPU"
@@ -28,7 +28,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cpu.so" ]; then
2828 exit 64
2929fi
3030
31- make clean
31+ rm -rf build/ *
3232export CUDA_HOME=$BASE_PATH /cuda-11.0
3333make cuda110 CUDA_VERSION=110
3434
@@ -38,7 +38,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda110.so" ]; then
3838 exit 64
3939fi
4040
41- make clean
41+ rm -rf build/ *
4242export CUDA_HOME=$BASE_PATH /cuda-11.1
4343make cuda11x CUDA_VERSION=111
4444
@@ -48,7 +48,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda111.so" ]; then
4848 exit 64
4949fi
5050
51- make clean
51+ rm -rf build/ *
5252export CUDA_HOME=$BASE_PATH /cuda-11.4
5353make cuda11x CUDA_VERSION=114
5454
@@ -58,7 +58,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda114.so" ]; then
5858 exit 64
5959fi
6060
61- make clean
61+ rm -rf build/ *
6262export CUDA_HOME=$BASE_PATH /cuda-11.5
6363make cuda11x CUDA_VERSION=115
6464
@@ -68,7 +68,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda115.so" ]; then
6868 exit 64
6969fi
7070
71- make clean
71+ rm -rf build/ *
7272export CUDA_HOME=$BASE_PATH /cuda-11.7
7373make cuda11x CUDA_VERSION=117
7474
@@ -78,7 +78,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda117.so" ]; then
7878 exit 64
7979fi
8080
81- make clean
81+ rm -rf build/ *
8282export CUDA_HOME=$BASE_PATH /cuda-11.8
8383make cuda118 CUDA_VERSION=118
8484
@@ -88,7 +88,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda118.so" ]; then
8888 exit 64
8989fi
9090
91- make clean
91+ rm -rf build/ *
9292export CUDA_HOME=$BASE_PATH /cuda-12.0
9393make cuda12x CUDA_VERSION=120
9494
@@ -98,7 +98,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120.so" ]; then
9898 exit 64
9999fi
100100
101- make clean
101+ rm -rf build/ *
102102export CUDA_HOME=$BASE_PATH /cuda-12.1
103103make cuda12x CUDA_VERSION=121
104104
@@ -108,7 +108,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda121.so" ]; then
108108 exit 64
109109fi
110110
111- make clean
111+ rm -rf build/ *
112112export CUDA_HOME=$BASE_PATH /cuda-12.2
113113make cuda12x CUDA_VERSION=122
114114
@@ -118,8 +118,21 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda122.so" ]; then
118118 exit 64
119119fi
120120
121+ rm -rf build/*
122+ export CUDA_HOME=$BASE_PATH /cuda-12.3
123+ make cuda12x CUDA_VERSION=123
121124
122- make clean
125+ if [ ! -f " ./bitsandbytes/libbitsandbytes_cuda123.so" ]; then
126+ # Control will enter here if $DIRECTORY doesn't exist.
127+ echo " Compilation unsuccessul!" 1>&2
128+ exit 64
129+ fi
130+
131+ # ############################ START NO CUBLASLT #############################################
132+ # binaries without 8-bit matmul support START HERE
133+ # ###########################################################################################
134+
135+ rm -rf build/*
123136export CUDA_HOME=$BASE_PATH /cuda-11.0
124137make cuda110_nomatmul CUDA_VERSION=110
125138
@@ -130,7 +143,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda110_nocublaslt.so" ]; then
130143fi
131144
132145
133- make clean
146+ rm -rf build/ *
134147export CUDA_HOME=$BASE_PATH /cuda-11.1
135148make cuda11x_nomatmul CUDA_VERSION=111
136149
@@ -140,7 +153,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda111_nocublaslt.so" ]; then
140153 exit 64
141154fi
142155
143- make clean
156+ rm -rf build/ *
144157export CUDA_HOME=$BASE_PATH /cuda-11.4
145158make cuda11x_nomatmul CUDA_VERSION=114
146159
@@ -150,7 +163,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda114_nocublaslt.so" ]; then
150163 exit 64
151164fi
152165
153- make clean
166+ rm -rf build/ *
154167export CUDA_HOME=$BASE_PATH /cuda-11.5
155168make cuda11x_nomatmul CUDA_VERSION=115
156169
@@ -160,7 +173,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda115_nocublaslt.so" ]; then
160173 exit 64
161174fi
162175
163- make clean
176+ rm -rf build/ *
164177export CUDA_HOME=$BASE_PATH /cuda-11.7
165178make cuda11x_nomatmul CUDA_VERSION=117
166179
@@ -170,7 +183,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda117_nocublaslt.so" ]; then
170183 exit 64
171184fi
172185
173- make clean
186+ rm -rf build/ *
174187export CUDA_HOME=$BASE_PATH /cuda-11.8
175188make cuda118_nomatmul CUDA_VERSION=118
176189
@@ -180,7 +193,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda118_nocublaslt.so" ]; then
180193 exit 64
181194fi
182195
183- make clean
196+ rm -rf build/ *
184197export CUDA_HOME=$BASE_PATH /cuda-12.0
185198make cuda12x_nomatmul CUDA_VERSION=120
186199
@@ -190,7 +203,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda120_nocublaslt.so" ]; then
190203 exit 64
191204fi
192205
193- make clean
206+ rm -rf build/ *
194207export CUDA_HOME=$BASE_PATH /cuda-12.1
195208make cuda12x_nomatmul CUDA_VERSION=121
196209
@@ -200,7 +213,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda121_nocublaslt.so" ]; then
200213 exit 64
201214fi
202215
203- make clean
216+ rm -rf build/ *
204217export CUDA_HOME=$BASE_PATH /cuda-12.2
205218make cuda12x_nomatmul CUDA_VERSION=122
206219
@@ -210,5 +223,15 @@ if [ ! -f "./bitsandbytes/libbitsandbytes_cuda122_nocublaslt.so" ]; then
210223 exit 64
211224fi
212225
226+ rm -rf build/*
227+ export CUDA_HOME=$BASE_PATH /cuda-12.3
228+ make cuda12x_nomatmul CUDA_VERSION=123
229+
230+ if [ ! -f " ./bitsandbytes/libbitsandbytes_cuda123_nocublaslt.so" ]; then
231+ # Control will enter here if $DIRECTORY doesn't exist.
232+ echo " Compilation unsuccessul!" 1>&2
233+ exit 64
234+ fi
235+
213236python -m build
214237python -m twine upload dist/* --verbose
0 commit comments