Valentin Churavy
Valentin Churavy
I think this is fixed with #320 ?
I am not a fan of tiny packages ;) But you have my encouragement to upstream it https://github.com/JuliaLang/julia/pull/31376
Please go ahead. On Tue, Jan 12, 2021 at 3:37 PM Dilum Aluthge wrote: > Do you mind if I rebase the branch in JuliaLang/julia#31376 > ? And push some...
Jeff/Keno/Jameson/Yichao/Tim B./Me but the reason I never finished it was because I never came up wit a composable user interface, that should also incorporate parts of `@simd`
Try: ``` @kernel function f_test_kernel!(input, ::Type{T}) where T tid = @index(Global, Linear) input[tid] = T(tid) end ``` The compiler otherwise treats `T isa DataType`
Thinking about this today, we have three options: 1. Add it as a parameter to kernel construction 2. Add it as a paramater to kernel launch 3. Turn it on...
@matinraayai would you be interested in trying to add that?
Yes currently `@index` is only recognized as a top-level expression, and the real macro `@kernel` and `@index` is just a placeholder
Instead of debugging this I went ahead and started removing one layer of abstraction that could screw with this. #288
Ah sorry you are in intermediate version hell. The latest Enzyme release doesn't work. You either need Enzyme ?0.7 or Enzyme#main. But it should not hang... It should complain loudly