<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">OK I specified this:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">EXECUTABLE: /usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpu-simulator/bin/release/accel-sim.out' <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">ARGS: long_argument_list</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am not able to Execute because I get</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">/home/mnaderan/accel-sim-framework/> '/usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpu-simulator/bin/release/accel-sim.out' -trace ./hw_run/traces/device-0/11.2/stencil/_i__home_mnaderan_suites_parboil_datasets_stencil_small_input_128x128x32_bin__o__home_mnaderan_128x128x32_out____128_128_32_100/traces/kernelslist.g -config ./gpu-simulator/gpgpu-sim/configs/tested-cfgs/SM86_RTX3070/gpgpusim.config -config ./gpu-simulator/configs/tested-cfgs/SM86_RTX3070/trace.config<br>*** Failure: /usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpu-simulator/bin/release/accel-sim.out has failed to start ***</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">For the debug I see:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">'/usr/bin/sh /home/mnaderan/accel-sim-framework/run.sh /home/mnaderan/accel-sim-framework/gpu-simulator/bin/release/accel-sim.out' is not an executable</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">However, when I run that command in the terminal, there is no problem.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 28, 2021 at 5:13 PM RenĂ© J.V. Bertin <<a href="mailto:rjvbertin@gmail.com">rjvbertin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wednesday July 28 2021 11:44:23 Mahmood Naderan wrote:<br>
<br>
>some variables and preprocessing. I know how to set variables in the launch<br>
>configuration, but I would like to know how to specify that source command<br>
>in the launch configuration where executable, arguments and working<br>
>directory are set.<br>
<br>
Hi,<br>
<br>
I suppose there is no clear place to specify a set-up command (I don't use this functionality)?<br>
<br>
In that case, your best option would be to turn your "source" command into a wrapper script that first does the sourcing and then exec's the actually intended command:<br>
<br>
----<br>
#!/bin/sh<br>
<br>
# do your source command<br>
<br>
COMMAND="$1"<br>
shift<br>
exec ${COMMAND} "$@"<br>
---<br>
<br>
If your launch configuration is meant to debug your code this will probably not work, but you could try this as the command:<br>
<br>
sh /path/to/wrapper /path/to/yourExecutable [args]<br>
<br>
(this will cause the debugger to see a binary, which at some point will overlay itself with your own code).<br>
<br>
If that doesn't work either you'll have no other choice but to call KDevelop itself via the wrapper script. Or implement the missing feature yourself (and propose it for inclusion).<br>
<br>
R.<br>
</blockquote></div>