Introduction
Introduction Statistics Contact Development Disclaimer Help
tPPM->JPEG conversion in parallel - sphere - GPU-based 3D discrete element meth…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 4c584cfa1126b464c9df23690533d7e8758ee55d
parent 09fc71e0191316e333d5ca78f02eab0e524281e6
Author: Anders Damsgaard <[email protected]>
Date: Tue, 28 Aug 2012 09:47:14 +0200
PPM->JPEG conversion in parallel
Diffstat:
M raytracer/rt_GPU_init_pres.sh | 9 ++++-----
M raytracer/rt_GPU_pres.sh | 9 ++++-----
2 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/raytracer/rt_GPU_init_pres.sh b/raytracer/rt_GPU_init_pres.sh
t@@ -27,11 +27,10 @@ done
echo "# Converting PPM files to JPEG using ImageMagick in parallel"
for F in ../img_out/*.ppm
do
- (BASE=`basename $F`; convert $F $F.jpg > /dev/null)
- rm $F # Delete ppm file
+ (BASE=`basename $F`; convert $F $F.jpg > /dev/null &)
done
-#sleep 5
-#echo "# Removing temporary PPM files"
-#rm ../img_out/*.ppm
+sleep 5
+echo "# Removing temporary PPM files"
+rm ../img_out/*.ppm
diff --git a/raytracer/rt_GPU_pres.sh b/raytracer/rt_GPU_pres.sh
t@@ -27,11 +27,10 @@ done
echo "# Converting PPM files to JPEG using ImageMagick in parallel"
for F in ../img_out/*.ppm
do
- (BASE=`basename $F`; convert $F $F.jpg > /dev/null)
- rm $F # Delete ppm file
+ (BASE=`basename $F`; convert $F $F.jpg > /dev/null &)
done
-#sleep 5
-#echo "# Removing temporary PPM files"
-#rm ../img_out/*.ppm
+sleep 5
+echo "# Removing temporary PPM files"
+rm ../img_out/*.ppm
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.