User forums > Using Code::Blocks

Running a custom command

(1/1)

nstamato:
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

stahta01:
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

Navigation

[0] Message Index

Go to full version