Code Monkey home page Code Monkey logo

Comments (6)

harrism avatar harrism commented on August 26, 2024 1

You would never use rmm::cuda_stream for a function parameter, as it is an owning wrapper. You would use it (or rmm::cuda_stream_pool) for creating streams. For function parameters, use rmm::cuda_stream_view, which is implicitly constructable from cudaStream_t and so should not break your APIs.

from raft.

teju85 avatar teju85 commented on August 26, 2024

I'm all in favor of code reuse. I don't see any big issues with this in cuML. But I'd like to hear from @cjnolet on this one. Because, in MNMG algo's like kNN we end up querying for all of the streams at once and then use them to launch work onto GPUs!

re: API to acquire a stream from the pool

FWIW, the proposed get_stream approach should just work fine with cuML.

from raft.

harrism avatar harrism commented on August 26, 2024

Also please consider using rmm::cuda_stream and rmm::cuda_stream_view in RAFT, cuML, and cuGraph as well.

from raft.

teju85 avatar teju85 commented on August 26, 2024

Sounds like a good idea. The only caveat is that using rmm::cuda_stream will cause a ripple change in all of RAFT/cuML/cuGraph, as we expose a cudaStream_t on almost all methods! Maybe in the interim we could just use the underlying cudaStream_t object from rmm::cuda_stream? Is that possible @harrism ?

from raft.

github-actions avatar github-actions commented on August 26, 2024

This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d.

from raft.

github-actions avatar github-actions commented on August 26, 2024

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

from raft.

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.