Skip to content

Ensure ObjectCode are pickle-able #526

Closed

Description

@leofang

An ObjectCode instance can encapsulate either PTX, LTO-IR, or CUBIN. All of these can be serialized. This would help us as well as any downstream project implement a simple persistent compiler cache.

Activity

  1. added
    cuda.coreEverything related to the cuda.core module
    featureNew feature or request
    triageNeeds the team's attention
    on Mar 18, 2025
  2. brandon-b-miller commented on May 22, 2025

    @brandon-b-miller
    Contributor

    I can take care of this 👍

  3. leofang commented on May 23, 2025

    @leofang
    MemberAuthor

    btw as discussed in the meeting, the pickle support should be limited to serializing/deserializing the underlying binary blob only; it should not try to touch the driver state, for example. So users unpicking an ObjectCode should still write normal cuda.core code. I don't expect major issues, though, just wanna call this out.

  4. added
    P0High priority - Must do!
    and removed
    triageNeeds the team's attention
    on May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P0High priority - Must do!cuda.coreEverything related to the cuda.core modulefeatureNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions