tra requested changes to this revision.
tra added a comment.
This revision now requires changes to proceed.

I think we're missing few more changes here:

- The driver needs to enable ptx75 when it constructs cc1 command line in 
clang/lib/Driver/ToolChains/Cuda.cpp
- We also need to handle PTX75 in clang/include/clang/Basic/BuiltinsNVPTX.def

In D113249#3110954 <https://reviews.llvm.org/D113249#3110954>, @Hahnfeld wrote:

> I'm not sure if it's actually correct to advertise full support for CUDA 
> 11.5, but I didn't look into exact changes since 11.4

Technically we never support all the features supported by NVCC, so for clang 
it essentially means "works well enough". I.e. no known regressions vs previous 
clang and CUDA versions. Usually it boils down to being able to compile CUDA 
headers.
"Partially supported" happens when we can compile code compileable with the 
older CUDA versions, but are missing something critical introduced by the new 
CUDA version. E.g. a new GPU variant. Or new compiler builtins/functions  that 
a user may expect from the new CUDA version. Or some CUDA headers may use new 
instructions in inline asm that would not compile with ptxas unless we generate 
PTX output using the new PTX version.

AFAICT from the CUDA-11.5 release notes, it didn't introduce anything 
particularly interesting. We've been using clang with CUDA-11.5 for a few weeks 
w/o any issues, so I think it's fine to stamp it as supported, once the missing 
bits are in place.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113249/new/

https://reviews.llvm.org/D113249

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to