Build device code in advance with static library #9620
-
Hello,
When targeting the NVIDIA backend, I want to set different I was trying the same thing with OpenSYCL and it call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I forgot to say that, to set the options for each kernel, I was using the cmake option |
Beta Was this translation helpful? Give feedback.
Hi @Luigi-Crisci,
Unfortunately, at the moment this functionality is not available neither for CUDA backend, nor for any other targets. The problem is in fundamental design of the toolchain: device compiler is invoked at link stage, when all device code from all translation units is visible. This was done to support
SYCL_EXTERNAL
.I'm aware of other requests of the same functionality, i.e. a way to schedule device compiler pass early: either at static lib level, or even at a translation unit level. Motivation is the same as yours: have ability to specify per-translation unit backend-specific compilation flags.
AFAIK, someone is already working on that, but can't provide any timelines. Tag…