From e028d18e4ca24afcd13a392873d66dfbe46d0dad Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Fri, 18 Aug 2023 10:48:58 +0200 Subject: [PATCH] [cling] Skip IncrementalExecutor for CUDADevice We don't need it, and with the upgrade to LLVM 16 the NVPTX target (correctly) errors that there is no (direct) JIT execution support. --- interpreter/cling/lib/Interpreter/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/cling/lib/Interpreter/Interpreter.cpp b/interpreter/cling/lib/Interpreter/Interpreter.cpp index 34ce68f555df1..681dbffc9510a 100644 --- a/interpreter/cling/lib/Interpreter/Interpreter.cpp +++ b/interpreter/cling/lib/Interpreter/Interpreter.cpp @@ -257,7 +257,7 @@ namespace cling { if (!m_LookupHelper) return; - if (!isInSyntaxOnlyMode()) { + if (!isInSyntaxOnlyMode() && !m_Opts.CompilerOpts.CUDADevice) { m_Executor.reset(new IncrementalExecutor(SemaRef.Diags, *getCI(), extraLibHandle, m_Opts.Verbose()));