File tree Expand file tree Collapse file tree 4 files changed +479
-0
lines changed Expand file tree Collapse file tree 4 files changed +479
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ iterations=1000
3+ timeBetweenFileCreateMin=0
4+ timeBetweenFileCreateMax=10
5+ threadMin=1
6+ threadMax=3F
7+ fileCountMin=10
8+ fileCountMax=100
9+ readMin=1
10+ readMax=1024
11+ writeMin=1
12+ writeMax=1024
13+
14+ IOTRACE_LOG_NAME=mpi_file_io_test1
15+ IOTRACE_DATABASE_IP=$1
16+ IOTRACE_DATABASE_PORT=8086
17+ IOTRACE_INFLUX_ORGANIZATION=hse
18+ IOTRACE_INFLUX_BUCKET=hsebucket
19+ IOTRACE_INFLUX_TOKEN=OXBWllU1poZotgyBlLlo2XQ_u4AYGYKQmdxvJJeotKRyvdn5mwjEhCXyOjyldpMmNt_9YY4k3CK-f5Eh1bN0Ng==
20+ LD_PRELOAD=../../build/src/libiotrace.so
21+ TESTNAME=../../build/test/mpi_file_io_random_openmp
22+ TESTARGUMENTS=" -v -i$iterations -c$timeBetweenFileCreateMin -C$timeBetweenFileCreateMax -t$threadMin -T$threadMax -f$fileCountMin -F$fileCountMax -r$readMin -R$readMax -w$writeMin -W$writeMax "
23+ TMP_FILES=" mpi_file_random_*"
24+
25+
26+ processes=$(( ${6} * ${7} ))
27+ echo " process count: ${processes} "
28+
29+ mpirun -N ${7} -H ${5} -np $processes -x IOTRACE_LOG_NAME=$IOTRACE_LOG_NAME -x IOTRACE_DATABASE_IP=$IOTRACE_DATABASE_IP -x IOTRACE_DATABASE_PORT=$IOTRACE_DATABASE_PORT -x IOTRACE_INFLUX_ORGANIZATION=$IOTRACE_INFLUX_ORGANIZATION -x IOTRACE_INFLUX_BUCKET=$IOTRACE_INFLUX_BUCKET -x IOTRACE_INFLUX_TOKEN=$IOTRACE_INFLUX_TOKEN -x LD_PRELOAD=$LD_PRELOAD $PWD /$TESTNAME $TESTARGUMENTS
30+
31+ rm -f $TMP_FILES
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ test_mem="90000mb"
2222test_time=" 00:10:00"
2323test_name=" 3_nodes_mpi_file_io"
2424
25+ # test_script="./mpi_file_io_random.sh"
26+ # test_nodes=3
27+ # test_processes_per_worker=2
28+ # test_mem="90000mb"
29+ # test_time="00:20:00"
30+ # test_name="3_nodes_mpi_file_io_random"
31+
2532mkdir -p $test_dir
2633
2734module purge
Original file line number Diff line number Diff line change @@ -561,6 +561,31 @@ if (WITH_UNIT_TESTS)
561561
562562 ##########################################################################################################
563563
564+ if (WITH_MPI_IO)
565+ # whitelist should look like (without initial "# " per line):
566+ # MPI_File_open
567+ # MPI_File_seek
568+ # MPI_File_write
569+ # MPI_File_close
570+
571+ # test with: rm mpi_file_io.txt && mpirun -np 4 -x IOTRACE_LOG_NAME=mpi_file_io_test1 -x IOTRACE_DATABASE_IP=127.0.0.1 -x IOTRACE_DATABASE_PORT=8086 -x IOTRACE_INFLUX_ORGANIZATION=hse -x IOTRACE_INFLUX_BUCKET=hsebucket -x IOTRACE_INFLUX_TOKEN=OXBWllU1poZotgyBlLlo2XQ_u4AYGYKQmdxvJJeotKRyvdn5mwjEhCXyOjyldpMmNt_9YY4k3CK-f5Eh1bN0Ng== -x IOTRACE_WHITELIST=./whitelist -x LD_PRELOAD=../src/libiotrace.so mpi_file_io_random 10
572+ # test with: rm mpi_file_io.txt && mpirun -np 4 -x IOTRACE_LOG_NAME=mpi_file_io_test1 -x LD_PRELOAD=../src/libiotrace.so mpi_file_io_random 10
573+ add_executable (mpi_file_io_random mpi_file_io_random.c)
574+ target_link_libraries (mpi_file_io_random PRIVATE ${TESTS_LINK_OPTIONS} )
575+
576+ find_package (OpenMP)
577+
578+ # test with: rm mpi_file_io.txt && mpirun -np 4 -x OMP_NUM_THREADS=2 -x IOTRACE_LOG_NAME=mpi_file_io_test1 -x IOTRACE_DATABASE_IP=127.0.0.1 -x IOTRACE_DATABASE_PORT=8086 -x IOTRACE_INFLUX_ORGANIZATION=hse -x IOTRACE_INFLUX_BUCKET=hsebucket -x IOTRACE_INFLUX_TOKEN=OXBWllU1poZotgyBlLlo2XQ_u4AYGYKQmdxvJJeotKRyvdn5mwjEhCXyOjyldpMmNt_9YY4k3CK-f5Eh1bN0Ng== -x IOTRACE_WHITELIST=./whitelist -x LD_PRELOAD=../src/libiotrace.so mpi_file_io_2 10
579+ add_executable (mpi_file_io_random_openmp mpi_file_io_random.c)
580+ target_compile_options (mpi_file_io_random_openmp PRIVATE "-DWANT_OPENMP" )
581+ target_link_libraries (mpi_file_io_random_openmp PRIVATE ${TESTS_LINK_OPTIONS} )
582+ if (OpenMP_C_FOUND)
583+ target_link_libraries (mpi_file_io_random_openmp PUBLIC OpenMP::OpenMP_C)
584+ endif ()
585+ endif ()
586+
587+ ##########################################################################################################
588+
564589 if (WITH_POSIX_IO)
565590 # test with: IOTRACE_LOG_NAME=clone_test1 LD_PRELOAD=../src/libiotrace.so ./clone_shared
566591 add_executable (clone_shared clone.c)
You can’t perform that action at this time.
0 commit comments