Message: G4Exception: Run0107 G4RunMananger Geant4 code is compiled without multi-threading Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4Exception: Run0107 G4RunMananger Geant4 code is compiled without multi-threading 

Forum: Multithreading
Date: Dec 28, 16:53
From: Bruce Pierson <Bruce Pierson>

I am currently on the geant4-10.4-release branch and have successfully compiled gean4-10.4.2 using the following cmake command in my g4-build directory on Mac OSX 10.13.6 using Xcode 10.1:

cmake -DGEANT4_USE_GDML=ON -DCMAKE_INSTALL_PREFIX=../g4-install/. -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATA_TIMEOUT=86400 -DGEANT4_BUILD_MULTITHREADED=ON ../g4-git/.;

I am trying to run example basic/B1 with multi-threading enabled but cannot enable parallel processing. I was able to force example B1 to compile with multi-threading enabled by adding #define G4MULTITHREADING directly to the exampleB1.cc file; however, on running this binary using run1.mac as input, I receive the following error:

-------- EEEE ------- G4Exception-START -------- EEEE -------

*** ExceptionHandler is not defined ***
*** G4Exception : Run0107
      issued by : G4RunManager::G4RunManager(G4bool)
Geant4 code is compiled without multi-threading support (-DG4MULTITHREADED is set to off). This type of RunManager can only be used in mult-threaded applications.
*** Fatal Exception ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution *** Abort trap: 6

I have not had this issue until now and was running on version 10.3.3 before the upgrade. Could someone assist me in determining why the compilation insists the multi-threading feature is disable when it clear is enabled? I checked this using the make VERBOSE=1 command from the g4-build directory and received this response:

-- The following Geant4 features are enabled: GEANT4_BUILD_CXXSTD: Compiling against C++ Standard '11' GEANT4_BUILD_MULTITHREADED: Build multithread enabled libraries GEANT4_BUILD_TLS_MODEL: Building with TLS model 'initial-exec' GEANT4_USE_SYSTEM_EXPAT: Using system EXPAT library GEANT4_USE_GDML: Building Geant4 with GDML support GEANT4_USE_QT: Build Geant4 with Qt support GEANT4_USE_RAYTRACER_X11: Build RayTracer driver with X11 support GEANT4_USE_OPENGL_X11: Build Geant4 OpenGL driver with X11 support

-- Configuring done -- Generating done

The libraries are present

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

1 None: Re: G4Exception: Run0107 G4RunMananger Geant4 code is compiled without multi-threading   (Makoto Asai - Jan 07, 10:56)
 Add Message Add Message
to: "G4Exception: Run0107 G4RunMananger Geant4 code is compiled without multi-threading"

 Subscribe Subscribe

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