Invalid MEX-file The specified procedure could not be found : Calling a CUDA MEX function
I want to use some mex function in MATLAB ( [url="http://patternsonascreen.net/cuSVM.html"]http://patternsonascreen.net/cuSVM.html[/url]) that is written with CUDA language for executing on Nvidia GPUs.

I start with building .mexw64 version of it using the Visual Studio, But I got the invalid mex file error when I tried to call it in MATLAB:

[code]??? Invalid MEX-file 'I:\cusvm_vs2005.mexw64': The specified procedure could not
be found.[/code]

I already used the dependency walker. Initially the "IESHIMS.DLL" and "MSVCR80.DLL" are missing. I put the first in system32 and the second in current matlab folder.

The Dependency Walker still get error:

[code]Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
The DLL-tree has a red "nvcuda.dll" block and a red "ieframe.dll" block in its sub-tree.[/code]

I currently use VS2005, Matlab 2010b, Window 7 (64 bit), cuda toolkit 3.2.

The original cuSVM code is implemented on window xp (32 bit) and VS2005, So It has .mexw32 version in its package.

DETAILS-------------------------------------------------------------------------------------------------------------------------------

(1)

I uploaded two files of the project:

-mex function and its MATLAB test code

-visual studio project that builds the .mexw64 file.

The shared links are:

http://www.4shared.com/zip/B4u7WTvk/cusvm_mex_test.html

http://www.4shared.com/zip/duBVHVIM/cusvm_mex_building.html

(2)Some details of the steps I followed, can be found in my question in the following websites:

[url="http://www.parallelcoding.com/2012/02/09/cusvm-in-visual-studio-2010-with-cuda-4-0/comment-page-1/#comment-19233"]http://www.parallelcoding.com/2012/02/09/cusvm-in-visual-studio-2010-with-cuda-4-0/comment-page-1/#comment-19233[/url]

[url="http://stackoverflow.com/questions/9530553/invalid-mex-the-specified-procedure-could-not-be-found-building-a-cuda-mex-fu"]http://stackoverflow.com/questions/9530553/invalid-mex-the-specified-procedure-could-not-be-found-building-a-cuda-mex-fu[/url]

[url="http://forums.nvidia.com/index.php?showtopic=223329"]http://forums.nvidia.com/index.php?showtopic=223329[/url]


I appreciate your help and comments.
I want to use some mex function in MATLAB ( http://patternsonascreen.net/cuSVM.html) that is written with CUDA language for executing on Nvidia GPUs.



I start with building .mexw64 version of it using the Visual Studio, But I got the invalid mex file error when I tried to call it in MATLAB:



??? Invalid MEX-file 'I:\cusvm_vs2005.mexw64': The specified procedure could not

be found.




I already used the dependency walker. Initially the "IESHIMS.DLL" and "MSVCR80.DLL" are missing. I put the first in system32 and the second in current matlab folder.



The Dependency Walker still get error:



Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.

Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

The DLL-tree has a red "nvcuda.dll" block and a red "ieframe.dll" block in its sub-tree.




I currently use VS2005, Matlab 2010b, Window 7 (64 bit), cuda toolkit 3.2.



The original cuSVM code is implemented on window xp (32 bit) and VS2005, So It has .mexw32 version in its package.



DETAILS-------------------------------------------------------------------------------------------------------------------------------



(1)



I uploaded two files of the project:



-mex function and its MATLAB test code



-visual studio project that builds the .mexw64 file.



The shared links are:



http://www.4shared.com/zip/B4u7WTvk/cusvm_mex_test.html



http://www.4shared.com/zip/duBVHVIM/cusvm_mex_building.html



(2)Some details of the steps I followed, can be found in my question in the following websites:



http://www.parallelcoding.com/2012/02/09/cusvm-in-visual-studio-2010-with-cuda-4-0/comment-page-1/#comment-19233



http://stackoverflow.com/questions/9530553/invalid-mex-the-specified-procedure-could-not-be-found-building-a-cuda-mex-fu



http://forums.nvidia.com/index.php?showtopic=223329





I appreciate your help and comments.

#1
Posted 04/24/2012 08:50 PM   
Scroll To Top