Skip to content

Blocks API: CUDA support - #1592

Closed
NicolasHug wants to merge 1 commit into
meta-pytorch:mainfrom
NicolasHug:api_breakdown_cuda
Closed

Blocks API: CUDA support#1592
NicolasHug wants to merge 1 commit into
meta-pytorch:mainfrom
NicolasHug:api_breakdown_cuda

Conversation

@NicolasHug

Copy link
Copy Markdown
Contributor

No description provided.

@pytorch-bot

pytorch-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1592

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit e3c66fb with merge base 3f7692b (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 31, 2026
results = {}
for name, fn in methods.items():
times_ns, cpu = bench(fn, path)
times_ns, cpu = bench(fn, path, args.device)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a cuda sync somewhere

int64_t even_height = round_up_to_even(av_frame->height);
int64_t num_bytes = pitch * even_height * 3 / 2;

cudaStream_t stream = get_current_cuda_stream(device_.index());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we wait on info->producing_stream (which i think is the nvdec_stream) before starting the copy?

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

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant