[PATCH] D38883: [CMake][OpenMP] Customize default offloading arch
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 13 11:39:12 PDT 2017
gtbercea added inline comments.
Comment at: lib/Driver/ToolChains/Cuda.h:90
> gtbercea wrote:
> > gtbercea wrote:
> > > I would also like to keep the spirit of this code if not in this exact form at least something that performs the same functionality.
> > @tra what's your opinion on this code? Should this stay, stay but modified to be more robust or taken out completely?
> There are currently no users for this. In general, I would rather not have magically-changing default GPU based on how broken your CUDA installation is. IMO it would be better to keep defaults static and fail if prerequisites are not met.
I would have thought that it is up to the compiler to select, as default, the lowest viable compute capability. This is what this code aims to do (whether it actually does that's a separate issue :) ).
More information about the cfe-commits