using eig to find the eigenvalues and eigenvectors of a large matrix on GPU
Show older comments
Hi,
I have matrix A with 7936*7936 dimensions. I use eig to find its eigenvalues and eigenvectors, the command is [vect,eigen]=eig(A). But if I perform this calculations on GPU, it is more slower than cpu. My code on GPU is as follows
A=rand(7936,7936,'gpuArray');
[vect,eigen]=eig(A);
I do not know why is this calculations on GPU is so slowly? Are there some other good methods to accelerate the eig on GPU?
Thanks very much!
2 Comments
Walter Roberson
on 23 Oct 2021
For your purposes, could you switch to single precision?
Qiu Xu
on 23 Oct 2021
Accepted Answer
More Answers (0)
Categories
Find more on Kernel Creation from MATLAB Code in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!