Author Topic: Running a custom command  (Read 3164 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org