Coder Social home page Coder Social logo

Comments (8)

vzhurba01 avatar vzhurba01 commented on September 27, 2024 3

Release v12.1.0 trims Conda dependencies to only require NVRTC and CUDART (excluding math libraries). Closing.

from cuda-python.

leofang avatar leofang commented on September 27, 2024 1

cuda-cudart is not needed at runtime, as currently the cudart layer in CUDA Python is a reimplementation of cudart. So just NVRTC.

from cuda-python.

jakirkham avatar jakirkham commented on September 27, 2024

Would the cuda-cudart package be sufficient? Or is more needed than that?

from cuda-python.

bdice avatar bdice commented on September 27, 2024

@jakirkham I think building the package requires CUDA headers (so -dev packages for cuda-cudart-dev and cuda-nvrtc-dev). At runtime, perhaps only cuda-cudart and cuda-nvrtc are needed?

The features depending on cudaProfiler.h are not brought in as a dependency of cuda-cudart and thus must be explicitly depended on via cuda-profiler-api at build time.

from cuda-python.

jakirkham avatar jakirkham commented on September 27, 2024

Thanks all! That sounds reasonable. Let's see if @vzhurba01 & @m3vaz have more thoughts πŸ™‚

from cuda-python.

vzhurba01 avatar vzhurba01 commented on September 27, 2024

As pointed out, building the package requires CUDA headers. The headers parsed are:

header_dict = {

For building, the headers can be categorized into 3 groups:

  1. Required to build
  2. Optional to enable features
  3. Always enabled

(1) Referenced by extern from, list by @bdice looks complete
(2) Not used right now
(3) cuda_profiler_api.h and graphics APIs (EGL, GL, VDPAU)

For runtime, the requirements are:

  1. NVRTC is needed if you use NVRTC
  2. CUDART is needed if you build kernels referencing some CUDART types

(2) Many types are built-in though, but not all. One of the ported examples/samples encounter such a scenario.

Perhaps (2) can be limited to only the built-in types, and remaining dependency if needed can be added by users?

from cuda-python.

bdice avatar bdice commented on September 27, 2024

I would be happy to keep cudart and nvrtc as β€œhard” runtime dependencies to ensure the package is fully functional. The main parts I want to strip out are the rest of cuda-toolkit that make it very large, like math libraries.

How should we go about making this change? The conda-forge side can simply use this dependency list. We’ll want to reflect the same set of dependencies for the nvidia channel version and issue a new version (or a new build of the same version).

from cuda-python.

jakirkham avatar jakirkham commented on September 27, 2024

Thanks Vlad! πŸ™

from cuda-python.

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.