Added: cuda kernel and started converting the code to cuda from c.