We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fa19a4 commit d359531Copy full SHA for d359531
1 file changed
devito/arch/compiler.py
@@ -705,10 +705,14 @@ def __init_finalize__(self, **kwargs):
705
if not configuration['safe-math']:
706
self.cflags.append('--use_fast_math')
707
708
- # Optionally print out per-kernel shared memory and register usage
709
if configuration['profiling'] == 'advanced2':
+ # Optionally print out per-kernel shared memory and register usage
710
self.cflags.append('--ptxas-options=-v')
711
712
+ # Useful for Nsight Compute to associate the source code with
713
+ # profiling information
714
+ self.cflags.append('-lineinfo')
715
+
716
self.src_ext = 'cu'
717
718
# NOTE: not sure where we should place this. It definitely needs
0 commit comments