Macro expansion during JIT compilation? #1697
-
Hello, I'm wondering if JIT compilation can properly expand macros. I guess it is somehow treating macros since
which is used in the user code like:
But this leads to a JIT error that the QFunction was not defined:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 29 replies
-
I'll try to make a running example of this to reproduce and understand what's happening, but it will take me time to do so. |
Beta Was this translation helpful? Give feedback.
-
For CUDA JiT, the
I would guess you are getting a mixup with macro composition? |
Beta Was this translation helpful? Give feedback.
-
Ah I think I know the reason. All our CEED source files are protected with a preprocessor, which is defined by our static compiler. But I guess JIT compiler doesn't know that? Is there a way to provide a preprocessor to the JIT compiler? |
Beta Was this translation helpful? Give feedback.
Ah I think I know the reason. All our CEED source files are protected with a preprocessor, which is defined by our static compiler. But I guess JIT compiler doesn't know that? Is there a way to provide a preprocessor to the JIT compiler?