News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CB-launched code runs slower than command-line launched code

Started by mark1977, October 09, 2012, 11:49:37 AM

Previous topic - Next topic

mark1977

Hi,

I am using CB svn rev 7953 on Ubuntu 32bit Linux. When I compile my code through CB it creates the executable. If I launch that executable through CB (in xterm or gnome-terminal) then it runs slower (about 383ms per timestep) than if I go to the command line and execute it directly in the shell (about 225ms per timestep).

Anybody know why this would happen?

Thanks

Mark

p.s. This is c++ code with intel compiler.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

mark1977


oBFusCATed

How many cores do you have on the machine?
Is you application using all the cores?
If yes, then your app and C::B battle for CPU usage, as C::B is using some CPU to wait for the console.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

mark1977

Quote from: oBFusCATed on October 09, 2012, 01:00:20 PM
How many cores do you have on the machine?
Is you application using all the cores?
If yes, then your app and C::B battle for CPU usage, as C::B is using some CPU to wait for the console.

I have 4 cores, one thread per core. I run on only one core.