SPIRV output of DPC++ #11878
-
I am trying to go through SYCL -> DPC++ -> SPIRV -> OpenCL. My problem is that produced SPIRV does not seem to be very portable. More specifically, it uses some intel extension that my OpenCL implementation does not support.
So my question is; is there a way to control SPIRV output such that for example some intel-specific extensions are disabled? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hi @Newsky7, Yeah, we have raised a bar quite a bit for underlying backends and that is something we should consider improving (tagging @bashbaug and @gmlueck for awareness). However, there should be a way for you to proceed forward. We have a hidden option in clang, which allows to pass arguments to the SPIR-V translator directly: |
Beta Was this translation helpful? Give feedback.
-
@bader, yeah it is still there. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
I think that presence of
optnone
attribute somewhere in a source code (maybe in our headers?) will generate this as well.itt instrumentation could be one of the reasons why
optnone
is appearing,-fno-sycl-instrument-device-code
is the flag to disable it.