Multiplying two matrices of integers (int 32/64) with MAGMA

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
liliesiu
Posts: 1
Joined: Sun May 01, 2016 4:27 am

Multiplying two matrices of integers (int 32/64) with MAGMA

Post by liliesiu » Sun May 01, 2016 4:32 am

Is there any implementation for multiplying matrices of int32s or int64s using MAGMA? (I couldn't find it in the documentation.) I am using this for an application in which I really have no use for the exponent of floats and it would thus really make sense to just use integers. Thank you!

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

Re: Multiplying two matrices of integers (int 32/64) with MA

Post by mgates3 » Sun May 01, 2016 9:33 am

No. You could create one from the existing code in:

magmablas/sgemm_fermi.cu
magmablas/sgemm_fermi_kernels.h
magmablas/gemm_stencil_defs.h
magmablas/gemm_stencil.h

It uses a generic stencil, with defines & typedefs gemm_stencil_defs.h controlling what precision is generated. Add a new case for integer. I would call it "igemm".

-mark

Post Reply