I’m a novice in Cuda. It was asked to me to develop a small code C and a small code in Cuda and to compare their time of execution.
I use “Transpose” project found in SDK and work on it to develop my function which consists in putting in zero any negative value and in keeping the value if this one is postive.
I give you my function C, my function Cuda, and the functionof comparison in accompanying documents (pdf format because I can’t attach a “.cu” file).
I have a problem with the function CUT_CHECK_ERROR (). As soon as size_x > 17 or size_y > 33, my TEST doesn’t pass anymore.