Skip to content

Commit b179e7d

Browse files
authored
always validate (#626)
1 parent 2a6bcc7 commit b179e7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pocl/compiler/compilation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252

5353
# create GPUCompiler objects
54-
target = SPIRVCompilerTarget(; supports_fp16, supports_fp64, kwargs...)
54+
target = SPIRVCompilerTarget(; supports_fp16, supports_fp64, validate = true, kwargs...)
5555
params = OpenCLCompilerParams()
5656
return CompilerConfig(target, params; kernel, name, always_inline)
5757
end

src/pocl/compiler/execution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export @opencl, clfunction, clconvert
44
## high-level @opencl interface
55

66
const MACRO_KWARGS = [:launch]
7-
const COMPILER_KWARGS = [:kernel, :name, :always_inline]
7+
const COMPILER_KWARGS = [:kernel, :name, :always_inline, :validate]
88
const LAUNCH_KWARGS = [:global_size, :local_size, :queue]
99

1010
macro opencl(ex...)

0 commit comments

Comments
 (0)