gesv method
7 posts
• Page 1 of 1
gesv method
i am almost at the end of my project and now i need to solve a 576*576 linear system , i have tried matrix inversion and multiplication in cuda but it is not solving my problem . then i tried cusp and now i am learning cula to solve my problem . i found the method gesv() will anyone explain a sample program using cualSgesv() . see this is a crucial step in my whole project and i will be thankful to you
- upesh
- Posts: 8
- Joined: Thu Aug 16, 2012 12:03 am
Re: gesv method
The example called "systemSolve" should be quite helpful to you here. You will need to make the system dense by populating a full 576x576 matrix with your data, but you'll find it should be fairly fast.
- john
- Administrator
- Posts: 587
- Joined: Thu Jul 23, 2009 2:31 pm
Re: gesv method
thank you sir , i observed the example systemsolve() but let me tell you one more problem i faced when i installed cula in ubuntu 12.04 even if i set the path for cula libraries , the systemsolve example is not running it says lapack.h no such file or directory . i am using cuda 4.2 , is it the problem . now i am going to uninstall the entire os and cuda and trying again , if you don't mind please tell me the installation procedure in ubuntu 11.10
thank you .
thank you .
- upesh
- Posts: 8
- Joined: Thu Aug 16, 2012 12:03 am
Re: gesv method
There is a makefile in that folder that should demonstrate clearly how to compile.
- john
- Administrator
- Posts: 587
- Joined: Thu Jul 23, 2009 2:31 pm
Re: gesv method
sir i forgot to tell you one thing that the 576*576 matrix is sparse such that a row contains only 4 elements can i solve it with cula dense or should i use cula sparse . one more doubt sir , what about the compatibility of cula to cuda versions
- upesh
- Posts: 8
- Joined: Thu Aug 16, 2012 12:03 am
Re: gesv method
For a matrix that is over 99% sparse, you certainly want to explore iterative sparse methods such as the routines found in CULA Sparse.
However, these iterative methods are conceptually a little more complex than the dense routine, xGESV, which uses a simple LU decomposition. There are many different iterative routines and additional concepts such as preconditions all used to solve sparse systems.
For more information about the mathematics behind these methods, I'd suggest reading Yousef Saad's freely available book, "."
However, these iterative methods are conceptually a little more complex than the dense routine, xGESV, which uses a simple LU decomposition. There are many different iterative routines and additional concepts such as preconditions all used to solve sparse systems.
For more information about the mathematics behind these methods, I'd suggest reading Yousef Saad's freely available book, "."
- kyle
- Administrator
- Posts: 301
- Joined: Fri Jun 12, 2009 7:47 pm
Re: gesv method
sir is there any examples along with cula sparse examples folder to solve linear system , will they give exact result . If this works well we would like to by the premium version , we have enough funding on this project
Thank You
Thank You
- upesh
- Posts: 8
- Joined: Thu Aug 16, 2012 12:03 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest