errors.mdx 1.51 KB
Newer Older
Titus's avatar
Titus committed
1
# Errors & Solutions
2

Titus's avatar
Titus committed
3
## No kernel image available
4

Titus's avatar
Titus committed
5
This problem arises with the cuda version loaded by bitsandbytes is not supported by your GPU, or if you pytorch CUDA version mismatches.
6

Titus's avatar
Titus committed
7
To solve this problem you need to debug ``$LD_LIBRARY_PATH``, ``$CUDA_HOME`` as well as ``$PATH``. You can print these via ``echo $PATH``. You should look for multiple paths to different CUDA versions. This can include versions in your anaconda path, for example ``$HOME/anaconda3/lib``. You can check those versions via ``ls -l $HOME/anaconda3/lib/*cuda*`` or equivalent paths. Look at the CUDA versions of files in these paths. Does it match with ``nvidia-smi``?
8

Titus's avatar
Titus committed
9
If you are feeling lucky, you can also try to compile the library from source. This can be still problematic if your PATH variables have multiple cuda versions. As such, it is recommended to figure out path conflicts before you proceed with compilation.
10

Titus's avatar
Titus committed
11
## `fatbinwrap`
12

Titus's avatar
Titus committed
13
This error occurs if there is a mismatch between CUDA versions in the C++ library and the CUDA part. Make sure you have right CUDA in your `$PATH` and `$LD_LIBRARY_PATH` variable. In the conda base environment you can find the library under:
14
15
16
17
18
19

```bash
ls $CONDA_PREFIX/lib/*cudart*
```
Make sure this path is appended to the `LD_LIBRARY_PATH` so bnb can find the CUDA runtime environment library (cudart).

Titus's avatar
Titus committed
20
If this does not fix the issue, please try compilation from source next.
21
22

If this does not work, please open an issue and paste the printed environment if you call `make` and the associated error when running bnb.