[PATCH] D21867: [CUDA] Add utility functions for dealing with CUDA versions / architectures.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 29 15:58:59 PDT 2016
jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added a subscriber: cfe-commits.
Currently our handling of CUDA architectures is scattered all around
clang. This patch centralizes it.
A key advantage of this centralization is that you can now write a C++
switch on e.g. CudaArch and get a compile error if you don't handle one
of the enum values.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 18153 bytes
Desc: not available
More information about the cfe-commits