Skip to content

Commit e4c7367

Browse files
committed
Add Windows compilation tip to README
1 parent 4f41421 commit e4c7367

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,34 @@ $ echo $CPATH
4141
>>> /usr/local/cuda/include:...
4242
```
4343

44+
On the compilation, if you have this error:
45+
```error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable()```
46+
it means that your nvcc version is too old. The version must be at least 10.1.168.
47+
To check the version:
48+
```
49+
nvcc --version
50+
>>> V10.1.168
51+
```
52+
53+
### Windows compilation
54+
On Windows you may have this error when compiling:
55+
```
56+
error: member "torch::jit::detail::ModulePolicy::all_slots" may not be initialized
57+
error: member "torch::jit::detail::ParameterPolicy::all_slots" may not be initialized
58+
error: member "torch::jit::detail::BufferPolicy::all_slots" may not be initialized
59+
error: member "torch::jit::detail::AttributePolicy::all_slots" may not be initialized
60+
```
61+
This requires you to edit some of your pytorch header files, use [this script](https://github.com/rusty1s/pytorch_scatter/blob/master/script/torch.sh) as a guide.
62+
63+
### CUDA kernel failed : no kernel image is available for execution on the device
64+
65+
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:
66+
```
67+
export TORCH_CUDA_ARCH_LIST="7.0;7.5"
68+
```
69+
See [this useful chart](http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/) for more architecture compatibility.
70+
71+
4472
## Projects using those kernels.
4573

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

0 commit comments

Comments
 (0)