We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2867955 commit 56cd4feCopy full SHA for 56cd4fe
examples/utils.jl
@@ -1,13 +1,13 @@
1
# EXCLUDE FROM TESTING
2
if !(@isdefined backend)
3
-if Base.find_package("CUDA") !== nothing
4
- using CUDA
5
- using CUDA.CUDAKernels
6
- const backend = CUDABackend()
7
- CUDA.allowscalar(false)
8
-else
9
- const backend = CPU()
10
-end
+ if Base.find_package("CUDA") !== nothing
+ using CUDA
+ using CUDA.CUDAKernels
+ const backend = CUDABackend()
+ CUDA.allowscalar(false)
+ else
+ const backend = CPU()
+ end
11
end
12
13
const f_type = KernelAbstractions.supports_float64(backend) ? Float64 : Float32
0 commit comments