Compiling Serpent 2.1.31: error

Compiler issues (Intel compiler, mpicc, etc.), data libraries and everything needed to get Serpent running is discussed here
Post Reply
mascovale
Posts: 16
Joined: Sat Nov 18, 2017 12:45 am
Security question 1: No
Security question 2: 72
Location: Virginia Tech Transport Theory Group (VT3G), Virginia Tech, Falls Church, VA

Compiling Serpent 2.1.31: error

Post by mascovale » Sat May 25, 2019 1:07 am

Dear all,

I am having an issue compiling the most recent release of Serpent (2.1.31). I get the following error:

Code: Select all

gcc -O3 -ffast-math -Wall -ansi -Wunused -DOPEN_MP -fopenmp -pedantic -c collectfet.c
collectfet.c: In function ‘CollectFET’:
collectfet.c:60: error: expected ‘#pragma omp’ clause before ‘collapse
I was wondering whether you have encountered this before or if this is an issue with my compiler. Thanks in advance for the feedback.
Valerio Mascolino
PhD Candidate
Virginia Tech

Ville Valtavirta
Posts: 417
Joined: Fri Sep 07, 2012 1:43 pm
Security question 1: No
Security question 2: 92

Re: Compiling Serpent 2.1.31: error

Post by Ville Valtavirta » Mon May 27, 2019 8:30 am

Hi,

at least gcc 7.4.0 compiles it with no trouble.

-Ville

Riku Tuominen
Posts: 36
Joined: Tue Feb 27, 2018 10:52 am
Security question 1: No
Security question 2: 93

Re: Compiling Serpent 2.1.31: error

Post by Riku Tuominen » Mon May 27, 2019 9:48 am

Check this question at Stack Overflow https://stackoverflow.com/questions/588 ... ma-omp-for

mascovale
Posts: 16
Joined: Sat Nov 18, 2017 12:45 am
Security question 1: No
Security question 2: 72
Location: Virginia Tech Transport Theory Group (VT3G), Virginia Tech, Falls Church, VA

Re: Compiling Serpent 2.1.31: error

Post by mascovale » Mon May 27, 2019 11:08 pm

Hi Riku and Ville,

thanks for your help. As I feared, the compiler on our cluster is too old.

Thanks
Valerio
Valerio Mascolino
PhD Candidate
Virginia Tech

Post Reply