run.sh compares output of cpu files instead of gpu files with reference files

55 views
Skip to first unread message

Evan Lee

unread,
Apr 6, 2020, 2:37:51 AM4/6/20
to Parallel and Distributed Systems at SFU (431)
In run.sh it's checking the output of the cpu with the reference files

run_cmd_with_check diff out.pgm ../reference/out.pgm >> LOG 2>& 1
run_cmd_with_check diff out_yuv
.ppm ../reference/out_yuv.ppm >> LOG 2>& 1
run_cmd_with_check diff out_hsl
.ppm ../reference/out_hsl.ppm >> LOG 2>& 1

Shouldn't it be

run_cmd_with_check diff gpu_out_grayscale.pgm ../reference/out.pgm >> LOG 2>& 1
run_cmd_with_check diff gpu_out_yuv
.ppm ../reference/out_yuv.ppm >> LOG 2>& 1
run_cmd_with_check diff gpu_out_hsl
.ppm ../reference/out_hsl.ppm >> LOG 2>& 1


Andy Liu

unread,
Apr 6, 2020, 6:44:52 PM4/6/20
to Parallel and Distributed Systems at SFU (431)
Yea this makes sense. I changed my run.sh file to this and it seems my tests are failing now, but only HSL and YUV. I followed the same steps as the algorithm with conversion and such and the output image seems almost identical, so I'm wondering if its because of how GPU handle floating point differently than CPU?

Arrvindh Shriraman

unread,
Apr 6, 2020, 9:10:44 PM4/6/20
to Parallel and Distributed Systems at SFU (431)
Thanks; shell scripts and sample images have been updated.
You can obtain both the CPU and GPU generated images from same folder on the website.
Reply all
Reply to author
Forward
0 new messages