Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'pre' }}
env:
PS_TEST_BACKEND: ${{ startsWith(matrix.os, 'macOS') && 'Metal' || '' }} # The macOS runners (Apple silicon) have a functional Metal GPU: the test runner installs Metal into the test environment and the Metal tests must run.
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
Manifest.toml
test/Manifest.toml
miniapps/Manifest.toml
*.cov
lcov.info
Expand Down
8 changes: 0 additions & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,3 @@ Metal = "1.2"
Polyester = "0.7"
StaticArrays = "1"
julia = "1.10" # Minimum version supporting Data module creation

[extras]
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "TOML", "AMDGPU", "CUDA", "CUDA_Runtime_jll", "Metal", "Enzyme", "Polyester", "KernelAbstractions"]
2 changes: 1 addition & 1 deletion ci/cscs-gh200.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include:
JULIA_UENV: 'julia/26.3:v1'
JULIA_CUDA_USE_COMPAT: 'false'
JULIA_NUM_THREADS: 2
PS_TEST_BACKEND: 'CUDA' # Fail instead of skipping the GPU tests if CUDA is not functional.
PS_TEST_BACKEND: 'CUDA' # The test runner installs CUDA into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_FILES: '' # Test files to run (default: all).
script:
- ulimit -c 0
Expand Down
2 changes: 1 addition & 1 deletion ci/cscs-mi250.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include:
JULIA_AMDGPU_CORE_MUST_LOAD: '1'
JULIA_AMDGPU_HIP_MUST_LOAD: '1'
JULIA_NUM_THREADS: 2
PS_TEST_BACKEND: 'AMDGPU' # Fail instead of skipping the GPU tests if AMDGPU is not functional.
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_FILES: '' # Test files to run (default: all).
script:
- ulimit -c 0
Expand Down
2 changes: 1 addition & 1 deletion ci/cscs-mi300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include:
JULIA_AMDGPU_CORE_MUST_LOAD: '1'
JULIA_AMDGPU_HIP_MUST_LOAD: '1'
JULIA_NUM_THREADS: 2
PS_TEST_BACKEND: 'AMDGPU' # Fail instead of skipping the GPU tests if AMDGPU is not functional.
PS_TEST_BACKEND: 'AMDGPU' # The test runner installs AMDGPU into the test environment; fail instead of skipping the GPU tests if it is not functional.
PS_TEST_FILES: '' # Test files to run (default: all).
script:
- ulimit -c 0
Expand Down
10 changes: 7 additions & 3 deletions docs/src/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Each test file runs in its own Julia process. Test files can be selected by file
import Pkg; Pkg.test("ParallelStencil"; test_args=["ParallelKernel/test_parallel.jl", "--stop-on-fail"])
```

The tests of the CUDA, AMDGPU and Metal backends run if the corresponding package is functional, and are skipped otherwise. The following environment variable controls the test run:
The GPU packages (CUDA, AMDGPU and Metal) are not dependencies of the test environment (`test/Project.toml`), as resolving them all together holds each of them back to an old version. The GPU backend to test is selected with the following environment variable; the test runner installs its package into the (temporary) test environment of `Pkg.test`, and its tests must run:

| Variable | Description |
|:----------------- |:----------------------------------------------------------------------------------------------------------------------------------------- |
| `PS_TEST_BACKEND` | GPU backend that must be functional (`CUDA`, `AMDGPU` or `Metal`); if it is not, the test run fails instead of skipping the tests of this backend. |
| `PS_TEST_BACKEND` | GPU backend to test (`CUDA`, `AMDGPU` or `Metal`): its package is installed into the test environment if it is not already, and the test run fails instead of skipping the tests of this backend if it is not functional. |

For example, to make sure that the GPU tests are run:
Without it, the CPU backends (Threads, Polyester and KernelAbstractions on the CPU) are tested, and the tests of a GPU backend run only if its package is already installed in the test environment and functional. For example, to test a GPU backend:

:::code-group

Expand All @@ -36,6 +36,8 @@ julia --project -e 'import Pkg; Pkg.test()'

:::

The test environment of `Pkg.test` is temporary, so the installation is repeated at each test run (it is fast once the package is in the depot). To avoid it, the package can be added permanently to the test environment with `julia --project=test -e 'import Pkg; Pkg.add("CUDA")'`; this modifies `test/Project.toml` (do not commit this change) and `test/Manifest.toml` (not tracked by git).

## Continuous integration

- **GitHub Actions** (CPUs, and Apple GPUs on the macOS runners): Julia `min` and `1` on Linux and macOS (Apple silicon), and Julia `pre` on Linux (allowed to fail) (`.github/workflows/ci.yml`).
Expand All @@ -45,4 +47,6 @@ julia --project -e 'import Pkg; Pkg.test()'

For pull requests by other contributors, a maintainer starts the pipelines by commenting `cscs-ci run`.

Each job sets `PS_TEST_BACKEND` to the GPU backend it tests (`CUDA` on Daint, `AMDGPU` on Beverin and `Metal` on the macOS runners of GitHub Actions); the Linux jobs of GitHub Actions test the CPU backends only.

Coverage of all jobs is uploaded to [Codecov](https://app.codecov.io/gh/omlins/ParallelStencil.jl) (flags `cpu`, `gh200`, `mi250` and `mi300`).
28 changes: 4 additions & 24 deletions test/ParallelKernel/test_allocators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,10 @@ import ParallelStencil.ParallelKernel: checkargs_CellType, _CellType
using ParallelStencil.ParallelKernel.FieldAllocators
import ParallelStencil.ParallelKernel.FieldAllocators: checksargs_field_macros, checkargs_allocate
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
@define_CuCellArray
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
@define_ROCCellArray
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
@define_MtlCellArray
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.
@static if (PKG_CUDA in TEST_PACKAGES) @define_CuCellArray end # NOTE: @static, as the macros import the GPU package at expansion time.
@static if (PKG_AMDGPU in TEST_PACKAGES) @define_ROCCellArray end
@static if (PKG_METAL in TEST_PACKAGES) @define_MtlCellArray end
const DATA_INDEX = ParallelStencil.INT_THREADS # TODO: using Data.Index does not work in combination with @reset_parallel_kernel, because the macros from module Test alternate the order of evaluation, resulting in the Data module being replaced with an empty module before Data.Index is evaluated. If at some point the indexing varies depending on the used package, then something more sophisticated is needed here (e.g., wrapping the test for each package in a module and using then Data.Index everywhere).
kernelabstractions_valid_symbols() = Tuple(filter(!isnothing, (
:cpu,
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_hide_communication.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized,
import ParallelStencil.ParallelKernel: @require, @prettyexpand, @gorgeousexpand, gorgeousstring, @isgpu
import ParallelStencil.ParallelKernel: checkargs_hide_communication, hide_communication_gpu
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.


@testset "$(basename(@__FILE__))" verbose=true begin # NOTE: the package testsets are nested in this testset (and the package loop is run at run time) in order to test all packages even if the tests of one package fail.
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_init_parallel_kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized,
import ParallelStencil.ParallelKernel: @require, @symbols
import ParallelStencil.ParallelKernel: extract_posargs_init, extract_kwargs_init, check_already_initialized, set_initialized, is_initialized, check_initialized
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.


@testset "$(basename(@__FILE__))" verbose=true begin # NOTE: the package testsets are nested in this testset (and the package loop is run at run time) in order to test all packages even if the tests of one package fail.
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_kernel_language.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized,
import ParallelStencil.ParallelKernel: @require, @prettystring, @iscpu, @select_hardware, @current_hardware, handle
import ParallelStencil.ParallelKernel: checknoargs, checkargs_sharedMem, Dim3
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal # Import also on non-Apple systems to test macro expansions
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.


macro expr_allocated(ex)
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_overlap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized,
import ParallelStencil.ParallelKernel: @require, @gorgeousexpand, @isgpu
import ParallelStencil.ParallelKernel: checkargs_overlap, @overlap, overlap_gpu
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
@static if Sys.isapple()
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
else
TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES)
end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.

@testset "$(basename(@__FILE__))" verbose=true begin # NOTE: the package testsets are nested in this testset (and the package loop is run at run time) in order to test all packages even if the tests of one package fail.
for package in TEST_PACKAGES
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,7 @@ import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized,
import ParallelStencil.ParallelKernel: @require, @prettystring, @gorgeousstring, @isgpu, @iscpu, interpolate, @select_hardware, @current_hardware, handle
import ParallelStencil.ParallelKernel: checkargs_parallel, checkargs_parallel_indices, parallel_indices, maxsize, compute_nthreads, NTHREADS_X_MAX_AMDGPU, NTHREADS_MAX
using ParallelStencil.ParallelKernel.Exceptions
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.

macro compute(A) esc(:($(INDICES[1]) + ($(INDICES[2])-1)*size($A,1))) end
macro compute_with_aliases(A) esc(:(ix + (iz -1)*size($A,1))) end
Expand Down
22 changes: 1 addition & 21 deletions test/ParallelKernel/test_reset_parallel_kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,7 @@ import ParallelStencil
using ParallelStencil.ParallelKernel
import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @is_initialized, @isdefined_at_pt, @get_package, @get_numbertype, @get_hardware, @select_hardware, @current_hardware, SUPPORTED_PACKAGES, PKG_CUDA, PKG_AMDGPU, PKG_METAL, PKG_KERNELABSTRACTIONS, PKG_POLYESTER, PKG_NONE, NUMBERTYPE_NONE
import ParallelStencil.ParallelKernel: @require, @symbols
TEST_PACKAGES = SUPPORTED_PACKAGES
@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x->x≠PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x->x≠PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x->x≠PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
Base.retry_load_extensions() # Potentially needed to load the extensions after the packages have been filtered.
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.


@testset "$(basename(@__FILE__))" verbose=true begin # NOTE: the package testsets are nested in this testset (and the package loop is run at run time) in order to test all packages even if the tests of one package fail.
Expand Down
34 changes: 6 additions & 28 deletions test/ParallelKernel/test_select_hardware.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,10 @@ using Test
using ParallelStencil.ParallelKernel
import ParallelStencil.ParallelKernel: @reset_parallel_kernel, @init_parallel_kernel, @is_initialized, @select_hardware, @current_hardware, @get_hardware, handle, SUPPORTED_PACKAGES, PKG_CUDA, PKG_AMDGPU, PKG_METAL, PKG_THREADS, PKG_POLYESTER, PKG_KERNELABSTRACTIONS
import ParallelStencil.ParallelKernel: @require, @prettystring
@static if PKG_KERNELABSTRACTIONS in SUPPORTED_PACKAGES
import KernelAbstractions: CPU, CUDABackend, ROCBackend, MetalBackend, oneAPIBackend
end
import KernelAbstractions: CPU # NOTE: the GPU backend types (e.g. CUDABackend) are defined by the extensions of KernelAbstractions, i.e. only if the corresponding GPU package is loaded; they are referred to qualified below.

TEST_PACKAGES = SUPPORTED_PACKAGES
include(joinpath(@__DIR__, "../packages.jl")) # Selection of the packages to test (TEST_PACKAGES), imports of the backend packages.

@static if PKG_CUDA in TEST_PACKAGES
import CUDA
if !CUDA.functional() TEST_PACKAGES = filter!(x -> x ≠ PKG_CUDA, TEST_PACKAGES) end
end
@static if PKG_AMDGPU in TEST_PACKAGES
import AMDGPU
if !AMDGPU.functional() TEST_PACKAGES = filter!(x -> x ≠ PKG_AMDGPU, TEST_PACKAGES) end
end
@static if PKG_METAL in TEST_PACKAGES
import Metal
if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end
end
@static if PKG_POLYESTER in TEST_PACKAGES
import Polyester
end
@static if PKG_KERNELABSTRACTIONS in TEST_PACKAGES
import KernelAbstractions
if !KernelAbstractions.functional(KernelAbstractions.CPU()) TEST_PACKAGES = filter!(x -> x ≠ PKG_KERNELABSTRACTIONS, TEST_PACKAGES) end
end
Base.retry_load_extensions()


@testset "$(basename(@__FILE__))" verbose=true begin # NOTE: the package testsets are nested in this testset (and the package loop is run at run time) in order to test all packages even if the tests of one package fail.
Expand Down Expand Up @@ -83,13 +61,13 @@ for package in TEST_PACKAGES eval(:(
if symbol == :cpu
@test handle(symbol, package_symbol) == CPU()
elseif symbol == :gpu_cuda
@test handle(symbol, package_symbol) == CUDABackend()
@test handle(symbol, package_symbol) == KernelAbstractions.CUDABackend()
elseif symbol == :gpu_amd
@test handle(symbol, package_symbol) == ROCBackend()
@test handle(symbol, package_symbol) == KernelAbstractions.ROCBackend()
elseif symbol == :gpu_metal
@test handle(symbol, package_symbol) == MetalBackend()
@test handle(symbol, package_symbol) == KernelAbstractions.MetalBackend()
elseif symbol == :gpu_oneapi
@test handle(symbol, package_symbol) == oneAPIBackend()
@test handle(symbol, package_symbol) == KernelAbstractions.oneAPIBackend()
end
end
end
Expand Down
Loading
Loading