diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..540a1098 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,30 @@ +name: CI +on: + pull_request: + branches: + - master + paths-ignore: + - 'docs/**' + push: + branches: + - master + paths-ignore: + - 'docs/**' +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + julia-version: ['1.10'] + group: [CPU] + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.julia-version }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + env: + GROUP: ${{ matrix.group }} \ No newline at end of file diff --git a/Project.toml b/Project.toml index b65846df..5c6de6e3 100644 --- a/Project.toml +++ b/Project.toml @@ -9,6 +9,7 @@ ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e" Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" +GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527" ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" @@ -44,6 +45,7 @@ ChainRulesCore = "1" DiffEqBase = "6.122" DocStringExtensions = "0.8, 0.9" ForwardDiff = "0.10, 1" +GPUArraysCore = "0.1, 0.2" KernelAbstractions = "0.9" LinearSolve = "1.15, 2, 3" Metal = "0.5, 1" diff --git a/src/ensemblegpukernel/integrators/integrator_utils.jl b/src/ensemblegpukernel/integrators/integrator_utils.jl index fcfe1b33..f20b9b5a 100644 --- a/src/ensemblegpukernel/integrators/integrator_utils.jl +++ b/src/ensemblegpukernel/integrators/integrator_utils.jl @@ -360,7 +360,7 @@ end end # interp_points = 0 or equivalently nothing -@inline function DiffEqBase.determine_event_occurance( +@inline function DiffEqBase.determine_event_occurrence( integrator::DiffEqBase.AbstractODEIntegrator{ AlgType, IIP, diff --git a/test/utils.jl b/test/utils.jl index 16177d45..c25d0376 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -11,6 +11,9 @@ elseif GROUP == "oneAPI" elseif GROUP == "Metal" using Metal Metal.MetalBackend() +elseif GROUP == "CPU" + using KernelAbstractions + KernelAbstractions.CPU() end import GPUArraysCore