LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using multicores for programming (https://www.linuxquestions.org/questions/linux-newbie-8/using-multicores-for-programming-4175479148/)

summit 09-30-2013 10:59 PM

Using multicores for programming
 
Hi Friends,

I have intel core i5 processor. I am using Geant4 (geant4.cern.ch) on Ubuntu 12.04. When I run the process, only one core is used for that.

So, I would like to know how can I use all the cores for same process to save the time?
Is there need to do some setting in OS?

Thanks!!!
Summit

sag47 10-01-2013 12:13 AM

Multithreaded programming is not for the feint of heart. That being said you're using a program which does not support multiple cores. Simulation scripting is very different from a compiled language (e.g. C) where a programmer can use libraries (pthreads, openmp, openmpi, etc) to multi-thread and manage the threads. Since threaded programming is outside of the scope of your question I'll skip that as it doesn't apply here.

Looking at the Geant 4 website you provided I gather the program is currently single threaded. However, their planned features for 2013 state multi-threading (i.e. using multiple cores) is a goal. You'll have to contact the original developers to find out more information about it as I've just gleaned this from their website after a quick viewing.


All times are GMT -5. The time now is 04:36 PM.