mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-17 17:38:18 +08:00
Release v13.3 of the CUDA samples with CUDA 13.3 Toolkit (#435)
This is the release of the CUDA 13.3 samples, which include additions for CUDA Tile C++, and updated CCCL and Python samples.
This commit is contained in:
@@ -117,7 +117,7 @@ def init_device(rank: int):
|
||||
|
||||
# Create cuda.core stream and make CuPy use it
|
||||
stream = device.create_stream()
|
||||
cp.cuda.ExternalStream(int(stream.handle)).use()
|
||||
cp.cuda.Stream.from_external(stream).use()
|
||||
|
||||
return device, stream
|
||||
|
||||
@@ -317,7 +317,7 @@ def main():
|
||||
|
||||
# Step 1: Compute local gradients on each GPU
|
||||
# Use cuda.core Event for GPU timing measurements
|
||||
timing_options = EventOptions(enable_timing=True)
|
||||
timing_options = EventOptions(timing_enabled=True)
|
||||
start_event = stream.record(options=timing_options)
|
||||
|
||||
local_grad = compute_local_gradients(num_elements, device, stream, rank)
|
||||
|
||||
Reference in New Issue
Block a user