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

 채택된 답변

Erik S.
Erik S. 2015년 2월 9일

0 개 추천

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

Zainub
Zainub 2015년 2월 9일
sir please explain your answer.... I found this way to excess cublas from net... loadlibrary('libcublas','C:\Program Files\Matlab\R2014a\extern\include\cublas.h')
Joss Knight
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개)

카테고리

도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기

태그

질문:

2015년 2월 9일

댓글:

2015년 2월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by