# FindBLAS with Fujitsu libraries

**URL:** https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953
**Category:** Usage
**Created:** [October 1, 2020, 7:09am UTC](https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953 "2020-10-01T07:09:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sreepathi\_Sarat](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sreepathi_sarat/32/907_2.png) [@Sreepathi\_Sarat](https://discourse.cmake.org/u/Sreepathi_Sarat)
#### Post date: [October 1, 2020, 7:09am UTC](https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953/1 "2020-10-01T07:09:53Z")

</div>

Hello:

I’m trying to build a scientific application that uses cmake on Fugaku, the Japanese supercomputer which has A64FX Arm processors.

This machine has Fujitsu compilers and scientific libraries that provide BLAS and LAPACK. For standalone compilation, the compiler flag -SSL2 is sufficient to link the appropriate libs. I can also manually add the paths and the library names are libssl2\*.so and libfjlapack.so.

However, I run into issues using cmake to configure:

CMake Error at /vol0001/apps/oss/spack-latest/opt/spack/linux-rhel7-haswell/gcc-4.8.5/cmake-3.17.3-rkedsjup2id63h5gamreeo5armkevnz2/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):

Could NOT find BLAS (missing: BLAS\_LIBRARIES)

Call Stack (most recent call first):

/vol0001/apps/oss/spack-latest/opt/spack/linux-rhel7-haswell/gcc-4.8.5/cmake-3.17.3-rkedsjup2id63h5gamreeo5armkevnz2/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (\_FPHSA\_FAILURE\_MESSAGE)

/vol0001/apps/oss/spack-latest/opt/spack/linux-rhel7-haswell/gcc-4.8.5/cmake-3.17.3-rkedsjup2id63h5gamreeo5armkevnz2/share/cmake-3.17/Modules/FindBLAS.cmake:892 (find\_package\_handle\_standard\_args)

/vol0001/apps/oss/spack-latest/opt/spack/linux-rhel7-haswell/gcc-4.8.5/cmake-3.17.3-rkedsjup2id63h5gamreeo5armkevnz2/share/cmake-3.17/Modules/FindLAPACK.cmake:196 (find\_package)

CMake/find\_dependencies\_fugaku.cmake:23 (find\_package)

CMakeLists.txt:51 (include)

Any pointers on resolving this issue are appreciated.

Thanks,

Sarat.

---

<div class="post-metadata">

### Author: ![Dakon](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dakon/32/854_2.png) [@Dakon](https://discourse.cmake.org/u/Dakon)
#### Post date: [October 1, 2020, 8:07am UTC](https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953/2 "2020-10-01T08:07:11Z")

</div>

Rough guess:  
[https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindLAPACK.cmake#L497](https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindLAPACK.cmake#L497)

You need to add another vendor block for Fujitsu here. The ones above  
should give you a rough idea on how to do it.

If it works please open a merge request in Gitlab, if not, file an  
issue.

Eike
