GPU computing errror of BLAS library
Mostrar comentarios más antiguos
Hi I am using GPU to accelerate my program but an error message comes out after several excuation of my function (I guess this means the first several excuations are successful?)
Failed to initialize GPU BLAS library.
Can anyone help me? I am guess its the CUDA version problem.
Thanks!
I am on Windows 10 with gtx 1080 and CUDA version 9.0.176
8 comentarios
Joss Knight
el 26 de Nov. de 2017
No version of MATLAB uses CUDA 9. If you've downloaded the CUDA 9 toolkit that's great, but MATLAB isn't using it.
So tell us what version of MATLAB you are using and let us know what you're running, so we can reproduce your problem.
Rui Xiang
el 26 de Nov. de 2017
Rui Xiang
el 26 de Nov. de 2017
Joss Knight
el 26 de Nov. de 2017
You don't need to install the CUDA toolkit in order to use MATLAB. MATLAB comes with a copy of all the toolkit libraries it uses.
You do, of course, need a graphics driver from the NVIDIA website in order to use your card.
So, with that cleared up...you will need to actually provide some code to reproduce your issue otherwise there's just nothing we can do to help.
Rui Xiang
el 26 de Nov. de 2017
Joss Knight
el 27 de Nov. de 2017
Your code is rather confusing. It doesn't seem to actually do anything on the GPU, it just copies data onto it. I'm not even sure how it can execute since, for instance, s1 doesn't exist before you use it.
Can you give me some functional code that contains everything I need to run it?
Rui Xiang
el 27 de Nov. de 2017
Joss Knight
el 27 de Nov. de 2017
Okay, but I still don't have the definition of PCA or DAL or the input variables.
It doesn't look like you're using the GPU till the first line beginning S11. Why don't you separate off that bit of code and see if you can reproduce your problem with just that and some random input matrices? Then I can have a go with it. It might matter what size and type your arrays are.
Respuestas (0)
Categorías
Más información sobre GPU Computing in MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!