Commit 4d2d8e9
authored
[GPU] Fix CM kernels not compiled in default build (openvinotoolkit#36528)
### Details:
- openvinotoolkit#36431 made
`OV_GPU_WITH_CM` depend on the `ENABLE_CM_FOR_GPU` macro being defined
at compile time, but added that compile definition only to the
`openvino_intel_gpu_ocl_obj` target. The registry sources
(registry/*_impls.cpp) compile into the main `openvino_intel_gpu_graph`
target, which never received the definition
- Define `ENABLE_CM_FOR_GPU` at the graph module directory scope
(`src/graph/CMakeLists.txt`) via `add_compile_definitions`, so it
reaches both the backend obj targets and the main graph target uniformly1 parent 244eb6c commit 4d2d8e9
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
| |||
0 commit comments