OpenBLAS for integer matrix operations

730 views
Skip to first unread message

Abhijit Tripathy

unread,
Jun 30, 2015, 8:35:45 AM6/30/15
to openbla...@googlegroups.com
Hello Xianyi,
Is it possible to create new functions like cblas_sgemm , cblas_saxpy  operating on integers ?
My code has a lot of multiplications , but operates on integers . However since OpenBLAS uses
floating point code I have to cast them to use this library.

Can I create my own interface functions to fit my requirement , in openBLAS using your base code.
(I am unable to know how to compile my own  functions with the OpenBLAS library )

If yes, would you be kind to show an example .

Regards,
Abhijit Tripathy

Zhang Xianyi

unread,
Jun 30, 2015, 3:16:28 PM6/30/15
to Abhijit Tripathy, openbla...@googlegroups.com
Hi Abhijit,

Please check out this branch

https://github.com/xianyi/OpenBLAS/tree/integer_datatype

I just added integer axpy functions (iaxpy and cblas_iaxpy).

Xianyi

--
You received this message because you are subscribed to the Google Groups "OpenBLAS-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openblas-user...@googlegroups.com.
To post to this group, send email to openbla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

José Luis García Pallero

unread,
Jun 30, 2015, 3:22:55 PM6/30/15
to Zhang Xianyi, Abhijit Tripathy, openbla...@googlegroups.com
2015-06-30 21:16 GMT+02:00 Zhang Xianyi <traits...@gmail.com>:
> Hi Abhijit,
>
> Please check out this branch
>
> https://github.com/xianyi/OpenBLAS/tree/integer_datatype
>
> I just added integer axpy functions (iaxpy and cblas_iaxpy).

Mmmm, I didn't know the integer branch. Is it planned to add this
branch to the main library in the near future?
--
*****************************************
José Luis García Pallero
jgpa...@gmail.com
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

Zhang Xianyi

unread,
Jul 1, 2015, 11:12:32 AM7/1/15
to José Luis García Pallero, Abhijit Tripathy, openbla...@googlegroups.com
I just created this branch yesterday. I don't have any plan about this branch yet.

José Luis García Pallero

unread,
Jul 1, 2015, 11:19:34 AM7/1/15
to Zhang Xianyi, Abhijit Tripathy, openbla...@googlegroups.com
2015-07-01 17:12 GMT+02:00 Zhang Xianyi <traits...@gmail.com>:
> I just created this branch yesterday. I don't have any plan about this
> branch yet.

This is not a common feature in BLAS. As far as I know, no the
reference BLAS nor MKL or ACML has integer BLAS. Actually, I don't
know any BLAS implementing it. It could be a good option for OpenBLAS

Abhijit Tripathy

unread,
Jul 1, 2015, 11:58:07 PM7/1/15
to openbla...@googlegroups.com
Thanks a lot Xianyi for the quick help. I am looking into that :)
Abhijit Tripathy

Jeff Hammond

unread,
Aug 4, 2015, 3:46:22 PM8/4/15
to OpenBLAS-users, traits...@gmail.com, kai...@gmail.com
If you're going to support integer BLAS, you might try to support "funny matrix multiplication", which uses different operations on a semiring but can be mapped to APSP (www.csie.ntu.edu.tw/~r92019/r91054/20040420.ppt).  Searching for "gemm apsp" leads to other content on this topic.

Best,

Jeff
Reply all
Reply to author
Forward
0 new messages