From bdab958d227b21517306d3f37ed4dc41d93f890d Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 13 Jan 2025 14:08:36 +0100 Subject: [PATCH] Update src/KernelAbstractions.jl --- src/KernelAbstractions.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/KernelAbstractions.jl b/src/KernelAbstractions.jl index fb1cc9f5..57b735e7 100644 --- a/src/KernelAbstractions.jl +++ b/src/KernelAbstractions.jl @@ -570,6 +570,7 @@ end function device!(backend::Backend, id::Int) if 0 < id <= ndevices(backend) throw(ArgumentError("Device id $id out of bounds.")) + end return nothing end