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

error when i make the scalapack #103

Open
chandlerriver opened this issue Dec 1, 2024 · 1 comment
Open

error when i make the scalapack #103

chandlerriver opened this issue Dec 1, 2024 · 1 comment

Comments

@chandlerriver
Copy link

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

@zerothi
Copy link
Contributor

zerothi commented Dec 2, 2024

Duplicate of #21

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