ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
https://rocm.docs.amd.com/projects/HIPIFY/en/latest/
MIT License
524 stars 75 forks source link

[HIPIFY][clang][CUDA][Windows] All tests started to fail on the trunk LLVM #523

Closed emankov closed 2 years ago

emankov commented 2 years ago

Test failures occur only on Windows.

In file included from <built-in>:1:
In file included from D:/work/LLVM/trunk-for-submit/llvm-64-release-vs2022-17.2.2/dist/lib/clang/15.0.0\include\__clang_cuda_runtime_wrapper.h:473:
D:/work/LLVM/trunk-for-submit/llvm-64-release-vs2022-17.2.2/dist/lib/clang/15.0.0\include\__clang_cuda_intrinsics.h(517,19): error GC871EEFB: unknown type name 'uint32_t'; did you mean 'cuuint32_t'?
__device__ inline uint32_t __nvvm_get_smem_pointer(void *__ptr) {
                  ^
1>C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include\cuda.h:57:26: note: 'cuuint32_t' declared here
1>typedef unsigned __int32 cuuint32_t;
1>                         ^
1>1 error generated when compiling for host.
1>Running HIPIFY regression tests
1>===============================================================
1>CUDA 11.6 - will be used for testing
1>LLVM 15.0.0git - will be used for testing
1>AMD64 - Platform architecture
1>Windows 10 - Platform OS
1>64 - hipify-clang binary bitness
1>64 - python 3.10.4 binary bitness
1>===============================================================
...
1>  Failed: 77
emankov commented 2 years ago

Fixed with c23147106f7e, Review: [D122897][clang][CUDA][Windows] Fix compilation error on Windows with uint32_t __nvvm_get_smem_pointer