Fixed some code style issues.

parent b53d8bf6
......@@ -11,8 +11,7 @@ int test_stride = 1; // Items per task
int test_current_item = 0; // Position in item list
double test_list[LIST_SIZE]; // List containing all test items
int main(int argc, char **argv)
{
int main(int argc, char **argv) {
int role;
// Create list of zero values.
......
......@@ -2,14 +2,14 @@
#include "main.h"
#include "master.h"
int master_init(void) {
// Find out how many processes there are in the default communicator
int master_init(void) {
// Find out how many processes there are in the default communicator
int ntasks;
MPI_Comm_size(MPI_COMM_WORLD, &ntasks);
return ntasks;
}
void master_run(int ntasks, int items_per_task) {
void master_run(int ntasks, int items_per_task) {
int rank;
unit_work_t *work;
unit_result_t result;
......@@ -57,7 +57,7 @@
}
}
void master_destroy(int ntasks) {
void master_destroy(int ntasks) {
// Tell all slaves to exit by sending an empty message with the DIE_TAG.
for (int rank = 1; rank < ntasks; ++rank) {
MPI_Send(0, 0, MPI_DOUBLE, rank, DIE_TAG, MPI_COMM_WORLD);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment