Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nstamato on May 24, 2009, 04:28:32 am

Title: Running a custom command
Post by: nstamato 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
Title: Re: Running a custom command
Post by: stahta01 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