Coder Social home page Coder Social logo

Comments (7)

Daniel-NJ avatar Daniel-NJ commented on August 28, 2024 1

@gavahi thank for your solution, works for me

from sst-dumpi.

jjwilke avatar jjwilke commented on August 28, 2024

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

from sst-dumpi.

gavahi avatar gavahi commented on August 28, 2024

CentOS Linux release 7.2.1511
mpicc at mpich.3.2.1

from sst-dumpi.

gavahi avatar gavahi commented on August 28, 2024

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

from sst-dumpi.

jjwilke avatar jjwilke commented on August 28, 2024

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?

from sst-dumpi.

gavahi avatar gavahi commented on August 28, 2024

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

from sst-dumpi.

gavahi avatar gavahi commented on August 28, 2024

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

from sst-dumpi.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.