moved kernel calling logic from main.c to gcdCuda.c