File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -900,7 +900,10 @@ async def do_execute(
900
900
901
901
elif code .startswith ("%%enable_vampir_launch_on_scorep_instrumented" ):
902
902
self .launch_vampir_requested = True
903
- self .cell_output ("Vampir will be launched after next instrumented execution." )
903
+ if shutil .which ("vampir" ) is None :
904
+ self .log_error (KernelErrorCode .VAMPIR_NOT_FOUND )
905
+ else :
906
+ self .cell_output ("Vampir will be launched after next instrumented execution." )
904
907
return self .standard_reply ()
905
908
elif code .startswith ("%%disable_vampir_launch" ):
906
909
self .launch_vampir_requested = False
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class KernelErrorCode(Enum):
45
45
"(looked in: {scorep_folder})"
46
46
),
47
47
KernelErrorCode .VAMPIR_NOT_FOUND : (
48
- "Vampir binary not found in PATH. Cannot launch visualization."
48
+ "Vampir binary not found in PATH. Add it to PATH to enable automatic launch"
49
+ " (e.g. via `%env PATH=/path/to/vampir/bin:$PATH`)."
49
50
),
50
51
51
52
KernelErrorCode .VAMPIR_LAUNCH_FAILED : (
You can’t perform that action at this time.
0 commit comments