Skip to content

Commit 337ce9a

Browse files
committed
warn when support is broken
1 parent b9a4b2f commit 337ce9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pocl/compiler/compilation.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ end
4848
supports_fp16 = "cl_khr_fp16" in dev.extensions
4949
supports_fp64 = "cl_khr_fp64" in dev.extensions
5050

51+
if !supports_fp64
52+
@warn_once "Device does not support double precision floating point operations" dev
53+
end
54+
if !supports_fp16
55+
@warn_once "Device does not support half precision floating point operations" dev
56+
end
57+
5158
# create GPUCompiler objects
5259
target = SPIRVCompilerTarget(; supports_fp16, supports_fp64, version = v"1.2", kwargs...)
5360
params = OpenCLCompilerParams()

0 commit comments

Comments
 (0)