-
Notifications
You must be signed in to change notification settings - Fork 212
Cythonize cuda.core
more
#1070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Cythonize cuda.core
more
#1070
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1f84a5a
release gil
leofang 2c86825
release gil for record
leofang efe7fe0
use __dealloc__ in event/stream
leofang fa88b28
nit: remove print
leofang 1083d90
fix linter error
leofang c06dc9d
reduce further the number of Python objects held by Stream
leofang b713c5c
replace a few more __del__ by __dealloc__
leofang d764f5b
improve __cuda_stream__ performance
leofang 3684644
cythonize Buffer & DMR (WIP - not working!)
leofang 2c9d5ec
minor fixes - still failing
leofang 638bf59
fix casting and avoid repetive assignment
leofang 0c64e8e
ensure we have C access for DeviceMemoryResource
leofang 4c4bb17
restore the contracts for now (the deallocation stream should be fixed)
leofang c593ac9
fully cythonize Stream
leofang fae5e7f
make linter happy
leofang bf712bf
Merge branch 'main' into cythonize_more
leofang 2dd9138
address review comments
leofang a5e6bcf
Merge branch 'main' into cythonize_more
leofang 3809a33
give our ABC class (MemoryResource) fast access in C/Cython
leofang 22b0e2e
make it clear we need two CUDA contexts for retriving the stream's de…
leofang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from cuda.bindings cimport cydriver | ||
|
||
|
||
cdef class Event: | ||
|
||
cdef: | ||
cydriver.CUevent _handle | ||
bint _timing_disabled | ||
bint _busy_waited | ||
int _device_id | ||
object _ctx_handle | ||
|
||
cpdef close(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.