1

How can I set number of processes in qtcreator in a c++ MPI program?

I add -n 4 into run arguments but the program was not run on 4 processes!!

Should I change CMakeLists?

Andrea
  • 11,801
  • 17
  • 65
  • 72
Ali Mirzaei
  • 1,496
  • 2
  • 16
  • 27

1 Answers1

2

In qtcreator menu :

projects -> build & run -> run -> add custom executable:

Executable : mpiexec

Arguments : -n 4 main

Note: 4 is number of processes and main is your target name.

Ali Mirzaei
  • 1,496
  • 2
  • 16
  • 27
  • is there a variable I can use within qt creator for the target name, like %{targetName}? – Slava Aug 25 '16 at 15:55