[Darshan-users] This darshan log has no file records. No summary was produced.
Jérémy Fouriaux
Jeremy.Fouriaux at inait.ai
Mon Oct 29 10:11:31 CDT 2018
Hello everyone,
I enjoyed a lot working with installed darshan on HPC systems and I tried to install it on my Linux Ubuntu machine to profile posix related IOs.
Installation went fine using darshan 3.1.6
```
./configure CC=mpicc --prefix /home/jeremy/Devel/Darshan_try/ --with-mem-align=8 --with-log-path-by-env=DARSHAN_LOG_DIR --with-jobid-env=NONE
make && make install
```
Then I have intended to use darshan dynamic load mode with a sample program that write a file with 4k bytes:
```
include <fstream>
#include <cstdlib>
#include <mpi.h>
int main (int argc, char** argv) {
MPI_Init (0, nullptr);
std::ofstream output (argv[1], std::ofstream::binary);
size_t size = atoi(argv[2]);
char* buffer = new char[size];
output.write (buffer, size);
output.close();
delete [] buffer;
MPI_Finalize();
return 0;
}
```
compiled with mpic++, backend compiler g++, mpi library: openmpi
```
mpic++ --std=c++14 my_program.cpp -o my_program
```
launched in a test.sh file:
```
#!/usr/bin/env sh
current_path=`pwd`
#export DARSHAN_LOGFILE=${current_path}/logs/darshan.log
export PATH=${PATH}:/home/jeremy/Devel/Darshan_try/bin
export DARSHAN_LOG_DIR=${current_path}/logs
rm -rf ${current_path}/logs
mkdir ${current_path}/logs
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jeremy/Devel/Performances/Darshan/example/
export LD_PRELOAD=/home/jeremy/Devel/Darshan_try/lib/libdarshan.so
# writing 4k bytes in a file
mpirun -n 1 ./mpi_write_file test.txt 4000
darshan-job-summary.pl ${current_path}/logs/*
```
the output of darshan-job-summary is the following:
```
This darshan log has no file records. No summary was produced.
jobid: 3881
uid: 1000
starttime: Mo Okt 29 16:07:41 2018 ( 1540825661 )
runtime: 1 (seconds)
nprocs: 1
version: 3.10
```
I don't really understand why there is no records for my file write of 4000 bytes, is there something I have done incorrectly ?
I have attached the darshan output file.
Best regards,
Jeremy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20181029/224fb926/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jeremy_mpi_write_file_id3881_10-29-58061-6088037824239493078_1.darshan
Type: application/octet-stream
Size: 902 bytes
Desc: jeremy_mpi_write_file_id3881_10-29-58061-6088037824239493078_1.darshan
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20181029/224fb926/attachment.obj>
More information about the Darshan-users
mailing list