Help regarding using kernals

Open forum for general discussions relating to PLASMA.

Re: Help regarding using kernals

Postby mateo70 » Tue Jun 15, 2010 3:42 pm

Hi,

This kernels are the routines called by each thread, so the way to call them is exactly the same than the way to call BLAS or Lapack functions. If you don't know them, one of the fastest way to do is to google the routine's name and read the explanation at the beginning of the file.

By the way, you shouldn't use the functions in core_lapack because they will be remove in the next release because they are copy/paste from Lapack and core_blas routines are now written in C. So you should probably wait for the July 4th and the new release to use them or, if you can, use directly Lapack functions.

Mathieu
mateo70
 
Posts: 92
Joined: Fri May 07, 2010 3:48 pm

Re: Help regarding using kernals

Postby admin » Tue Jun 15, 2010 3:54 pm

The source code should have LAPACK-style comments.
Look at the source code of the kernels.
Jakub
admin
Site Admin
 
Posts: 79
Joined: Wed May 13, 2009 1:27 pm

Re: Help regarding using kernals

Postby admin » Wed Jun 16, 2010 9:36 am

Nothing else is required.
You can compile the kernels to object files and link with your code.
You will have to call them using the FORTRAN interface - pass everything by reference.
Jakub
admin
Site Admin
 
Posts: 79
Joined: Wed May 13, 2009 1:27 pm

Re: Help regarding using kernals

Postby mateo70 » Sat Jun 19, 2010 3:04 pm

Hi,

Plasma is taking matrix in column major storage, the matrix you gave to plasma is in row major, so it is not the one of your example. You should have :
Code: Select all
 double A[9] = { 2., 2., 1., 0., -1., 2., 1., 1., 2.};


Mathieu
mateo70
 
Posts: 92
Joined: Fri May 07, 2010 3:48 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron