Error using loadlibraryin mex file
4 views (last 30 days)
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. on 9 Feb 2015
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