Skip to content

Commit

Permalink
[cling] Skip IncrementalExecutor for CUDADevice
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hahnjo committed Aug 18, 2023
1 parent b0204b8 commit f0a8239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/cling/lib/Interpreter/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Expand Down

0 comments on commit f0a8239

Please sign in to comment.