Merge pull request #131 from shruti-ramesh/new-amp-functions

Minor correction for amp/test_common.h which was causing build failure
Small optimization for Reduce by performing the last calculation on GPU with single WG instead of computing on CPU