Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biulding on lunux with ATLAS #49

Open
prime6809 opened this issue Mar 30, 2021 · 6 comments
Open

Biulding on lunux with ATLAS #49

prime6809 opened this issue Mar 30, 2021 · 6 comments

Comments

@prime6809
Copy link

Hi there,

I'm trying to do a cmake build on linux with a custom built ATLAS. This is installed in :

/usr/local/packages/ATLAS-3.10.3 with it's lib and include directories below there.
The lib directory contaions the libararies:
libatlas.a libf77blas.a libptcblas.a libsatlas.so
libcblas.a liblapack.a libptf77blas.a libtatlas.so

I'm running cmake with:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/packages/superlu-5.2.2 -DTPL_BLAS_LIBRARIES=/usr/local/packages/ATLAS-3.10.3/lib/libatlas.a

And getting the following output:

Process XSDK defaults ...
USE_XSDK_DEFAULTS = 'FALSE'
-- SuperLU will be built as a static library.
-- The C compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/local/packages/gcc-9.3.0/bin/gcc
-- Check for working C compiler: /usr/local/packages/gcc-9.3.0/bin/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is GNU 9.3.0
-- Check for working Fortran compiler: /usr/local/packages/gcc-9.3.0/bin/gfortran
-- Check for working Fortran compiler: /usr/local/packages/gcc-9.3.0/bin/gfortran - works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/local/packages/gcc-9.3.0/bin/gfortran supports Fortran 90
-- Checking whether /usr/local/packages/gcc-9.3.0/bin/gfortran supports Fortran 90 - yes
-- Did not find or specify BLAS so configure to build internal CBLAS ...
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

TPL_BLAS_LIBRARIES

-- Build files have been written to: /storage/stsxab/CentosBuild-2020/SuperLU/superlu-5.2.2/build

What do I have to do to pursuade it to use the pre-compiled atlas libs?

Cheers.

Phill.

@xiaoyeli
Copy link
Owner

I saw this line:
-- Did not find or specify BLAS so configure to build internal CBLAS ...

So it's not taking your definition of TPL_BLAS_LIBRARIES. But if you look at the CMakeLists.txt:
https://github.com/xiaoyeli/superlu/blob/master/CMakeLists.txt

The variable TPL_BLAS_LIBRARIES is properly defined. Are you using a different CMakeLists.txt ?

@prime6809
Copy link
Author

prime6809 commented Apr 1, 2021

Nope using the distributed CMakeLists.txt I'll download checkout fresh copy of the source from git and try that as I had tried a standard make build before switching to cmake, including editing make.inc so that may be affecting it.

Does the same with a freshly cloned version too.
I also checked that the file specified in -DTPL_BLAS_LIBRARIES= exists

@AdrianTianyi
Copy link

I also have such a problem when I try to compile with Openblas. Does this mean that the command
-DTPL_BLAS_LIBRARIES=/usr/local/packages/ATLAS-3.10.3/lib/libatlas.a
is wrong or not enough?

@prime6809
Copy link
Author

This still doesn't seem to be resolved can you PLEASE tell me what -DTPL_BLAS_LIBRARIES= should be set to to link against atlas?

@xiaoyeli
Copy link
Owner

Can you try adding the following cmake flag:
-DUSE_XSDK_DEFAULTS = 'TRUE'

@cjmcclellan
Copy link

I was having the same error, but adding -DUSE_XSDK_DEFAULTS = 'TRUE' worked. My final cmake command was:

cmake .. -DTPL_BLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/atlas/libblas.so -DUSE_XSDK_DEFAULTS='TRUE'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants