-
Another question relating to nasty CUDA headers 😅 I'm trying to wrap headers that make use of the
Now, given that these are pointers to half, we can use these APIs from Julia and pass a I know this is a bit of a long shot, but I'd like to avoid having to pre-patch the headers before processing them with Clang.jl (either manually, or with some |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That code snippet is dropped by C's preprocessor, so Clang's ASTUnit can't see it. As a result, we have no choice but to add C++ support in
As long as the header is a top-level independent header and can be parsed successfully(either being parsed standalone or using |
Beta Was this translation helpful? Give feedback.
-
Wait. Is https://stackoverflow.com/questions/73873870/is-the-half-a-native-c-type |
Beta Was this translation helpful? Give feedback.
That code snippet is dropped by C's preprocessor, so Clang's ASTUnit can't see it. As a result, we have no choice but to add C++ support in
Clang.Generators
, which needs a lot of refactoring work.As long as the header is a top-level independent header and can be parsed successfully(either being parsed standalone or using
-isystem
tricks), you can create a separate context with dedicated compilation flags.