Skip to content

Commit d359531

Browse files
committed
arch: Enhance CudaCompiler
1 parent 5fa19a4 commit d359531

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

devito/arch/compiler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,14 @@ def __init_finalize__(self, **kwargs):
705705
if not configuration['safe-math']:
706706
self.cflags.append('--use_fast_math')
707707

708-
# Optionally print out per-kernel shared memory and register usage
709708
if configuration['profiling'] == 'advanced2':
709+
# Optionally print out per-kernel shared memory and register usage
710710
self.cflags.append('--ptxas-options=-v')
711711

712+
# Useful for Nsight Compute to associate the source code with
713+
# profiling information
714+
self.cflags.append('-lineinfo')
715+
712716
self.src_ext = 'cu'
713717

714718
# NOTE: not sure where we should place this. It definitely needs

0 commit comments

Comments
 (0)