Commit dc1a9eb9 authored by Glenn K. Lockwood's avatar Glenn K. Lockwood

add rank shuffling to non-MPI tester

parent 8aa23fa3
.PHONY: clean
BINS = darshan-tester darshan-tester-mpi
OBJS = darshan-core-stub.o darshan-lustre.o
OBJS = darshan-lustre.o darshan-core-stub.o
CFLAGS = -O0 -g -I../.. -I../../darshan-runtime
### Include -I. when building non-MPI tests to include the mpi.h stub header
......
......@@ -10,6 +10,8 @@
#include <stdlib.h>
#include <fcntl.h>
#include "darshan-lustre.h"
/*
* Global variables
*/
......@@ -20,6 +22,7 @@ static struct darshan_module_funcs mod_funcs;
/*
* Import routines from Lustre module
*/
extern struct lustre_runtime *lustre_runtime;
void darshan_core_register_record(
void *name,
......@@ -90,6 +93,9 @@ int main( int argc, char **argv )
close(fd);
}
for ( i = 0; i < lustre_runtime->record_count; i++ )
(lustre_runtime->record_runtime_array[i]).record->rank = rand() % 10;
print_lustre_runtime();
darshan_core_shutdown();
......
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