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

Vendored copy of ScaLAPACK does not build with GCC 14 #94

Open
prckent opened this issue Oct 24, 2024 · 2 comments
Open

Vendored copy of ScaLAPACK does not build with GCC 14 #94

prckent opened this issue Oct 24, 2024 · 2 comments

Comments

@prckent
Copy link
Contributor

prckent commented Oct 24, 2024

FYI, unfortunately the vendored copy of ScaLAPACK that is included with rmg does not work with (at least) GCC 14.2.0 due to a bad declaration and the improved (in)consistency checking. This has been noticed elsewhere by other people building/using ScaLAPACK. GCC 12.2.0 appears OK. Other than using an older compiler, can you suggest a workaround? I am building via spack and was hoping to achieve a set of pure GCC 14 builds for various electronic structure packages. One non-ideal possibility would be a local patch (not sure how extensive this needs to be), or to mark the package as incompatible with GCC 14 in spack.

Thanks, Paul

     1143    /scratch/pk7/spack_build_stage/spack-stage-rmgdft-6.1.0-b6apu5imwytero2v7whsjdbry4raa6jb/spack-src/scalapack/BLACS/SRC/igsum2d_.c: In function 'igsum2d_':
  >> 1144    /scratch/pk7/spack_build_stage/spack-stage-rmgdft-6.1.0-b6apu5imwytero2v7whsjdbry4raa6jb/spack-src/scalapack/BLACS/SRC/igsum2d_.c:154:7: error: implicit declaration of function 'BI_imvcopy'; did yo
             u mean 'BI_zmvcopy'? [-Wimplicit-function-declaration]
     1145      154 |       BI_imvcopy(Mpval(m), Mpval(n), A, tlda, bp->Buff);
     1146          |       ^~~~~~~~~~
     1147          |       BI_zmvcopy
  >> 1148    /scratch/pk7/spack_build_stage/spack-stage-rmgdft-6.1.0-b6apu5imwytero2v7whsjdbry4raa6jb/spack-src/scalapack/BLACS/SRC/igsum2d_.c:169:13: error: implicit declaration of function 'BI_ivmcopy'; did y
             ou mean 'BI_cvmcopy'? [-Wimplicit-function-declaration]
     1149      169 |             BI_ivmcopy(Mpval(m), Mpval(n), A, tlda, bp2->Buff);
     1150          |             ^~~~~~~~~~
     1151          |             BI_cvmcopy
     1152    /scratch/pk7/spack_build_stage/spack-stage-rmgdft-6.1.0-b6apu5imwytero2v7whsjdbry4raa6jb/spack-src/scalapack/BLACS/SRC/igsum2d_.c:82:45: warning: unused variable 'itr' [-Wunused-variable]
     1153       82 |    Int N, length, dest, tlda, trdest, ierr, itr;
     1154          |                                             ^~~
     1155    /scratch/pk7/spack_build_stage/spack-stage-rmgdft-6.1.0-b6apu5imwytero2v7whsjdbry4raa6jb/spack-src/scalapack/BLACS/SRC/igsum2d_.c:82:39: warning: variable 'ierr' set but not used [-Wunused-but-set-
             variable]
     1156       82 |    Int N, length, dest, tlda, trdest, ierr, itr;
     1157          |                                       ^~~~
@elbriggs
Copy link
Member

I'm looking into possible solutions. If a local patch is not super extensive I would prefer going with that rather than marking it as incompatible with gcc 14 but don't know enough to say just yet.

@prckent
Copy link
Contributor Author

prckent commented Oct 25, 2024

Thanks Emil.

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

2 participants