Hello again
In previous emails I detailed the problems I was having downloading the Einstein Toolkit, first on the Dora supercomputer and then on a local computer. Following further efforts to solve my MPI issue on the Dora supercomputer I have come up against a new problem.
This is the method I used to reach this point: I downloaded Cactus using the method described in https://docs.einsteintoolkit.org/et-docs/Simplified_Tutorial_for_New_Users I created my own configuration file based on the debian.cfg file which I have attached. This file specifies the path for the MPI directory (and this solves the MPI issue) I configured Simfactory using the following command: ./simfactory/bin/sim setup --optionlist=dora.cfg --runscript debian.sh I built the Einstein Toolkit with the following command: ./simfactory/bin/sim build --mdbkey make 'make -j2' --thornlist=manifest/einsteintoolkit.th
This is the error I got. It seems to be some kind of syntax error: /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c: In function ‘TestLoopPointwise_All’: /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c:31: error: expected ‘#pragma omp’ clause before ‘collapse’ Creating /users/lsoswald/old/Cactus/configs/sim/lib/libthorn_TestLocalInterp2.a /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c: In function ‘TestLoopPointwise_Int’: /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c:90: error: expected ‘#pragma omp’ clause before ‘collapse’ /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c: In function ‘TestLoopPointwise_Bnd’: /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c:158: error: expected ‘#pragma omp’ clause before ‘collapse’ /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c: In function ‘TestLoopPointwise_IntBnd’: /users/lsoswald/old/Cactus/arrangements/CactusTest/TestLoop/src/TestLoopPointwise.c:231: error: expected ‘#pragma omp’ clause before ‘collapse’ make[3]: *** [TestLoopPointwise.c.o] Error 1 make[2]: *** [make.checked] Error 2 make[1]: *** [/users/lsoswald/old/Cactus/configs/sim/lib/libthorn_TestLoop.a] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [sim] Error 2
Could you advise me on what the issue with this might be and how I may solve it?
Many thanks,
Lucy
On Fri, Sep 09, 2016 at 04:58:43PM +0200, L.S. Oswald wrote:
error: expected ‘#pragma omp’ clause before ‘collapse’
Which version of gcc (c compiler) do you use? Your option list mentions only 'gcc'. Gcc older than 4.4 doens't support openMP 3.0, of which collapse is part of.
Since you seem to use gfortran-4.6, chances are, gcc-4.6 is installed too.
Frank
I haven't been able to work out which gcc version I use, but I think you're correct that it's an old version.
Could you advise me on how to direct the code to compile with the correct version of gcc? I attempted to do so by changing the CC flag in my configuration file but that didn't seem to do anything: the program compiled with gcc even when I changed the CC flag to a random word.
Many thanks,
Lucy
On 2016-09-11 3:48 pm, Frank Loeffler wrote:
On Fri, Sep 09, 2016 at 04:58:43PM +0200, L.S. Oswald wrote:
error: expected ‘#pragma omp’ clause before ‘collapse’
Which version of gcc (c compiler) do you use? Your option list mentions only 'gcc'. Gcc older than 4.4 doens't support openMP 3.0, of which collapse is part of.
Since you seem to use gfortran-4.6, chances are, gcc-4.6 is installed too.
Frank
On Tue, Sep 13, 2016 at 05:00:06PM +0200, L.S. Oswald wrote:
I haven't been able to work out which gcc version I use, but I think you're correct that it's an old version.
gcc --version
should tell you the version
Could you advise me on how to direct the code to compile with the correct version of gcc? I attempted to do so by changing the CC flag in my configuration file but that didn't seem to do anything: the program compiled with gcc even when I changed the CC flag to a random word.
That's what you usually put into the config file.
That is, where you quoted:
# Whenever this version string changes, the application is configured # and rebuilt from scratch VERSION = 2012-04-11
CPP = cpp FPP = cpp CC = gcc CXX = g++ #F77 = gfortran #F90 = gfortran F77 = gfortran-4.6 F90 = gfortran-4.6
If you change something there, and especially if you just start out, it is safest to delete configs/YOURSPECIFIEDNAME before a retry. (Where YOURSPECIFIEDNAME is 'sim' be default if you used simfactory).
Frank
Ah ok, thanks for that. Following your advice definitely got me a step further with compiling.
Lucy
On 2016-09-13 6:26 pm, Frank Loeffler wrote:
On Tue, Sep 13, 2016 at 05:00:06PM +0200, L.S. Oswald wrote:
I haven't been able to work out which gcc version I use, but I think you're correct that it's an old version.
gcc --version
should tell you the version
Could you advise me on how to direct the code to compile with the correct version of gcc? I attempted to do so by changing the CC flag in my configuration file but that didn't seem to do anything: the program compiled with gcc even when I changed the CC flag to a random word.
That's what you usually put into the config file.
That is, where you quoted:
# Whenever this version string changes, the application is configured
# and rebuilt from scratch
VERSION = 2012-04-11
CPP = cpp
FPP = cpp
CC = gcc
CXX = g++
#F77 = gfortran
#F90 = gfortran
F77 = gfortran-4.6
F90 = gfortran-4.6
If you change something there, and especially if you just start out, it is safest to delete configs/YOURSPECIFIEDNAME before a retry. (Where YOURSPECIFIEDNAME is 'sim' be default if you used simfactory).
Frank
users@lists.einsteintoolkit.org