Skip to content

Show how to pass OpenCL vectors to a kernel - #945

Open
Sinkleberg wants to merge 1 commit into
inducer:mainfrom
Sinkleberg:codex/vector-type-example
Open

Sinkleberg wants to merge 1 commit into
inducer:mainfrom
Sinkleberg:codex/vector-type-example

Conversation

@Sinkleberg

Copy link
Copy Markdown

Adds the example requested in #331. It shows how to build a buffer of float4 values and pass one make_float4 offset to a kernel.

All 21 prompts on the types page passed on an RTX 5090 with PyOpenCL 2026.1.4. I also checked the link from the array docs in a focused HTML build.

Prepared with Codex.

This branch has not been deployed

No deployments
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.

1 participant