Coder Social home page Coder Social logo

Profiling about rsmpi HOT 4 CLOSED

rsmpi avatar rsmpi commented on May 30, 2024
Profiling

from rsmpi.

Comments (4)

bsteinb avatar bsteinb commented on May 30, 2024

That is an interesting question. I have not yet tried it myself. By default rsmpi is dynamically linked to the system MPI library, so I suspect that the usual mechanism of LD_PRELOADing a profiling library that intercepts the MPI performance tool interface would work.

Other forms of instrumentation that require certain compiler features or do source transformations are not likely to work.

As for what the actual results of the profiling would look like, I honestly could not say.

I will investigate further.

from rsmpi.

bsteinb avatar bsteinb commented on May 30, 2024

I just did some experiments and was able to successfully link mpiP into some of my examples. It seemed to pick up the MPI function calls performed by Rust code.

To build the examples with mpiP, I did

cargo rustc --verbose --example vector -- -L native=/directory/containing/libmpiP.so/ -l dylib=mpiP

I guess other profilers might achieve similar amounts of success. Does this answer your question?

from rsmpi.

clamydo avatar clamydo commented on May 30, 2024

Yes, thank you. I've tried Callgrind and VampirTrace with dynamic instrumentation, which seems to work. It would be interesting, if tools would work, that do the instrumentation on a binary level.

I probably will investigate this further. For now, I'll close this issue.

from rsmpi.

bsteinb avatar bsteinb commented on May 30, 2024

Good to know, thanks for reporting this. I would be interested to hear about the results of your further investigations also.

from rsmpi.

Related Issues (20)

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.