Skip to content

Commit 6327ec2

Browse files
fix bug
1 parent 7c384a3 commit 6327ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numba_cuda/numba/cuda/cudadrv/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ def new(cls,
26322632

26332633
if linker is PyNvJitLinker:
26342634
return linker(max_registers, lineinfo, cc, lto, additional_flags)
2635-
elif additional_flags is not None or lto is not None:
2635+
elif additional_flags is not None or lto is True:
26362636
raise ValueError("LTO and additional flags require PyNvJitLinker")
26372637
else:
26382638
return linker(max_registers, lineinfo, cc)

0 commit comments

Comments
 (0)