Problem with creating a run configuration, library file not found.
-
wrote on 29 Jul 2022, 11:41 last edited by mahmoodn
Hi
On a terminal, I am able to run a program this:$ cat run2.sh #!/bin/bash export CUDA_VERSION="11.6"; export CUDA_VISIBLE_DEVICES="0" ; export TRACES_FOLDER=/home/mnaderan/accel-sim-framework/trace-test/traces; CUDA_INJECTION64_PATH=/home/mnaderan/accel-sim-framework/util/tracer_nvbit/tracer_tool/tracer_tool.so /home/mnaderan/gpu-apps/cactus/gms mdrun -notunepme -pme gpu -nb gpu -v -deffnm ./data_dirs/npt $ ./run2.sh PROGRAM OUTPUT
In Qt creator, I created a run configuration as you can see in the picture below. The executable is run2.sh and the working directory is trace-test/ But it complains about not finding a library file. That is weird because I put that in the working directory and as I said, there is no problem in terminal.
-
Hi
On a terminal, I am able to run a program this:$ cat run2.sh #!/bin/bash export CUDA_VERSION="11.6"; export CUDA_VISIBLE_DEVICES="0" ; export TRACES_FOLDER=/home/mnaderan/accel-sim-framework/trace-test/traces; CUDA_INJECTION64_PATH=/home/mnaderan/accel-sim-framework/util/tracer_nvbit/tracer_tool/tracer_tool.so /home/mnaderan/gpu-apps/cactus/gms mdrun -notunepme -pme gpu -nb gpu -v -deffnm ./data_dirs/npt $ ./run2.sh PROGRAM OUTPUT
In Qt creator, I created a run configuration as you can see in the picture below. The executable is run2.sh and the working directory is trace-test/ But it complains about not finding a library file. That is weird because I put that in the working directory and as I said, there is no problem in terminal.
Any idea on how to fix that?@mahmoodn said in Problem with creating a run configuration, library file not found.:
Any idea on how to fix that?
In you shell script set LD_LIBRARY_PATH to point to the folder there this lib is before you execute the executable.
As alternative you can also set LD_LIBRARY_PATH in "Environment". -
wrote on 29 Jul 2022, 11:57 last edited by
Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?
-
Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?
@mahmoodn If you did not change anything it should not build after the first run.
-
Thank you. One more side question. When I press the Run button (green triangle), it first builds the project and then runs it. How can I bypass the compilation when clicking on Run?
wrote on 29 Jul 2022, 12:03 last edited by JonB@mahmoodn
As @jsulm says you should find it does not rebuild if no change and be happy to run that way.If you really want there is another button with the green icon on it which re-runs but does not bother to (check for) rebuild. Look for a much smaller version of the green-play icon, it is on the "toolbar" of one of the view/panes shown at the bottom, something like the "build output" one.
-
wrote on 29 Jul 2022, 12:11 last edited by
Yes I see it. thank you.
1/6