Forum - LAPACKE for SX-Aurora TSUBASA

Jump to navigation Jump to search
Overview > Topics > Porting > LAPACKE for SX-Aurora TSUBASA
[#29]

LAPACKE is a C Interface library of LAPACK. If you would like to use LAPACKE on SX-Aurora TSUBASA, please see below:

1) Download the following source package.

https://github.com/SX-Aurora/lapacke-ve/releases/tag/v3.8.0-1/lapacke-ve-3.8.0-1.el7.centos.src.rpm

2) Install the package by root

# rpmbuild --rebuild lapacke-ve-3.8.0-1.el7.centos.src.rpm
# rpm -ivh --nodeps /root/rpmbuild/RPMS/x86_64/lapacke-ve-3.8.0-1.el7.x86_64.rpm

I confirmed that an example program linking with LAPACKE runs successfully:

$ source /opt/nec/ve/nlc/2.0.0/bin/nlcvars.sh
$ ncc -I /opt/nec/ve/include/lapacke/ example_lapacke_dgesv.c -c -o example_lapacke_dgesv.o
$ nfort example_lapacke_dgesv.o -L /opt/nec/ve/lib -llapacke -llapack -lblas_sequential -o a.out
$ ./a.out

example_lapacke_dgesv.c

Posted by NEC admin (administrator) on 17 June 2022 at 02:13.
Edited by NEC admin (administrator) on 20 June 2022 at 08:08.