-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: old function still has uses (via a constant expr) #680
Comments
Are you able to provide a MWE? |
Updated to have a MWE |
Per the suggestion in JuliaGPU/Metal.jl#570, I tested
|
This is probably related to JuliaGPU/Metal.jl#69 |
#678 should fix the assertion; please verify. Note that the kernel doesn't successfully compile, as it contains dynamic code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In trying to work around JuliaGPU/Metal.jl#570 I've been running a bunch of code that ends up hitting that compile error in JuliaGPU/Metal.jl#570. Somewhere along the way it seems (based on the GPUCompiler src code) like I've messed up the LLVM cache somehow.Maybe related to JuliaGPU/Metal.jl#570, but here no compiler error or multiplication.
MWE:
If the line
out[t, i] = t // model_object[I]
is changed to either of the following, the code still works:out[t, i] = t
out[t,i] = 1 // model_object[I]
out[t, i] = t * model_object[i]
out[t, i] = t // 12
So it seems like it's the combination of the loop variable
t
with getting an index from a vector.Stacktrace:
I tried the following, but still get the error:
jl_*
files in/var/folders/hw/bycsc7f52zvfzlh61rydj85r0000gn/T/
main
branchgc
, and then re-add
ing.Julia/v1.11/Metal/
The text was updated successfully, but these errors were encountered: