Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No DUMPI binary files generated #18

Open
gavahi opened this issue Feb 6, 2019 · 7 comments
Open

No DUMPI binary files generated #18

gavahi opened this issue Feb 6, 2019 · 7 comments

Comments

@gavahi
Copy link

gavahi commented Feb 6, 2019

Hi,
When I use DUMPI for collecting trace in NAS Benchmarks, no DUMPI binary files generated. i.e. at IS benchmark, I modified the makefile by adding dumpi to CMPI_LIB :

code

It can compile and execute the libdumpi_enable_profiling() call in the is.c without any error, but no DUMPI binary files generated.

@jjwilke
Copy link
Contributor

jjwilke commented Feb 6, 2019

What platform are you running on? And which compilers are you using?

@gavahi
Copy link
Author

gavahi commented Feb 6, 2019

CentOS Linux release 7.2.1511
mpicc at mpich.3.2.1

@gavahi
Copy link
Author

gavahi commented Feb 6, 2019

The DUMPI binary files are generated when running this simple code:

#include <mpi.h>
int main(int argc, char** argv)
{
MPI_Init(&argc, &argv);
MPI_Finalize();
return 0;
}

I compile this code in this way:
mpicc -o test test.c -L/<DUMPI_PATH>/lib -ldumpi

@jjwilke
Copy link
Contributor

jjwilke commented Feb 6, 2019

Are you definitely compiling the MPI version of the IS test? Traces will not get generated unless there is an MPI_Init and MPI_Finalize call in the code.

Can you also send me the output of a make V=1?

@gavahi
Copy link
Author

gavahi commented Feb 6, 2019

Both MPI_Init and MPI_Finalize are called in IS. I attached the is.c to this message.
is.txt

This is the output of a make V=1

make V=1 NPROCS=4 CLASS=C
make[1]: Entering directory /home/gavahi/NPB3.3.1-no-wrapper/NPB3.3-MPI/sys
make[1]: Nothing to be done for all.
make[1]: Leaving directory `/home/gavahi/NPB3.3.1-no-wrapper/NPB3.3-MPI/sys'
../sys/setparams is 4 C
/home/gavahi/normal-mpi/ethernet/install-mpich/bin/mpicc -c -I/home/gavahi/normal-mpi/ethernet/install-mpich/include -O -L/home/gavahi/normal-mpi/ethernet/install-mpich/lib -lmpi -L/home/gavahi/sst-dumpi-master/install-dumpi/lib -ldumpi is.c
is.c: In function ‘main’:
is.c:1130:13: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
strcpy( t_recs[T_TOTAL], "total" );
^
/home/gavahi/normal-mpi/ethernet/install-mpich/bin/mpicc -O -o ../bin/is.C.4 is.o ../common/c_print_results.o ../common/c_timers.o -L/home/gavahi/normal-mpi/ethernet/install-mpich/lib -lmpi -L/home/gavahi/sst-dumpi-master/install-dumpi/lib -ldumpi

@gavahi
Copy link
Author

gavahi commented Feb 11, 2019

I changed the position of calling Dumpi at Makfile and it worked.
This is the output of a make V=1. I highlighted the important part at the last line.

make v=1 NPROCS=4 CLASS=C
make[1]: Entering directory /home/gavahi/NPB3.3.1-no-wrapper/NPB3.3-MPI/sys cc -g -o setparams setparams.c make[1]: Leaving directory /home/gavahi/NPB3.3.1-no-wrapper/NPB3.3-MPI/sys
../sys/setparams is 4 C
make.def modified. Rebuilding npbparams.h just in case
rm -f npbparams.h
../sys/setparams is 4 C
/home/gavahi/normal-mpi/ethernet/install-mpich/bin/mpicc -c -I/home/gavahi/normal-mpi/ethernet/install-mpich/include -O -L/home/gavahi/normal-mpi/ethernet/install-mpich/lib -lmpi is.c
is.c: In function ‘main’:
is.c:1131:13: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
strcpy( t_recs[T_TOTAL], "total" );
^
/home/gavahi/normal-mpi/ethernet/install-mpich/bin/mpicc -O -L/home/gavahi/sst-dumpi-master/install-dumpi/lib -ldumpi -o ../bin/is.C.4 is.o ../common/c_print_results.o ../common/c_timers.o -L/home/gavahi/normal-mpi/ethernet/install-mpich/lib -lmpi

@Daniel-NJ
Copy link

@gavahi thank for your solution, works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants