amd / scalapack

DEPRECATED. This Scalapck repository is deprecated. The last version in this repository is 3.0. Refer to "aocl-scalapack" repository under the same "amd" organization for AOCL Scalapack 3.1 release onwards. https://github.com/amd/aocl-scalapack
Other
9 stars 2 forks source link

GCC 10 builds fail #4

Open mattchan-tencent opened 3 years ago

mattchan-tencent commented 3 years ago

GFortran 10's new argument mismatch detector fails when building scalapack.

This is the error:

[ 34%] Building Fortran object CMakeFiles/scalapack.dir/SRC/slar1va.f.o
/home/cloud/spack/opt/spack/linux-tlinux2-x86_64/gcc-10.2.0/openmpi-4.0.5-sxpobx6y7a4kacur5sa5fn3jncnwwjql/bin/mpif90 -DAdd_ -Dscalapack_EXPORTS  -O2 -DNDEBUG -O2 -fPIC   -cpp -DF2C -DUSE_BLAS -c /tmp/cloud/spack-stage/spack-stage-amdscalapack-2.2-o2hj43lksfpwo4mqaifw3hljkefpenqo/spack-src/SRC/slar1va.f -o CMakeFiles/scalapack.dir/SRC/slar1va.f.o
/tmp/cloud/spack-stage/spack-stage-amdscalapack-2.2-o2hj43lksfpwo4mqaifw3hljkefpenqo/spack-src/SRC/psstebz.f:778:65:

  775 |             CALL IGEBR2D( ONEDCONTEXT, 'ALL', ' ', 1, 1, TORECV, 1, 0,
      |                                                         2
......
  778 |                CALL IGEBR2D( ONEDCONTEXT, 'ALL', ' ', TORECV, 1, IWORK,
      |                                                                 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)

Apparently this is a common bug, but it requires source fixes. (you can specify -fallow-argument-mismatch as a temporary workaround)

pradeeptrgit commented 3 years ago

Hi, Thanks for posting. We have not validated on GFORTRAN 10. We will verify this and revert.

pradeeptrgit commented 2 years ago

This should be fixed with latest AOCL 3.1 release. The ScaLAPACK for AMD repository is now available under a new repository https://github.com/amd/aocl-scalapack.