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: |
Replies: 3 comments 34 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. |
|
For CUDA JiT, the I would guess you are getting a mixup with macro composition? |
|
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? |
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?