add origin cuda code