cuda kernel now working