JuliaGPU / JuliaGPU/Metal.jl

`Const` is broken

Open
#901 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
463
Forks
68
Avg merge
1d 19m
Merged PRs (30d)
32

Description

`const_arrayref` calls `unsafe_cached_load`, which doesn't exist. We should probably fix this or just remove the code.
https://github.com/JuliaGPU/Metal.jl/blob/a8e6789406bfe5658c79ac76cafb10685359d5a9/src/device/array.jl#L92-L96

This is low priority since I don't think it's ever worked (KA's `@const` is not connected to this) but I opened the issue to keep track of it

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/device/array.jl at lines 92-96 and inspect how const_arrayref calls unsafe_cached_load. Determine whether that code should be fixed or removed, since the issue leaves both options open. Done means const_arrayref no longer references the nonexistent function and its intended behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.