Skip to content

Conversation

@rparolin
Copy link
Collaborator

@rparolin rparolin commented Dec 19, 2025

Fixes #192

This PR implements from_handle() static methods for Kernel classes enabling interoperability with foreign CUDA handles.

✨ Key Changes

  1. Kernel.from_handle()
  2. Thread Safety Improvements
    2.1. Added thread-safe lazy initialization using double-checked locking pattern
    2.2. Refactored global state access through helper functions that ensure initialization

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Dec 19, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@rparolin rparolin changed the title Rparolin/192 issue fix [core] Add from_handle() methods for Program, ObjectCode, and Kernel. Dec 19, 2025
@rparolin rparolin changed the title [core] Add from_handle() methods for Program, ObjectCode, and Kernel. [FEA] Add from_handle() methods for Program, ObjectCode, and Kernel. Dec 19, 2025
@rparolin
Copy link
Collaborator Author

/ok to test 30dfcdc

@rparolin rparolin requested review from cpcloud and leofang December 19, 2025 22:26
@rparolin rparolin marked this pull request as ready for review December 19, 2025 22:27
@rparolin
Copy link
Collaborator Author

/ok to test 47ad63e

@github-actions
Copy link

@rparolin
Copy link
Collaborator Author

/ok to test de17dc8

@rparolin rparolin changed the title [FEA] Add from_handle() methods for Program, ObjectCode, and Kernel. [FEA] Add from_handle() methods for Kernel. Jan 12, 2026
@rparolin
Copy link
Collaborator Author

/ok to test 5f01231

@rparolin rparolin requested a review from leofang January 13, 2026 19:41
@rparolin rparolin enabled auto-merge (squash) January 13, 2026 20:43
@rparolin
Copy link
Collaborator Author

/ok to test c9cca32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement from_handle() for all cuda.core objects

2 participants