cuda mode added