fixed build without cuda