[Migrated] How to get spir-v with OpCapability Kernel?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- compilers, computer-graphics
Research direction
The issue names a dummy Rust compute kernel, Vulkano, Intel Level Zero, and the required SPIR-V capabilities and memory model, but no repository file or test. Start by tracing how rust-gpu generates SPIR-V for compute shaders and compare that output with Level Zero's validation rules. Done means identifying a supported path to the required form or documenting the limitation clearly.
Written by the indexing model from the issue text.
Description
Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/1094
Originally creatd by jczaja on 2023-09-22T07:57:23Z
Hi,
I have a dummy compute kernel:
#[spirv(compute(threads(768)))]
pub fn main_cs(
#[spirv(global_invocation_id)] id: UVec3,
#[spirv(storage_buffer, descriptor_set = 0, binding = 0)] prime_indices: &mut [u32],
) {
let index = id.x as usize;
prime_indices[index] = collatz(prime_indices[index]).1u32;
}
I can run it using Vulkano abd it works, but I wanted to run this spir-v kernel using Intel Level Zero and this did not work. Problem is that Intel Level zero is OpenCL like API and it require that SPIR-V is :
OpCapability Kernel
OpMemoryModel Physical64 OpenCL
..
while my dummy compute kernel as SPIR-V contains:
OpCapability Shader
OpMemoryModel Logical Simple
...
How can I compiler my rust compute shader so it is of SPIR-V form OpCapability Kernel ?
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Rust-GPU/rust-gpu
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
enhancement
Rust-GPU/rust-gpu#643 · 2 comments · 1 reaction · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in Rust-GPU/rust-gpu
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100