Message: Re: Compile Geant4 with intel compiler on Ubuntu Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Compile Geant4 with intel compiler on Ubuntu 

Forum: Multithreading
Re: Note Compile Geant4 with intel compiler on Ubuntu (Don Vernekohl)
Re: Idea Re: Compile Geant4 with intel compiler on Ubuntu (Andrea Dotti)
Date: 19 Aug, 2016
From: Don Vernekohl <Don Vernekohl>

I have also tried Ubuntu 16.04 with gcc 5.4. The icc compatibility is given for both systems following (icc -x c++ -E -v)

With gcc 5.4 I don't need the aforementioned workaround. However, g4 only compiles without -DGEANT4_BUILD_MULTITHREADED=ON.

With Multithread flag, I get the following error message:
"
/home/don/Programme/Geant4/src/source/particles/management/src/G4ParticleDefinition.cc(68): error: thread-local declaration follows non-thread-local declaration (declared at line 147 of "/home/don/Programme/Geant4/src/source/particles/management/include/G4PDefSplitter.hh")
  G4int G4PDefSplitter<G4PDefData>::slavetotalspace = 0;
                                    ^

/home/don/Programme/Geant4/src/source/particles/management/src/G4ParticleDefinition.cc(67): error: thread-local storage class is not valid here
  template <class G4PDefData> G4ThreadLocal
                              ^

/home/don/Programme/Geant4/src/source/particles/management/src/G4ParticleDefinition.cc(74): error: thread-local declaration follows non-thread-local declaration (declared at line 148 of "/home/don/Programme/Geant4/src/source/particles/management/include/G4PDefSplitter.hh")
  G4PDefData* G4PDefSplitter<G4PDefData>::offset = 0;
                                          ^

/home/don/Programme/Geant4/src/source/particles/management/src/G4ParticleDefinition.cc(73): error: thread-local storage class is not valid here
  template <class G4PDefData> G4ThreadLocal
                              ^

compilation aborted for /home/don/Programme/Geant4/src/source/particles/management/src/G4ParticleDefinition.cc (code 2) source/particles/CMakeFiles/G4particles-static.dir/build.make:3422: recipe for target 'source/particles/CMakeFiles/G4particles-static.dir/management/src/G4ParticleDefinition.cc.o' failed make[2]: *** [source/particles/CMakeFiles/G4particles-static.dir/management/src/G4ParticleDefinition.cc.o] Error 2 CMakeFiles/Makefile2:1726: recipe for target 'source/particles/CMakeFiles/G4particles-static.dir/all' failed make[1]: *** [source/particles/CMakeFiles/G4particles-static.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 "

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: Compile Geant4 with intel compiler on Ubuntu   (Don Vernekohl - 30 Aug, 2016)
(_ Feedback: Re: Compile Geant4 with intel compiler on Ubuntu   (Andrea Dotti - 02 Sep, 2016)
(_ Question: Re: Compile Geant4 with intel compiler on Ubuntu   (EugenyZhevak - 12 Sep, 2016)
(_ Ok: Re: Compile Geant4 with intel compiler on Ubuntu   (EugenyZhevak - 12 Sep, 2016)
 Add Message Add Message
to: "Re: Compile Geant4 with intel compiler on Ubuntu"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews