LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2013, 11:59 PM   #1
summit
Member
 
Registered: Nov 2010
Posts: 57

Rep: Reputation: 0
Question 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
 
Old 10-01-2013, 01:13 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,845
Blog Entries: 36

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using multicores vardhan22 Linux - General 5 04-23-2012 02:39 PM
Kernel, MySql, common apps and multicores Frakk Linux - Software 2 03-01-2011 07:10 AM
Measuring performance on MultiCores duryodhan Programming 6 04-30-2008 08:01 AM


All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration