Now the library can be compiled without cuda.