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
4844aef4
Commit
4844aef4
authored
Oct 27, 2022
by
Tim Dettmers
Browse files
Fixing bad error when GPU was not detected for #73.
parent
96ab2af1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
CHANGELOG.md
CHANGELOG.md
+5
-0
bitsandbytes/cuda_setup/main.py
bitsandbytes/cuda_setup/main.py
+3
-5
setup.py
setup.py
+1
-1
No files found.
CHANGELOG.md
View file @
4844aef4
...
@@ -144,3 +144,8 @@ Bug fixes:
...
@@ -144,3 +144,8 @@ Bug fixes:
Bug fixes:
Bug fixes:
-
Fixed a bug where the CUDA setup failed due to a wrong function call.
-
Fixed a bug where the CUDA setup failed due to a wrong function call.
### 0.35.3
Bug fixes:
-
Fixed a bug in the CUDA Setup which led to an incomprehensible error if no GPU was detected.
bitsandbytes/cuda_setup/main.py
View file @
4844aef4
...
@@ -86,9 +86,7 @@ def get_compute_capabilities(cuda):
...
@@ -86,9 +86,7 @@ def get_compute_capabilities(cuda):
ref_major
=
ctypes
.
byref
(
cc_major
)
ref_major
=
ctypes
.
byref
(
cc_major
)
ref_minor
=
ctypes
.
byref
(
cc_minor
)
ref_minor
=
ctypes
.
byref
(
cc_minor
)
# 2. call extern C function to determine CC
# 2. call extern C function to determine CC
check_cuda_result
(
check_cuda_result
(
cuda
,
cuda
.
cuDeviceComputeCapability
(
ref_major
,
ref_minor
,
device
))
cuda
,
cuda
.
cuDeviceComputeCapability
(
ref_major
,
ref_minor
,
device
)
)
ccs
.
append
(
f
"
{
cc_major
.
value
}
.
{
cc_minor
.
value
}
"
)
ccs
.
append
(
f
"
{
cc_major
.
value
}
.
{
cc_minor
.
value
}
"
)
return
ccs
return
ccs
...
@@ -134,9 +132,9 @@ def evaluate_cuda_setup():
...
@@ -134,9 +132,9 @@ def evaluate_cuda_setup():
cuda_version_string
=
get_cuda_version
(
cuda
,
cudart_path
)
cuda_version_string
=
get_cuda_version
(
cuda
,
cudart_path
)
if
cc
==
''
:
if
cc
==
''
or
cc
is
None
:
cuda_setup
.
add_log_entry
(
"WARNING: No GPU detected! Check your CUDA paths. Processing to load CPU-only library..."
,
is_warning
=
True
)
cuda_setup
.
add_log_entry
(
"WARNING: No GPU detected! Check your CUDA paths. Processing to load CPU-only library..."
,
is_warning
=
True
)
return
binary_name
return
binary_name
,
cudart_path
,
cuda
,
cc
,
cuda_version_string
# 7.5 is the minimum CC vor cublaslt
# 7.5 is the minimum CC vor cublaslt
has_cublaslt
=
cc
in
[
"7.5"
,
"8.0"
,
"8.6"
]
has_cublaslt
=
cc
in
[
"7.5"
,
"8.0"
,
"8.6"
]
...
...
setup.py
View file @
4844aef4
...
@@ -18,7 +18,7 @@ def read(fname):
...
@@ -18,7 +18,7 @@ def read(fname):
setup
(
setup
(
name
=
f
"bitsandbytes"
,
name
=
f
"bitsandbytes"
,
version
=
f
"0.35.
2
"
,
version
=
f
"0.35.
3
"
,
author
=
"Tim Dettmers"
,
author
=
"Tim Dettmers"
,
author_email
=
"dettmers@cs.washington.edu"
,
author_email
=
"dettmers@cs.washington.edu"
,
description
=
"8-bit optimizers and matrix multiplication routines."
,
description
=
"8-bit optimizers and matrix multiplication routines."
,
...
...
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