Skip to content

Can't build with libFLAME #14205

@s-sajid-ali

Description

@s-sajid-ali

numpy fails to link to any variant of libFLAME (release, master, static, shared) and complains of undefined references of BLAS functions from the libflame library. When I attempted to build numpy+blis+libflame, I ended up building numpy+blis~libflame

Reproducing code example:

Using spack to build numpy as per this PR

Specific commands executed during build&install are as follows
python3.7' '-s' 'setup.py' '--no-user-cfg' 'build'

python3.7' '-s' 'setup.py' '--no-user-cfg' 'install' '--prefix=/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/py-numpy-1.17.0-psnrtylx4lzvesb6zovmdim7mlt2ubh6' '--single-version-externally-managed' '--root=/

site.cfg generated during the build process.
build.log
build.env

libFLAME was configured to build with lapack2flame and generate a static library ( build.log for the same).

Numpy/Python version information:

>>> print(numpy.__version__, sys.version)
1.17.0 3.7.4 (default, Aug  5 2019, 20:17:04)
[GCC 9.1.0]

Link info :

Python version                                                                                                                                        
                                                                                                                                                      
3.7.4 (default, Aug  5 2019, 20:17:04)                                                                                                                
[GCC 9.1.0]                                                                                                                                           
                                                                                                                                                      
OS info                                                                                                                                               
                                                                                                                                                      
Linux-3.10.0-693.el7.x86_64-x86_64-with-centos-7.5.1804-Core                                                                                          
                                                                                                                                                      
Numpy BLAS/Lapack linkage                                                                                                                             
                                                                                                                                                      
blis_info:                                                                                                                                            
    libraries = ['blis', 'blis']                                                                                                                      
    library_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/lib']            
    define_macros = [('HAVE_CBLAS', None)]                                                                                                            
    include_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/include']        
    language = c                                                                                                                                      
    runtime_library_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/lib']    
blas_opt_info:                                                                                                                                        
    libraries = ['blis', 'blis']                                                                                                                      
    library_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/lib']            
    define_macros = [('HAVE_CBLAS', None)]                                                                                                            
    include_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/include']        
    language = c                                                                                                                                      
    runtime_library_dirs = ['/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-9.1.0/blis-0.6.0-4nabwbykywmmdbrugpp46y74awliplpp/lib']    
flame_info:                                                                                                                                           
  NOT AVAILABLE                                                                                                                                       
lapack_opt_info:                                                                                                                                      
  NOT AVAILABLE                                                                                                                                       

PS : I'm not sure if this error is due incorrect build process of numpy or with libflame itself. If this is due to an incorrectly configured libflame, feel free to close this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions