Message: Re: Multithreaded App hangs in just one thread Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Multithreaded App hangs in just one thread 

Forum: Multithreading
Re: None Multithreaded App hangs in just one thread (Youming Yang)
Re: Question Re: Multithreaded App hangs in just one thread (Andrea Dotti)
Date: 23 May, 2016
From: Youming Yang <Youming Yang>

Hello Dr. Dotti,

Thank you for your reply.

I am running Geant4 v10.01_p02. The application is for Medical Physics research, and consists of a parameterised photon source (custom derived class similar to G4GPS) being transported through a voxelized geometry.

The multithreading is set in the main portion as:

> #ifdef G4MULTITHREADED
>        G4cout << "Running multithreaded.\n";
>        G4MTRunManager *runManager=new G4MTRunManager;
>        G4int number_of_cores = G4Threading::G4GetNumberOfCores();
>        G4cout << "Number of cores/threads begin used: "
>            << number_of_cores << " of "
>            << G4Threading::G4GetNumberOfCores()
>            << std::endl;
>		runManager->SetNumberOfThreads(G4int(number_of_cores/2));
>#endif

to utilize half the available cores.

The voxelization is implemented via nested parameterisation. The relevant EM physics is just EM standard option 3

Please let me know if there are any additional details I can provide.

Thank you, Ming

On Mon, 23 May 2016 18:14:36 GMT, Andrea Dotti wrote:

> Hello, this is a possible indication of an issue in the application,
> like an infinite loop. But there is not enough information to give you a
> possible solution: which version of G4 are you using? What type of
> application are you running? How do you distribute work on the cluster?
> 
> Andrea
> 

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

1 Feedback: Re: Multithreaded App hangs in just one thread   (Andrea Dotti - 24 May, 2016)
(_ None: Re: Multithreaded App hangs in just one thread   (Youming Yang - 25 May, 2016)
 Add Message Add Message
to: "Re: Multithreaded App hangs in just one thread"

 Subscribe Subscribe

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