Testing
If it ain't tested, it's broken. The test/runtests.jl
suite does randomised correctness testing on all algorithms in the library. To test locally, execute:
$> julia -e 'import Pkg; Pkg.develop(path="path/to/AcceleratedKernels.jl"); Pkg.add("oneAPI")'
$> julia -e 'import Pkg; Pkg.test("AcceleratedKernels.jl", test_args=["--oneAPI"])'
Replace the "--oneAPI"
with "--CUDA"
, "--AMDGPU"
or "--Metal"
to test different backends, as available on your machine.
Leave out to test the CPU backend:
$> julia -e 'import Pkg; Pkg.test("AcceleratedKernels.jl")'