Home My Page Projects PaStiX
Summary Activity Forums Lists Docs News Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Failed to compile examples on Mac OS X [ Reply ]
By: Benedikt Oswald on 2012-02-07 16:04
[forum:109177]
Salut Pierre, that did the trick! Merci, Benedikt

RE: Failed to compile examples on Mac OS X [ Reply ]
By: Pierre Ramet on 2012-02-07 15:56
[forum:109176]
Dear Benedikt,
I check your config.in, can you just modify the following lines :

CF90CCPOPT = -xf95-cpp-input
CPP = cpp

Pierre.

RE: Failed to compile examples on Mac OS X [ Reply ]
By: Benedikt Oswald on 2012-02-07 14:37
[forum:109172]

config.in (17) downloads
Dear Pierre, using the attached config.in pastix and part of the examples compiled.
However, I have problems when compiling some fortran sources, cf. below:


mpif90 -O3 -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install utils.f90 -c -o ../obj/utils.o
Warning: utils.f90:8: Illegal preprocessor directive
Warning: utils.f90:9: Illegal preprocessor directive
Warning: utils.f90:10: Illegal preprocessor directive
Warning: utils.f90:11: Illegal preprocessor directive
Warning: utils.f90:123: Illegal preprocessor directive
Warning: utils.f90:125: Illegal preprocessor directive
Warning: utils.f90:143: Illegal preprocessor directive
Warning: utils.f90:145: Illegal preprocessor directive
Warning: utils.f90:147: Illegal preprocessor directive
Warning: utils.f90:180: Illegal preprocessor directive
Warning: utils.f90:183: Illegal preprocessor directive
Warning: utils.f90:191: Illegal preprocessor directive
Warning: utils.f90:205: Illegal preprocessor directive
utils.f90:49.6:

pastix_int_t, Intent(out) :: matsize
1
Error: Unclassifiable statement at (1)
utils.f90:128.6:

pastix_int_t, Intent(inout) :: n
1
Error: Unclassifiable statement at (1)
utils.f90:129.6:

pastix_int_t, Dimension(:), Allocatable, Intent(out) :: ia ! Index
1
Error: Unclassifiable statement at (1)
utils.f90:130.6:

pastix_int_t, Dimension(:), Allocatable, Intent(out) :: ja ! Row of
1
Error: Unclassifiable statement at (1)
utils.f90:131.6:

pastix_float_t, Dimension(:), Allocatable, Intent(out) :: val ! Value
1
Error: Unclassifiable statement at (1)
utils.f90:132.6:

pastix_float_t, Dimension(:), Allocatable, Intent(out) :: rhs ! right
1
Error: Unclassifiable statement at (1)
utils.f90:138.6:

pastix_int_t :: nnzero
1
Error: Unclassifiable statement at (1)
utils.f90:155.17:

Case(RSA)
1
Error: Symbol 'rsa' at (1) has no IMPLICIT type
utils.f90:156.81:

Call read_rsa(filename, n, nnzero, ia, ja, val, type, rhstype, ierr)
1
Error: Expected a CASE or END SELECT statement following SELECT CASE at (1)
utils.f90:157.23:

Case(LAPLACIAN)
1
Error: Symbol 'laplacian' at (1) has no IMPLICIT type
utils.f90:158.80:

Call genlaplacian(n, nnzero, ia, ja, val, rhs, type, rhstype, ierr)
1
Error: Expected a CASE or END SELECT statement following SELECT CASE at (1)
utils.f90:168.21:

allocate(rhs(n))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
utils.f90:171.18:

rhs(ja(j)) = val(j)
1
Error: Unclassifiable statement at (1)
utils.f90:173.21:

rhs(i) = val(j)
1
Error: Unclassifiable statement at (1)
utils.f90:186.20:

allocate(ia(n+1))
1
Error: 'ia' at (1) is not a variable
utils.f90:187.18:

allocate(ja(nnzero))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
utils.f90:188.18:

allocate(val(nnzero))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
utils.f90:189.18:

allocate(rhs(n))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
utils.f90:226.6:

pastix_int_t, Intent(out) :: n
1
Error: Unclassifiable statement at (1)
utils.f90:227.6:

pastix_int_t, Dimension(:), Allocatable, Intent(out) :: ia ! Index of
1
Error: Unclassifiable statement at (1)
utils.f90:228.6:

pastix_int_t, Dimension(:), Allocatable, Intent(out) :: ja ! Row of e
1
Error: Unclassifiable statement at (1)
utils.f90:229.6:

pastix_float_t, Dimension(:), Allocatable, Intent(out) :: val ! Value of
1
Error: Unclassifiable statement at (1)
utils.f90:232.6:

pastix_int_t, Intent(out) :: nnzero
1
Error: Unclassifiable statement at (1)
utils.f90:269.15:

allocate(ia(ncol+1))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or an allocatable variable
utils.f90:272.9:

ia(i) = tmpia(i)
1
Error: Unclassifiable statement at (1)
Fatal Error: Error count reached limit of 25.
make[1]: *** [../obj/utils.o] Error 1
make: *** [examples] Error 2


Do you have a clue what is going wrong here ?

Thanks, Benedikt

RE: Failed to compile examples on Mac OS X [ Reply ]
By: Pierre Ramet on 2012-02-07 11:05
[forum:109168]
Dear Benedikt,
your are right, it seems we have an error when we force complex arithmetic with PaStiX.
We will correct the problem in the next release.
But I think you don't need to uncomment the line with FORCE_COMPLEX.
By default, all arithmetisc are built, and you can call PaStiX with : spastix(), dpastix(), cpastix() and zpastix() like for a BLAS call (you will get examples generated automatically).
The -DFORCE_COMPLEX is only used to force default arithmetic when using pastix() without prefix...
Please also notice that PaStiX is working by default with symmetric matrices for complex arithmetic (not hermitian), but it should match with your researches on electromagnetism problems.
Let us know if you still have problems,
Pierre.

Failed to compile examples on Mac OS X [ Reply ]
By: Benedikt Oswald on 2012-02-07 09:50
[forum:109167]

config.in (8) downloads
Hello, I just tried to install pastil (great bear version) on Mac OS X, 10.7, using
gcc 4.6.2, openmpi 1.4.4, using the config.in file, attached to this post.

The compilation of pastix runs through however when I type make examples, I get
the following error messages:

odysseus:src oswald$ make examples
utils/bin/i686_mac/genheader \
/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install/cscd_utils_int64_double_complex.h \
/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install/pastix_fortran_int64_double_complex.h \
/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install/murge_int64_double_complex.inc \
sopalin/src/murge_pastix.inc \
murge/include/murge.h \
murge/scripts/genfort.pl \
utils/src/insert-fortran-inc.sh C
cat sopalin/src/cscd_utils.h >> /Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install/cscd_utils_int64_double_complex.h
(cd /Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install && ln -sf cscd_utils_int64_double_complex.h cscd_utils.h)
mpicc -Wall -O2 -DFORCE_INT64 -DINTSSIZE64 -DNUMA_ALLOC -DMEMORY_USAGE -DSTATS_SOPALIN -DMETIS -I/Users/oswald/extlib/metis/4.0.3/gcc/4.6.2/Lib -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install -DFORCE_DOUBLE -DPREC_DOUBLE -DFORCE_COMPLEX -DTYPE_COMPLEX -c matrix_drivers/src/iohb.c -o matrix_drivers/obj/i686_mac/iohb.o
mpicc -Wall -O2 -DFORCE_INT64 -DINTSSIZE64 -DNUMA_ALLOC -DMEMORY_USAGE -DSTATS_SOPALIN -DMETIS -I/Users/oswald/extlib/metis/4.0.3/gcc/4.6.2/Lib -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install -DFORCE_DOUBLE -DPREC_DOUBLE -DFORCE_COMPLEX -DTYPE_COMPLEX -c matrix_drivers/src/mmio.c -o matrix_drivers/obj/i686_mac/mmio.o
mpicc -Wall -O2 -DFORCE_INT64 -DINTSSIZE64 -DNUMA_ALLOC -DMEMORY_USAGE -DSTATS_SOPALIN -DMETIS -I/Users/oswald/extlib/metis/4.0.3/gcc/4.6.2/Lib -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install -DFORCE_DOUBLE -DPREC_DOUBLE -DFORCE_COMPLEX -DTYPE_COMPLEX -c matrix_drivers/src/common_drivers.c -o matrix_drivers/obj/i686_mac/common_drivers.o
mpicc -Wall -O2 -DFORCE_INT64 -DINTSSIZE64 -DNUMA_ALLOC -DMEMORY_USAGE -DSTATS_SOPALIN -DMETIS -I/Users/oswald/extlib/metis/4.0.3/gcc/4.6.2/Lib -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install -DFORCE_DOUBLE -DPREC_DOUBLE -DFORCE_COMPLEX -DTYPE_COMPLEX -c matrix_drivers/src/get_options.c -o matrix_drivers/obj/i686_mac/get_options.o
echo "matrix_drivers/obj/i686_mac/skitf.o matrix_drivers/obj/i686_mac/skitf.o : matrix_drivers/src/skitf.f" > matrix_drivers/obj/i686_mac/skitf.o
gfortran -c matrix_drivers/src/skitf.f -o matrix_drivers/obj/i686_mac/skitf.o
mpicc -Wall -O2 -DFORCE_INT64 -DINTSSIZE64 -DNUMA_ALLOC -DMEMORY_USAGE -DSTATS_SOPALIN -DMETIS -I/Users/oswald/extlib/metis/4.0.3/gcc/4.6.2/Lib -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -DVERSION='"exported"' -DX_ARCHi686_mac -DDOF_CONSTANT -I/Users/oswald/extlib/pastix/5.1.4/openmpi/1.4.4/gcc/4.6.2/src/../install -DFORCE_DOUBLE -DPREC_DOUBLE -DFORCE_COMPLEX -DTYPE_COMPLEX -c matrix_drivers/src/read_matrix.c -o matrix_drivers/obj/i686_mac/read_matrix.o
In file included from matrix_drivers/src/read_matrix.c:71:0:
matrix_drivers/src/rsaread.h:138:7: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:72:0:
matrix_drivers/src/hbread.h:59:6: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:73:0:
matrix_drivers/src/mmread.h:61:9: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:74:0:
matrix_drivers/src/cccread.h:99:7: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:75:0:
matrix_drivers/src/olafread.h:97:8: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/olafread.h:100:8: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:76:0:
matrix_drivers/src/chbread.h:124:7: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/chbread.h:127:7: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:77:0:
matrix_drivers/src/cscdread.h:66:3: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/cscdread.h:67:3: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:78:0:
matrix_drivers/src/peerread.h:75:8: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/peerread.h:78:8: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/peerread.h:119:9: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/peerread.h:122:9: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:79:0:
matrix_drivers/src/threefilesread.h:92:7: error: unknown type name ‘pastix_float_t’
In file included from matrix_drivers/src/read_matrix.c:80:0:
matrix_drivers/src/laplacian.h:63:4: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/laplacian.h:64:4: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/read_matrix.c:110:3: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/read_matrix.c:110:33: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/read_matrix.c:334:4: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/read_matrix.c:334:34: error: unknown type name ‘pastix_float_t’
matrix_drivers/src/read_matrix.c:605:6: error: unknown type name ‘pastix_float_t’
make: *** [matrix_drivers/obj/i686_mac/read_matrix.o] Error 1

Can you help ?

Thanks, Benedikt