William Moses

Results 889 comments of William Moses

Now a: ``` ERROR: LoadError: UndefRefError: access to undefined reference Stacktrace: [1] unsafe_convert @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4491 [inlined] [2] macro expansion @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4734 [inlined] [3] enzyme_call @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4530 [inlined] [4] ForwardModeThunk @...

@vchuravy this variant of the issue is not resolved by your PR.

Am now seeing a: ``` ERROR: CUDA error: an illegal memory access was encountered (code 700, ERROR_ILLEGAL_ADDRESS) Stacktrace: [1] throw_api_error(res::CUDA.cudaError_enum) @ CUDA ~/.julia/packages/CUDA/DfvRa/lib/cudadrv/error.jl:89 [2] isdone @ ~/.julia/packages/CUDA/DfvRa/lib/cudadrv/stream.jl:109 [inlined] [3] nonblocking_synchronize...

``` Current scope: ; Function Attrs: willreturn mustprogress define internal fastcc void @preprocess_julia_floatrange_1236({ [2 x double], [2 x double], i64, i64 }* noalias nocapture noundef nonnull writeonly sret({ [2 x...

I think the ChainRules and proposed `EnzymeRules` interface solve two orthogonal problems. The need for the design proposed here is making an interface for Enzyme to take any Julia custom...

Per an earlier offline discussion. Active vs const is easy since a const rule can always fallback to active and not use the derivative result. Active and duplicated are incompatible...

You should be passing Active(2.0) d/dx x^2 = 2x = 4 (evaluated at 2)

Minimal remaining failure: ``` wmoses@beast:~/git/Enzyme.jl (vc/gc_alloc_obj) $ cat test/threads.jl using Enzyme Enzyme.API.printall!(true) function foo(y) Threads.@threads for i in 1:3 y[i] *= 2 end nothing end x = [1.0, 2.0, 3.0]...

Present error: ``` julia> Enzyme.autodiff(mwe, Active, Active(1.0), Const((1, 2))) ERROR: UndefRefError: access to undefined reference Stacktrace: [1] unsafe_convert @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4357 [inlined] [2] macro expansion @ /mnt/Data/git/Enzyme.jl/src/compiler.jl:4600 [inlined] [3] enzyme_call @...

Duplicate of https://github.com/EnzymeAD/Enzyme.jl/issues/293