Giter Site home page Giter Site logo

Comments (7)

alazzaro avatar alazzaro commented on July 29, 2024 2

Confirmed, problem fixed.

from cosma.

kabicm avatar kabicm commented on July 29, 2024

I am still struggling to reproduce this.

Can you please check if the following resolves the issue? (I want to see if it's related to synchronization)

export HIP_LAUNCH_BLOCKING=1 

When using gpu-aware MPI, is it necessary to call device_synchronize after MPI collective to ensure it has finished the execution and that the buffers can safely be used?

from cosma.

kabicm avatar kabicm commented on July 29, 2024

Concretely, should this line be uncommented:

// gpu::runtime_api::device_synchronize();

from cosma.

alazzaro avatar alazzaro commented on July 29, 2024

I am still struggling to reproduce this.

Can you please check if the following resolves the issue? (I want to see if it's related to synchronization)

export HIP_LAUNCH_BLOCKING=1 

Tried it and it doesn't solve the problem. I must say, this is expected (see my comment below).

When using gpu-aware MPI, is it necessary to call device_synchronize after MPI collective to ensure it has finished the execution and that the buffers can safely be used?

No, it is implied in the blocking MPI call.

from cosma.

alazzaro avatar alazzaro commented on July 29, 2024

So, we did a bit of investigation on this problem.
Apparently, this is related to the order of destruction of the GPU arrays used in the memory pool versus the finalization of the GPU MPI libraries dependencies within the Cray-MPICH. COSMA does that at the very end, likely after MPI GPU is finalized... More investigation is needed from the MPI side.

from cosma.

kabicm avatar kabicm commented on July 29, 2024

Thanks a lot @alazzaro for the feedback! Hope we can fix it soon! :)

from cosma.

kabicm avatar kabicm commented on July 29, 2024

@alazzaro Hey Alfio, do we have some more insights about this? Could it still be that this is a COSMA bug?

from cosma.

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.