Closed mpuels closed 5 years ago
I think I found out why this error is happening. It seems that Cuda depends on GCC and their versions need to be compatible
. I.e Cuda 9 supports gcc6, Cuda 8 supports gcc5 ...
I checked that the version of Cuda and GCC were compatible and that the environment variables were rightly set up.
export CUDA_HOME=/usr/local/cuda-X.X
export PATH=${CUDA_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
This solved the problem for me.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I tried to run a modified version of the example given in Adding a text classifier to a spaCy model with a GPU to speed up training. The original source code and mine differ as follows:
#!/usr/bin/env python3
instead of#!/usr/bin/env python
from __future__ import unicode_literals, print_function
optimizer = nlp.begin_training(device=0)
instead ofoptimizer = nlp.begin_training()
Please see the last section "Modified script" in this issue for the modified script.
For the output of the modified script see the section "Output of the modified script" below. Thanks for your help!
Your Environment
Output of
nvcc --version
:Output of the modified script
Modified script