Oh I did not care about “single binary” (I thought it was “single source”). I think it should be tough because you need to link cuda libraries. I’m not sure that the initialization of cuda devices is such lazy.