Skip to content

Add cuda.core.utils.ProgramCacheResource #179

Closed

Description

@leofang

This is the ABC class that all concrete cache classes should inherit/overwrite:

class ProgramCacheResource(abc.ABC):

    @abc.abstractmethod
    def __getitem__(self, key: Any) -> Module:
        """Retrieve the cached Module instance. key should be a hashable
        object.
        """
        ...

    @abc.abstractmethod
    def __setitem__(self, key: Any, val: Module):
        """Cache a Module instance. key should be a hashable object.
        """
        ...

Activity

  1. added
    cuda.core
    feature
    P1
    on Oct 17, 2024
  2. added this to the cuda.core beta 2 milestone on Oct 17, 2024
  3. added
    triage
    on Dec 4, 2024
  4. added
    P0
    and removed
    P1
    on Dec 11, 2024
  5. added
    P1
    and removed
    triage
    P0
    on Jan 14, 2025
  6. added
    triage
    on Mar 24, 2025
  7. removed
    triage
    on Jan 19, 2026
  8. added
    P0
    and removed
    P1
    on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0cuda.corefeature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions