[clang] [CUDA][HIP] Fix std::is_invocable (PR #70369)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 26 15:08:42 PDT 2023
================
@@ -283,12 +283,18 @@ set(cuda_wrapper_files
cuda_wrappers/cmath
cuda_wrappers/complex
cuda_wrappers/new
+ cuda_wrappers/type_traits
)
set(cuda_wrapper_bits_files
cuda_wrappers/bits/shared_ptr_base.h
cuda_wrappers/bits/basic_string.h
cuda_wrappers/bits/basic_string.tcc
+ cuda_wrappers/bits/move.h
+)
+
+set(cuda_wrapper_utility_files
+ cuda_wrappers/__utility/swap.h
----------------
Artem-B wrote:
If we need to wrap them because they may be included before `<type_traits>`, then we must apply the same approach to all headers transitively included by `<type_traits>`. Otherwise we'd risk including them with/without `force_cuda_host_device` applied to them depending on whether they get included before or after type_traits.
https://github.com/llvm/llvm-project/pull/70369
More information about the cfe-commits
mailing list