Add function that modifies the default profiler/compiler arguments to allow reusing them in multiple magic command calls

This commit is contained in:
Cosmin Ștefan Ciocan
2024-01-27 01:40:47 +00:00
parent e9f131a678
commit b3c015ae74
5 changed files with 137 additions and 12 deletions
+2 -2
View File
@@ -188,13 +188,13 @@ class NVCCPlugin(Magics):
try:
exec_fpath = self._compile(
group_name=group_name,
compiler_args=args.compiler_args,
compiler_args=args.compiler_args(),
)
output = self._run(
exec_fpath=exec_fpath,
timeit=args.timeit,
profile=args.profile,
profiler_args=args.profiler_args,
profiler_args=args.profiler_args(),
)
except subprocess.CalledProcessError as e:
output = e.output.decode("utf8")