GPUArrays.jl
GPUArrays.jl copied to clipboard
Testing method execution
Since we're overriding Base all the time (and similarly packages like CuArrays override generic functionality from GPUArrays) we need some test infrastructure to make sure certain specialized methods are executed when doing some operations.
eg. https://github.com/JuliaGPU/CuArrays.jl/pull/111#issuecomment-414259537
Here is what we use in MKLSparse https://github.com/JuliaSparse/MKLSparse.jl/blob/3957a665612c4454815a305d53866d35cded5873/src/BLAS/level_2_3/generator.jl#L40 coupled with https://github.com/JuliaSparse/MKLSparse.jl/blob/3957a665612c4454815a305d53866d35cded5873/test/test_BLAS.jl#L26-L32.
Quite ugly but still.