I have done a computation using CUDA and it takes around 12 minutes to complete the whole computation.
I am using this command in a .sh
file to run the program:
CUDA_VISIBLE_DEVICES=0 ./a1.out | tee -a output.txt &
CUDA_VISIBLE_DEVICES=1 ./a2.out | tee -a output.txt &
CUDA_VISIBLE_DEVICES=2 ./a3.out | tee -a output.txt &
CUDA_VISIBLE_DEVICES=3 ./a4.out | tee -a output.txt &
CUDA_VISIBLE_DEVICES=4 ./a5.out | tee -a output.txt &
CUDA_VISIBLE_DEVICES=5 ./a6.out | tee -a output.txt &
Now I want to show a progress bar for this process in the command line window for user. Is there is any way to do it?
wc
to get the line count fromoutput.txt
. – muru Jul 12 '17 at 05:02