MEX-CULA problem when running a program
7 posts
• Page 1 of 1
MEX-CULA problem when running a program
Hi:
I am working with CULA/MEX for one year without problems. Now. the machine was upgraded to last version of CULA R12 ,MKL 11, CUDA 4.0 and MATLABR2010b....All is OK, when compiling and doing a MEX...
mex dgeidreplpa_cu.o cudaDMatrixPlusIdentity.o -cxx -L/usr/local/cula/lib64 -L -L/opt/intel/composerxe-2011.1.107/mkl/lib/intel64 -lmkl_core -lmkl_intel_lp64
-lmkl_intel_thread -liomp5 -lcula -lcublas -lcudart -lpthread
The program compiled OK, but when running this program...I have a MATLAB error (in command mode. In window mode the program quits without any comments):
*** libmkl_mc3.so *** failed with error : /opt/intel/composerxe-2011.1.107/mkl/lib/intel64/libmkl_mc3.so: undefined symbol: i_free
*** libmkl_def.so *** failed with error : /opt/intel/composerxe-2011.1.107/mkl/lib/intel64/libmkl_def.so: undefined symbol: i_free
MKL FATAL ERROR: Cannot load neither libmkl_mc3.so nor libmkl_def.so
When googled a little and I found this:
http://software.intel.com/en-us/forums/ ... hp?t=60460
It seems that intel changed the behaviour of 10.03 on (11 also). I think I have to change the libraries to link, but I dont know how to do this....
Could you help me?
Do you have a MATLAB example compiled with CULA/MEX and Intel MKL 11. I copied the libraries to link from your benchmark example, but it does not work. It compiles OK, but I have problems when executing.
Thanks
jpeinado
I am working with CULA/MEX for one year without problems. Now. the machine was upgraded to last version of CULA R12 ,MKL 11, CUDA 4.0 and MATLABR2010b....All is OK, when compiling and doing a MEX...
mex dgeidreplpa_cu.o cudaDMatrixPlusIdentity.o -cxx -L/usr/local/cula/lib64 -L -L/opt/intel/composerxe-2011.1.107/mkl/lib/intel64 -lmkl_core -lmkl_intel_lp64
-lmkl_intel_thread -liomp5 -lcula -lcublas -lcudart -lpthread
The program compiled OK, but when running this program...I have a MATLAB error (in command mode. In window mode the program quits without any comments):
*** libmkl_mc3.so *** failed with error : /opt/intel/composerxe-2011.1.107/mkl/lib/intel64/libmkl_mc3.so: undefined symbol: i_free
*** libmkl_def.so *** failed with error : /opt/intel/composerxe-2011.1.107/mkl/lib/intel64/libmkl_def.so: undefined symbol: i_free
MKL FATAL ERROR: Cannot load neither libmkl_mc3.so nor libmkl_def.so
When googled a little and I found this:
http://software.intel.com/en-us/forums/ ... hp?t=60460
It seems that intel changed the behaviour of 10.03 on (11 also). I think I have to change the libraries to link, but I dont know how to do this....
Could you help me?
Do you have a MATLAB example compiled with CULA/MEX and Intel MKL 11. I copied the libraries to link from your benchmark example, but it does not work. It compiles OK, but I have problems when executing.
Thanks
jpeinado
- jpeinado
- Posts: 37
- Joined: Mon Sep 14, 2009 10:48 am
Re: MEX-CULA problem when running a program
If you remove all CULA code and all CULA libs, does this file work? I suspect it's a MEX/MKL issue since none of the messages reference CULA.
- john
- Administrator
- Posts: 587
- Joined: Thu Jul 23, 2009 2:31 pm
Re: MEX-CULA problem when running a program
I know that MATLAB uses these files in the bin/ARCH folder:
gpu.dll
cublasXX_XX_XX.dll
cublasXX_XX_XX.dll
Deleting them will cause MATLAB start normally but crash if you use the gpuArray functions. However, this might let your custom CUDA/CULA code work.
Alternatively, take a look at our link interface which works just fine with MATLAB's built in GPU functions:
http://www.culatools.com/blog/2011/05/3 ... interface/
gpu.dll
cublasXX_XX_XX.dll
cublasXX_XX_XX.dll
Deleting them will cause MATLAB start normally but crash if you use the gpuArray functions. However, this might let your custom CUDA/CULA code work.
Alternatively, take a look at our link interface which works just fine with MATLAB's built in GPU functions:
http://www.culatools.com/blog/2011/05/3 ... interface/
- kyle
- Administrator
- Posts: 301
- Joined: Fri Jun 12, 2009 7:47 pm
Re: MEX-CULA problem when running a program
Hi Again:
I apologize you because you asked me what will happen if I delete all the CUDA/CULA libraries.
It didnt work. It is not a problem of including CUDA/GULA/ or MATLAB GPU files....
I gave to you a bad answer....I tested and no, it does not work when compiling without these files. The problem could be that Intel changed the libraries to include from MKL 10 update 3 and later versions....
What I wanted to know is what libraries to include to use MKL/MEX (and also CUDA and CULA) routines....
Again, I am sorry for giving a bad answer to your question.
Thank you very much
jpeinado
I apologize you because you asked me what will happen if I delete all the CUDA/CULA libraries.
It didnt work. It is not a problem of including CUDA/GULA/ or MATLAB GPU files....
I gave to you a bad answer....I tested and no, it does not work when compiling without these files. The problem could be that Intel changed the libraries to include from MKL 10 update 3 and later versions....
What I wanted to know is what libraries to include to use MKL/MEX (and also CUDA and CULA) routines....
Again, I am sorry for giving a bad answer to your question.
Thank you very much
jpeinado
- jpeinado
- Posts: 37
- Joined: Mon Sep 14, 2009 10:48 am
Re: MEX-CULA problem when running a program
You should only have to link the CULA library if you are only using CULA routines.
- kyle
- Administrator
- Posts: 301
- Joined: Fri Jun 12, 2009 7:47 pm
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest