Skip to content
Snippets Groups Projects
Commit 3957b4d6 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Formatting

parent 28e48586
No related branches found
No related tags found
1 merge request!6Version with faked data
#include <mpi.h>
#include "clocks.h"
extern int myrank;
......
#!/bin/bash
# Clang format command, can be overridden using CLANG_FORMAT_CMD.
# We currrently use version 5.0 so any overrides should provide that.
clang=${CLANG_FORMAT_CMD:="clang-format-5.0"}
# We currrently use version 13.0 so any overrides should provide that.
clang=${CLANG_FORMAT_CMD:="clang-format-13.0"}
# Formatting command
cmd="$clang -style=file $(git ls-files | grep '\.[ch]$')"
......
#include "histogram.h"
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "histogram.h"
/*
* Simple histogram routines.
int main(int argc, char *argv[]) {
......
......@@ -400,10 +400,10 @@ void mpiuse_log_generate(int nr_nodes, int nr_logs, int size, int random,
for (int i = 0; i < nr_nodes; i++) {
for (int j = 0; j < nr_nodes; j++) {
if (i != j) {
mpiuse_log_allocation(i, 1, k, SEND_TYPE, NO_SUBTYPE, 1, (size_t)logsize, j,
tag);
mpiuse_log_allocation(j, 1, k, RECV_TYPE, NO_SUBTYPE, 1, (size_t)logsize, i,
tag);
mpiuse_log_allocation(i, 1, k, SEND_TYPE, NO_SUBTYPE, 1,
(size_t)logsize, j, tag);
mpiuse_log_allocation(j, 1, k, RECV_TYPE, NO_SUBTYPE, 1,
(size_t)logsize, i, tag);
}
}
}
......
......@@ -305,7 +305,7 @@ static int cmp_logs(const void *p1, const void *p2) {
* otherwise the order is randomized.
*
* @param random randomize injection order of sends or sends and recvs,
* otherwise use order of the original logs. Just sends
* otherwise use order of the original logs. Just sends
* are randomized when 1, 2 randomizes both, 0 neither.
*/
static void pick_logs(int random) {
......@@ -523,7 +523,7 @@ int main(int argc, char *argv[]) {
if (randomorder == 1) message("Message send order randomized");
if (randomorder == 2) message("Message send and recv order randomized");
}
pick_logs(randomorder);
/* Time to start time. Try to make it synchronous across the ranks. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment