fix small bug in main function
build gradient map using CL and MP