Skip to content

Commit 7994646

Browse files
Update README.md
1 parent 95ea276 commit 7994646

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ python -m unittest
2626
```
2727

2828
## Troubleshooting
29+
30+
### Compilation issues
2931
Ensure that at least PyTorch 1.4.0 is installed and verify that `cuda/bin` and `cuda/include` are in your `$PATH` and `$CPATH` respectively, e.g.:
3032
```
3133
$ python -c "import torch; print(torch.__version__)"
@@ -41,6 +43,16 @@ $ echo $CPATH
4143
>>> /usr/local/cuda/include:...
4244
```
4345

46+
47+
### CUDA kernel failed : no kernel image is available for execution on the device
48+
49+
This can happen when trying to run the code on a different GPU than the one used to compile the `torch-points-kernels` library. Uninstall `torch-points-kernels`, clear cache, and reinstall after setting the `TORCH_CUDA_ARCH_LIST` environment variable. For example, for compiling with a Tesla T4 (Turing 7.5) and running the code on a Tesla V100 (Volta 7.0) use:
50+
```
51+
export TORCH_CUDA_ARCH_LIST="7.0;7.5"
52+
```
53+
See [this useful chart](http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/) for more architecture compatibility.
54+
55+
4456
## Projects using those kernels.
4557

4658
[```Pytorch Point Cloud Benchmark```](https://github.com/nicolas-chaulet/deeppointcloud-benchmarks)

0 commit comments

Comments
 (0)