Error using loadlibraryin mex file
1 回表示 (過去 30 日間)
古いコメントを表示
Hi.... I am working on matlab 2014 and GPU. I want to run cublas functions in mex files but I found following error
Error using loadlibrary (line 422) There was an error loading the library "libcublas" The specified module could not be found. Caused by: Error using loaddefinedlibrary The specified module could not be found.
please help me
0 件のコメント
採用された回答
Erik S.
2015 年 2 月 9 日
Is the lib file "libcublas" in your path? Have you told the complier (mex) where to find the file?
Usually you need to supply mex with something like '-L:C\MyLibs' -llibcublas
Assuming the lib file is in the folder C:\MyLibs
2 件のコメント
Joss Knight
2015 年 2 月 17 日
No, you don't do that, you just link libraries to your code using -l parameters to mex. But you shouldn't need to link to cublas, that is linked by default for GPU MEX functions.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!