mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-26 06:38:16 +08:00
Sync v13.3-public from internal repo
This commit is contained in:
@@ -57,7 +57,7 @@ def timer(message):
|
||||
@contextlib.contextmanager
|
||||
def gpu_timer(message, stream):
|
||||
"""GPU timing context manager using cuda.core CUDA events."""
|
||||
event_options = EventOptions(enable_timing=True)
|
||||
event_options = EventOptions(timing_enabled=True)
|
||||
start_event = stream.record(options=event_options)
|
||||
yield
|
||||
end_event = stream.record(options=event_options)
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
numpy>=2.3.2
|
||||
cuda-python>=13.0.0
|
||||
cuda-core>=0.6.0
|
||||
cupy-cuda13x>=13.0.0
|
||||
cuda-core>=1.0.0
|
||||
cupy-cuda13x>=14.0.0
|
||||
|
||||
Reference in New Issue
Block a user