Skip to content

error when i make the scalapack  #103

@chandlerriver

Description

@chandlerriver

there is error after "make"(/home/node3/scalapack-2.2.0)

gfortran -c -O3 bslaapp.f
gfortran -c -O3 bslaexc.f
gfortran -c -O3 bstrexc.f
gfortran -c -O3 pstrord.f
pstrord.f:525:51:

490 | $ CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, MMAX, 1, -1,
| 2
......
525 | CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, INFO, 1, -1, -1,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
pstrord.f:1582:51:

490 | $ CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, MMAX, 1, -1,
| 2
......
1582 | CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, IERR, 1, -1,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
pstrord.f:1593:54:

490 | $ CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, MMAX, 1, -1,
| 2
......
1593 | CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, INFO, 1, -1,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
pstrord.f:3253:51:

490 | $ CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, MMAX, 1, -1,
| 2
......
3253 | CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, IERR, 1, -1,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
pstrord.f:3264:54:

490 | $ CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, MMAX, 1, -1,
| 2
......
3264 | CALL IGAMX2D( ICTXT, 'All', TOP, 1, 1, INFO, 1, -1,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
make[1]: *** [Makefile:226: pstrord.o] Error 1
make[1]: Leaving directory '/home/node3/scalapack-2.2.0/SRC'
make: *** [Makefile:68: scalapacklib] Error 2

environment:
(base) node3@node3:/scalapack-2.2.0$ which mpiexec
/opt/intel/oneapi/mpi/2021.14/bin/mpiexec
(base) node3@node3:
/scalapack-2.2.0$ which mpifort
/usr/local/bin/mpifort
(base) node3@node3:/scalapack-2.2.0$ gfortran --version
GNU Fortran (Ubuntu 11.4.0-1ubuntu1
22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) node3@node3:~/scalapack-2.2.0$ more SLmake.inc
CDEFS = -DAdd_
FC = gfortran
CC = mpicc
NOOPT = -O0
FCFLAGS = -O3
CCFLAGS = -O3
FCLOADER = $(FC)
CCLOADER = $(CC)
FCLOADFLAGS = $(FCFLAGS)
CCLOADFLAGS = $(CCFLAGS)
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
SCALAPACKLIB = libscalapack.a
BLASLIB = /usr/local/lib/librefblas.a
LAPACKLIB = /usr/local/lib/liblapack.a
LIBS = $(LAPACKLIB) $(BLASLIB)

==========
all compile in gfortran

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions