Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Running a custom command
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Running a custom command (Read 3790 times)
nstamato
Guest
Running a custom command
«
on:
May 24, 2009, 04:28:32 am »
Hello,
Is there a way to have Code::Blocks run a custom command when the run button is pressed? I am trying to use MPI to run in parallel so I would need to run something like 'mpirun -np 8 myExecutable'. Is there a way to do this?
thanks
Logged
stahta01
Lives here!
Posts: 7785
Re: Running a custom command
«
Reply #1 on:
May 24, 2009, 07:25:33 am »
Record old values before changing.
Try changing the value under "project" -> "Set program Arguments"
This is an big guess on my part, but I think putting "mpirun -np 8" ,without quotes, into Host Application might be the answer.
Tim S
Logged
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ.
http://wiki.codeblocks.org
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Running a custom command