Hello,
I have downloaded and installed Magma 1.1.0 and generated two libraries namely libmagma.a and libmagmablas.a. I wanted to compile MPF with this magma libraries and it lands in trouble. The configuration script of MPF looks for sgemm_ routine in the blas libraries and could not find them in magma blas libraries. Any hint on this? If sgemm_ routine is not available with magma blas, then how about developing a wrapper for that or is there any other way to fix this at this level itself?
I tried writing a small wrapper for the routines (z/d/cs)gemm_ in which, say, a routine cblas_sgemm() is being developed which in turn invoke magmablas_sgemm(). Here, I end up type conversion issue as listed below
src/wrapper.cpp: In function ‘void cblas_zgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, const void*, const void*, int, const void*, int, const void*, void*, int)’:
src/wrapper.cpp:93: error: conversion from ‘const void*’ to non-scalar type ‘cuDoubleComplex’ requested
src/wrapper.cpp: At global scope:
src/wrapper.cpp:87: warning: unused parameter ‘Order’
src/wrapper.cpp: In function ‘void cblas_cgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, const void*, const void*, int, const void*, int, const void*, void*, int)’:
src/wrapper.cpp:104: error: conversion from ‘const void*’ to non-scalar type ‘cuFloatComplex’ requested
src/wrapper.cpp: At global scope:
src/wrapper.cpp:97: warning: unused parameter ‘Order’
Any hint to fis this? Sometime back, I could use this approach to work with scigpu. But now, with magma, it failed.
with thanks and regards
Bala
