Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgpuKnnLibrary.lib not found #27

Open
anupdas777 opened this issue Jun 5, 2018 · 4 comments
Open

libgpuKnnLibrary.lib not found #27

anupdas777 opened this issue Jun 5, 2018 · 4 comments

Comments

@anupdas777
Copy link

While running install.m to install the TRENTOOL toolbox, the following error shows up in MATLAB:

Error using mex
MEX cannot find library 'gpuKnnLibrary'
specified with the -l option.
MEX looks for a file with one of the
names:
libgpuKnnLibrary.lib
gpuKnnLibrary.lib
Please specify the path to this library
with the -L option.

Error in install (line 4)
mex('-v',['-L' '.'], '-lgpuKnnLibrary',
['-L' CUDA_LIB_PATH],'-lcudart',
'fnearneigh_gpu.cpp');

I can see a file named libgpuKnnLibrary.a, but no file named libgpuKnnLibrary.lib exists in the toolbox. How to solve this problem? Please help.

@Cheng012
Copy link

Cheng012 commented Mar 5, 2019

hello,I meet the same problem.Had you solved the problem?I really need your help.Thank you

@pwollstadt
Copy link
Collaborator

@anupdas777 , @Cheng012 you only have to run install.m if you want to use the GPU-based estimators implemented in TRENTOOL. If this is not the case you can run your analyses without compiling the GPU mex-files.

@Cheng012
Copy link

Cheng012 commented Mar 6, 2019

Thank you for your answer.I'm working on a huge dataset,I want to make use of the GPU-based estimators. However I am not familar with GPU programming. I can't solve the problem of gpuKnnLibrary.lib and cadart.lib not found. Could you give me some advices?

@Xirailuyo
Copy link

The gpuKnnLibrary.lib error is likely due to the required function being deprecated in current cuda distributions.

The last cuda distribution that explicitly had the required functions for trentool was cuda 8.0. Make sure you have a graphics card compatible with cuda 8.0, install ubuntu 16 or 14, and make sure you install the appropriate kernel. You then have to correctly install the cuda toolkit, with the included driver. The following links were helpful for me:

https://www.linkedin.com/pulse/installing-nvidia-cuda-80-ubuntu-1604-linux-gpu-new-victor
http://ubuntuhandbook.org/index.php/2016/01/how-to-install-linux-kernel-4-4-in-ubuntu/
https://docs.nvidia.com/cuda/archive/8.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants