Rust-GPU / Rust-GPU/rust-cuda

Allow usage of const sized arrays

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.4k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

Currently the kernel macro disallowes the usage of something like [f32; 3] as a type, imo it should be allowed, since it can easily implement copy if the array value implements copy, hence it can be part of the method signature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the kernel macro implementation and trace where method-signature types are validated. Check how existing type and Copy cases are tested, then add coverage for a const-sized array such as [f32; 3]. Done means the macro accepts the array when its element type supports Copy and preserves the method signature.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.