Call magma from Fortran, problem of wrapper

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
catecb
Posts: 6
Joined: Sat Dec 15, 2018 11:44 pm

Re: Call magma from Fortran, problem of wrapper

Post by catecb » Fri Mar 06, 2020 1:25 pm

mgates3 wrote:
Tue Jun 23, 2015 1:08 pm
We haven't yet made Fortran wrappers for the MAGMA BLAS functions. For the time being, you can call cublas directly, e.g.,

call cublas_dtrsm

magma_dtrsm is simply a wrapper around cublas_dtrsm, used for portability between cuBLAS, clBLAS, and Xeon Phi MKL BLAS.

magmablas_dtrsm is our own implementation of trsm, which is faster in some circumstances. There is not currently a means to call this from Fortran.

-mark
Is this still the case in 2020? Aren't we able to call MAGMA BLAS routines from Fortran?

serina21
Posts: 1
Joined: Sat May 09, 2020 8:03 am
Contact:

Re: Call magma from Fortran, problem of wrapper

Post by serina21 » Sat May 09, 2020 9:03 am

catecb wrote:
Fri Mar 06, 2020 1:25 pm
mgates3 wrote:
Tue Jun 23, 2015 1:08 pm
We haven't yet made Fortran wrappers for the MAGMA BLAS functions. For the time being, you can call cublas directly, e.g.,

call cublas_dtrsm

magma_dtrsm is simply a wrapper around cublas_dtrsm, used for portability between cuBLAS, clBLAS, and Xeon Phi MKL BLAS.

magmablas_dtrsm is our own implementation of trsm, which is faster in some circumstances. There is not currently a means to call this from Fortran.

-mark
Is this still the case in 2020? Aren't we able to call MAGMA BLAS routines from Fortran?
I was just about to ask the same. But I guess no one has replied, so I am just pushing the thread up again.
What about MAGMA BLAS routines?

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: Call magma from Fortran, problem of wrapper

Post by mgates3 » Tue May 12, 2020 1:27 pm

There are wrappers for MAGMA BLAS routines since 2.5.0 (Nov 2018). They are lacking documentation, though. See control/magmablas_zfortran.F90, and control/magma.F90 for queues, constants, etc.

Mark

navdeep
Posts: 1
Joined: Wed Jul 08, 2020 8:41 am
Location: Pune
Contact:

Re: Call magma from Fortran, problem of wrapper

Post by navdeep » Wed Jul 08, 2020 8:51 am

did anyone able to call MAGMA BLAS routines from Fortran? any link would be helpful. Thanks

Post Reply