Reputation: 1552
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
?
Upvotes: 1
Views: 950
Reputation: 1552
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.
Upvotes: 2