When invoking charmrun.start on the command line in the following manner:
python3 -m charmrun.start +p2 ./hello.py
it will work as expected, but if one wishes to execute a different program such as perf it will not work:
python3 -m charmrun.start +p2 `which perf` stat `which python3` examples/hello/array_hello.py
Charmrun> scalable start enabled.
File "/usr/bin/perf", line 7
case "$version" in
^
SyntaxError: invalid syntax
It appears that charmrun.start attempts to run the provided executable as a Python script. Running the above command using charmrun directly results in the correct behavior.
When invoking
charmrun.start
on the command line in the following manner:python3 -m charmrun.start +p2 ./hello.py
it will work as expected, but if one wishes to execute a different program such as perf it will not work:It appears that
charmrun.start
attempts to run the provided executable as a Python script. Running the above command usingcharmrun
directly results in the correct behavior.