forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GPU] Update cmake scripts for impls
Signed-off-by: Vladimir Paramuzov <[email protected]>
- Loading branch information
1 parent
3b59608
commit 74a1e02
Showing
7 changed files
with
159 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/plugins/intel_gpu/src/graph/impls/common/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set(TARGET_NAME "openvino_intel_gpu_common_obj") | ||
|
||
ov_gpu_add_backend_target( | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set(TARGET_NAME "openvino_intel_gpu_cpu_obj") | ||
|
||
ov_gpu_add_backend_target( | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
LINK_LIBRARIES | ||
PRIVATE | ||
openvino::reference | ||
) | ||
|
||
if(ENABLE_SSE42) | ||
ov_sse42_optimization_flags(sse4_2_flags) | ||
set_source_files_properties(detection_output.cpp PROPERTIES | ||
COMPILE_FLAGS "${sse4_2_flags}" | ||
COMPILE_DEFINITIONS "HAVE_SSE") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set(TARGET_NAME "openvino_intel_gpu_ocl_obj") | ||
|
||
ov_gpu_add_backend_target( | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
17 changes: 17 additions & 0 deletions
17
src/plugins/intel_gpu/src/graph/impls/onednn/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
if (NOT ENABLE_ONEDNN_FOR_GPU) | ||
return() | ||
endif() | ||
|
||
set(TARGET_NAME "openvino_intel_gpu_onednn_obj") | ||
|
||
ov_gpu_add_backend_target( | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
LINK_LIBRARIES | ||
PUBLIC | ||
onednn_gpu_tgt | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
if(NOT OV_COMPILER_IS_INTEL_LLVM) | ||
return() | ||
endif() | ||
|
||
set(TARGET_NAME "openvino_intel_gpu_sycl_obj") | ||
|
||
ov_gpu_add_backend_target( | ||
NAME ${TARGET_NAME} | ||
ROOT ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_sycl_to_target(TARGET ${TARGET_NAME}) |