Added wrapper API for cuda functions.