set optional dependency for code to cudevice module