We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1a18a5 commit 8e84608Copy full SHA for 8e84608
dpnp/tensor/CMakeLists.txt
@@ -29,6 +29,17 @@
29
30
find_package(Python COMPONENTS Development.Module)
31
32
+# Tensor-specific flags
33
+
34
+# dpctl doesn't add -fsycl globally
35
+# only to pybind11 module sources via add_sycl_to_target()
36
+string(REPLACE "-fsycl " "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
37
38
+# Use LLD linker (dpctl sets this at root level)
39
+if(UNIX)
40
+ add_link_options("-fuse-ld=lld")
41
+endif()
42
43
# Remove global coverage flags for tensor
44
# use link-time only approach like dpctl
45
if(DPNP_GENERATE_COVERAGE)
@@ -55,6 +66,7 @@ if(
55
66
endif()
56
67
57
68
69
+# Match dpctl warning flags
58
70
# Suppress unused parameter warnings
59
71
add_compile_options(-Wno-unused-parameter)
60
72
0 commit comments