Message: Multi-threading mode problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Multi-threading mode problem 

Forum: Multithreading
Date: 18 May, 2015
From: Alex Kav <Alex Kav>

Dear Geant4 experts!

I tried to run my code in multi-threading (MT) mode (geant4.10.01.p01). Accordingly of tips http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/README_HowToRunMT.html

I moved in main()

#ifdef G4MULTITHREADED
  G4MTRunManager* runManager = new G4MTRunManager;
#else
  G4RunManager* runManager = new G4RunManager;
#endif

Compilation was OK. But when I run my code I have

*************************************************************
 Geant4 version Name: geant4-10-01-patch-01 [MT]   (27-March-2015)
  << in Multi-threaded mode >> 
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************

### Number of threads is forced to 2 by Environment variable G4FORCENUMBEROFTHREADS.

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : Run3011
      issued by : G4MTRunManager::SetUserAction()
For multi-threaded version, define G4VUserPrimaryGeneratorAction in G4VUserActionInitialization.
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

*** G4Exception: Aborting execution *** Aborted (core dumped)

I tried to do the same with B1, N01, TestEm1 ... examples from geant4.9.6 and have the same result.

Could you say me what need I do to fix this problem?

Thanks in advance

AlexKav

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

1 Warning: Re: Multi-threading mode problem   (Andrea Dotti - 18 May, 2015)
2 None: Re: Multi-threading mode problem   (Makoto Asai - 18 May, 2015)
3 None: Re: Multi-threading mode problem   (Emanuele - 20 Jun, 2017)
1 None: Re: Multi-threading mode problem   (Andrea Dotti - 20 Jun, 2017)
(_ None: Re: Multi-threading mode problem   (Emanuele - 20 Jun, 2017)
(_ None: Re: Multi-threading mode problem   (Andrea Dotti - 23 Jun, 2017)
4 More: Re: Multi-threading mode problem   (Sambid Wasti - 23 Aug, 2017)
 Add Message Add Message
to: "Multi-threading mode problem"

 Subscribe Subscribe

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