Both cuda/src/labeling_oliveira_2010.cu and include/labels_solver.h define class UF in the global namespace. I'm seeing a crash where cuda/src/labeling_oliveira_2010.cu's Alloc appears to call include/labels_solver.h. Renaming Alloc inside cuda/src/labeling_oliveira_2010.cu fixes it. It is probably best to rename UF inside cuda/src/labeling_oliveira_2010.cu.
Both
cuda/src/labeling_oliveira_2010.cuandinclude/labels_solver.hdefineclass UFin the global namespace. I'm seeing a crash wherecuda/src/labeling_oliveira_2010.cu'sAllocappears to callinclude/labels_solver.h. RenamingAllocinsidecuda/src/labeling_oliveira_2010.cufixes it. It is probably best to rename UF insidecuda/src/labeling_oliveira_2010.cu.