Commit 919fe4a9 authored by Shane Snyder's avatar Shane Snyder

cleanup darshan-test directory

moved most test programs and previous darshan output
to the 2.x directory
parent 18fa80f1
Notes from Florin Isaila re: adding new counters as of 2014/03/06
---------------
1. Added the counters in darshan-log-format.h
2. Added the names of the counters in darshan-util/darshan-logutils.c
3. Added the new profiled function declarations (e.g., PMPI_Sent) in
darshan-runtime/darshan-dynamic.h
- DARSHAN_EXTERN_DECL(...)
4. Added the new profiled function declarations (e.g., PMPI_Sent) in
darshan-runtime/lib/darshan-mpi-init-finalize.c
- DARSHAN_FORWARD_DECL(...)
- MAP_OR_FAIL(...)
5. Updated the reducer in darshan-runtime/lib/darshan-mpi-io.c in the
function:
static void darshan_file_reduce(void* infile_v,
void* inoutfile_v, int *len,
MPI_Datatype *datatype);
#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <mpi.h>
int main(int argc, char **argv)
{
int rank;
char user_string[L_cuserid];
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
cuserid(user_string);
printf("rank %d: user: %s\n", rank, user_string);
MPI_Finalize();
return(0);
}
This diff is collapsed.
#!/bin/bash
#
# (C) 2010 by Argonne National Laboratory.
# See COPYRIGHT in top-level directory.
#
# usage: fsstats-runner.bash <hostname> <path>
# make this configurable or something...
FSSTATS_PATH=/home/harms/darshan/trunk/test
if [ "${#}" != 4 ]
then
echo "Error: bad arguments"
exit 1
fi
HOST=${1}
FS_PATH=${2}
CHKPNT=${3}
RESTART=${4}
# the output file name will be the path that was scanned, but with equals
# signs in place of the slashes
OUT_FILE=`echo $FS_PATH | sed -e 's/\//=/g'`
OUT_FILE="${OUT_FILE}.csv"
# launch remote command
if [ $RESTART -eq 1 ];
then
ssh -oBatchMode=yes -n $HOST "${FSSTATS_PATH}/fsstats -r $CHKPNT -c $CHKPNT -o /tmp/pfsstats-$$.csv $FS_PATH >& /dev/null"
else
ssh -oBatchMode=yes -n $HOST "${FSSTATS_PATH}/fsstats -c $CHKPNT -o /tmp/pfsstats-$$.csv $FS_PATH >& /dev/null"
fi
if [ "${?}" != 0 ]
then
exit 1
fi
# retrieve output file
scp -oBatchMode=yes $HOST:/tmp/pfsstats-$$.csv $OUT_FILE >& /dev/null
if [ "${?}" != 0 ]
then
exit 1
fi
# delete file on remote host
ssh -oBatchMode=yes -n $HOST "rm -f /tmp/pfsstats-$$.csv >& /dev/null"
if [ "${?}" != 0 ]
then
exit 1
fi
exit 0
This diff is collapsed.
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