Solved some problems compiling without cuda