Skip to content

Commit e5f2dcd

Browse files
committed
Have the default target default to not using the Julia runtime.
1 parent 92625c5 commit e5f2dcd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/driver.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const __llvm_initialized = Ref(false)
321321
@compiler_assert isempty(uses(dyn_marker)) job
322322
unsafe_delete!(ir, dyn_marker)
323323
end
324-
324+
325325
@timeit_debug to "IR post-processing" begin
326326
# mark the kernel entry-point functions (optimization may need it)
327327
if job.source.kernel
@@ -334,7 +334,7 @@ const __llvm_initialized = Ref(false)
334334
if optimize
335335
@timeit_debug to "optimization" begin
336336
optimize!(job, ir)
337-
337+
338338
# deferred codegen has some special optimization requirements,
339339
# which also need to happen _after_ regular optimization.
340340
# XXX: make these part of the optimizer pipeline?
@@ -376,7 +376,7 @@ const __llvm_initialized = Ref(false)
376376
end
377377
end
378378
end
379-
379+
380380
# finish the module
381381
#
382382
# we want to finish the module after optimization, so we cannot do so during

src/native.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Base.@kwdef struct NativeCompilerTarget <: AbstractCompilerTarget
88
cpu::String=(LLVM.version() < v"8") ? "" : unsafe_string(LLVM.API.LLVMGetHostCPUName())
99
features::String=(LLVM.version() < v"8") ? "" : unsafe_string(LLVM.API.LLVMGetHostCPUFeatures())
1010
llvm_always_inline::Bool=false # will mark the job function as always inline
11-
jlruntime::Bool=true # Use Julia runtime for throwing errors, instead of the GPUCompiler support
11+
jlruntime::Bool=false # Use Julia runtime for throwing errors, instead of the GPUCompiler support
1212
end
1313
llvm_triple(::NativeCompilerTarget) = Sys.MACHINE
1414

0 commit comments

Comments
 (0)