Skip to content

Internal nvhpc cannot be used as both a compiler and blas, lapack on the same spec #51062

@vanderwb

Description

@vanderwb

Steps to reproduce

This might be another manifestation of the problem reported in #51058, but I'm reporting it here in the event that it is different.

$ spack external find gcc
$ spack install nvhpc@25.5 %gcc@12.3.0
$ spack spec -l arpack-ng %c,cxx,fortran,blas,lapack=nvhpc@25.5

Error message

If I use openblas, everything works as expected:

$ spack spec -l arpack-ng %c,cxx,fortran=nvhpc@25.5 %blas,lapack=openblas
 -   rdjxfk2  arpack-ng@3.9.1~icb~ipo+mpi+shared build_system=cmake build_type=Release generator=make arch=linux-sles15-x86_64_v3 %c,cxx,fortran=nvhpc@25.5
 -   lacj55r      ^cmake@3.31.8~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release arch=linux-sles15-x86_64_v3 %c,cxx=gcc@14.2.0
 -   566qij6          ^curl@8.11.1~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl arch=linux-sles15-x86_64_v3 %c,cxx=gcc@14.2.0
 -   smdzbzh              ^nghttp2@1.65.0 build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@14.2.0
 -   ika5ihw                  ^diffutils@3.10 build_system=autotools arch=linux-sles15-x86_64_v3 %c=gcc@14.2.0
 -   t2dr2le                      ^libiconv@1.18 build_system=autotools libs:=shared,static arch=linux-sles15-x86_64_v3 %c=gcc@14.2.0
[e]  bzbk6hz              ^openssl@3.1.4~docs+shared build_system=generic certs=system arch=linux-sles15-x86_64_v3 
[e]  5cquh3q              ^pkg-config@0.29.2+internal_glib build_system=autotools arch=linux-sles15-x86_64_v3 
[e]  36obdep          ^gcc@14.2.0~binutils+bootstrap~graphite~mold~nvptx+piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=de02757 arch=linux-sles15-x86_64_v3 
 -   wsy7ov3          ^gcc-runtime@14.2.0 build_system=generic arch=linux-sles15-x86_64_v3 
 -   dsxg7tn          ^ncurses@6.5~symlinks+termlib abi=none build_system=autotools patches:=7a351bc arch=linux-sles15-x86_64_v3 %c,cxx=gcc@14.2.0
 -   ymob4rr          ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@14.2.0
 -   fuizbmo      ^compiler-wrapper@1.0 build_system=generic arch=linux-sles15-x86_64_v3 
[e]  y67euko      ^cray-mpich@8.1.32~cuda~rocm+wrappers build_system=generic arch=linux-sles15-x86_64_v3 
[e]  enwtqad      ^glibc@2.38 build_system=autotools arch=linux-sles15-x86_64_v3 
 -   eibspj7      ^gmake@4.4.1~guile build_system=generic arch=linux-sles15-x86_64_v3 %c=gcc@14.2.0
[+]  o6eqxod      ^nvhpc@25.5+blas+lapack~mpi build_system=generic default_cuda=default install_type=single arch=linux-sles15-x86_64_v3 
[e]  pnldmog          ^gcc@12.3.0~binutils+bootstrap~graphite~mold~nvptx+piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=de02757 arch=linux-sles15-x86_64_v3 
 -   hwcwm56      ^openblas@0.3.29~bignuma~consistent_fpcsr+dynamic_dispatch+fortran~ilp64+locking+pic+shared build_system=makefile symbol_suffix=none threads=none arch=linux-sles15-x86_64_v3 %c,cxx,fortran=nvhpc@25.5

but if I try to use nvhpc for everything, Spack gives the wrong result:

$ spack spec -l arpack-ng %c,cxx,fortran,blas,lapack=nvhpc@25.5                                                                    
 -   sq4fws7  arpack-ng@3.9.1~icb~ipo+mpi+shared build_system=cmake build_type=Release generator=make arch=linux-sles15-x86_64_v3 %c,cxx,fortran=gcc@12.3.0
 -   r3ou2aa      ^cmake@3.31.8~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
 -   4mib4ik          ^curl@8.11.1~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
 -   smak4y5              ^nghttp2@1.65.0 build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
 -   okh37ij                  ^diffutils@3.10 build_system=autotools arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0
 -   ghnlz2e                      ^libiconv@1.18 build_system=autotools libs:=shared,static arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0                                                                                                                                                                                
[e]  bzbk6hz              ^openssl@3.1.4~docs+shared build_system=generic certs=system arch=linux-sles15-x86_64_v3                                                                                                                                                                                                   
[e]  5cquh3q              ^pkg-config@0.29.2+internal_glib build_system=autotools arch=linux-sles15-x86_64_v3                                  
 -   zoksanf          ^ncurses@6.5~symlinks+termlib abi=none build_system=autotools patches:=7a351bc arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0                                                                                                                                                                   
 -   2qaeoyz          ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
 -   fuizbmo      ^compiler-wrapper@1.0 build_system=generic arch=linux-sles15-x86_64_v3                      
[e]  rs7swez      ^cray-mpich@8.1.32~cuda~rocm+wrappers build_system=generic arch=linux-sles15-x86_64_v3                             
[e]  pnldmog      ^gcc@12.3.0~binutils+bootstrap~graphite~mold~nvptx+piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=de02757 arch=linux-sles15-x86_64_v3 
 -   5rh2zdg      ^gcc-runtime@12.3.0 build_system=generic arch=linux-sles15-x86_64_v3                        
[e]  enwtqad      ^glibc@2.38 build_system=autotools arch=linux-sles15-x86_64_v3                                                                  
 -   k6jttmb      ^gmake@4.4.1~guile build_system=generic arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0                                           
[+]  o6eqxod      ^nvhpc@25.5+blas+lapack~mpi build_system=generic default_cuda=default install_type=single arch=linux-sles15-x86_64_v3

and then this, which breaks:

$ spack spec -l arpack-ng %c,cxx,fortran=nvhpc@25.5                                                                                
==> Error: internal solver error: the following specs were concretized, but do not satisfy the input:
    - input: arpack-ng %c,cxx,fortran=nvhpc@25.5                                                                                                                                                                                                                                                                     
      output: arpack-ng@3.9.1~icb~ipo+mpi+shared build_system=cmake build_type=Release generator=make arch=linux-sles15-x86_64_v3 %c,cxx,fortran=gcc@12.3.0
    ^cmake@3.31.8~doc+ncurses+ownlibs~qtgui build_system=generic build_type=Release arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
        ^curl@8.11.1~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=openssl arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
            ^nghttp2@1.65.0 build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0                          
                ^diffutils@3.10 build_system=autotools arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0
                    ^libiconv@1.18 build_system=autotools libs:=shared,static arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0
            ^openssl@3.1.4~docs+shared build_system=generic certs=system arch=linux-sles15-x86_64_v3 
            ^pkg-config@0.29.2+internal_glib build_system=autotools arch=linux-sles15-x86_64_v3 
        ^ncurses@6.5~symlinks+termlib abi=none build_system=autotools patches:=7a351bc arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
        ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-sles15-x86_64_v3 %c,cxx=gcc@12.3.0
    ^compiler-wrapper@1.0 build_system=generic arch=linux-sles15-x86_64_v3 
    ^cray-mpich@8.1.32~cuda~rocm+wrappers build_system=generic arch=linux-sles15-x86_64_v3 
    ^gcc@12.3.0~binutils+bootstrap~graphite~mold~nvptx+piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=de02757 arch=linux-sles15-x86_64_v3 
    ^gcc-runtime@12.3.0 build_system=generic arch=linux-sles15-x86_64_v3 
    ^glibc@2.38 build_system=autotools arch=linux-sles15-x86_64_v3 
    ^gmake@4.4.1~guile build_system=generic arch=linux-sles15-x86_64_v3 %c=gcc@12.3.0
    ^nvhpc@25.5+blas+lapack~mpi build_system=generic default_cuda=default install_type=single arch=linux-sles15-x86_64_v3 


    Please report a bug at https://github.com/spack/spack/issues and attach the following files:
    - /glade/gust/scratch/csgteam/temp/spack-asp-m35_gojl/input-1.json
    - /glade/gust/scratch/csgteam/temp/spack-asp-m35_gojl/output-1.json

input-1.json
output-1.json
spec.txt

Information on your system

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingimpact-mediumv1.0.1PRs to backport for v1.0.1

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions