kmcuda icon indicating copy to clipboard operation
kmcuda copied to clipboard

Error: file libKMCUDA.py (for module libKMCUDA) not found when using pip install

Open Paperone80 opened this issue 5 years ago • 0 comments

Hi,

Building with pip install I get the following error:

[...] [100%] Built target KMCUDA file libKMCUDA.py (for module libKMCUDA) not found file libKMCUDA.py (for module libKMCUDA) not found running build_ext [...] Using /opt/intelpython3/envs/python3.5_env/lib/python3.5/site-packages Finished processing dependencies for libKMCUDA==6.2.3

However, the following does not work and says libKMCUDA not found from libKMCUDA import kmeans_cuda, knn_cuda

For anybody who comes across the same problem, I successfully build libKMCUDA and the test examples are working:

OS: Ubuntu 16.04 LTS GPU: RTX 2080 Ti CUDA: 10.0 CuDNN: 7.5

$ sudo git clone https://github.com/src-d/kmcuda kmcuda-2019-05-12
$ cd kmcuda-2019-05-12
$ sudo mkdir build; cd build

$ export PYTHON_HOME=/opt/intelpython3/envs/python3.5_env/
$ sudo cmake \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_HOME}/bin/python3.5 \
-DPYTHON_INCLUDE_DIR=${PYTHON_HOME}include/python3.5m/ \
-DPYTHON_LIBRARY=${PYTHON_HOME}/lib/libpython3.5m.so \
-DDISABLE_R=y \
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
-DCUDA_ARCH=75 \
../src/ \
&& \
sudo make -j32

$ sudo cp -vf ./libKMCUDA.so /opt/intelpython3/envs/python3.5_env/lib/python3.5/site-packages/

Enjoy!

Paperone80 avatar May 12 '19 03:05 Paperone80