Align the build flags of all SYCL modules with dpnp.tensor #3198
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.42) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 349 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.350
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3198"
general
weight: 0.35
vlad-perevezentsev
This PR aligns the compiler and linker flags of all dpnp SYCL modules with those
dpnp.tensorinherited from dpctl. It is stacked on #3163: withdpnp_backend_cremoved, every SYCL target is a pybind11 module indpnp/libtensor.Until now, only
dpnp/tensoranddpnp/libtensor/sourceincludedtensor_build_flags.cmake, and the oneMKL extensions used a separate set of options:-fsycl, lld,-Wno-unused-parameter, Debug-gwith device-g0) move to the top-levelCMakeLists.txt, so every target gets them.tensor_build_flags.cmakekeeps only the coverage strip of the tensor directories; coverage is otherwise unchanged and doesn't overlap #3193.libtensor/sourceincluded, is now built bybuild_dpnp_pybind11_ext. It compiles the whole module with-fno-fast-mathinstead of-fno-approx-func -fno-finite-math-only, and adds the hardeningDPNP_LDFLAGSandDPNP_TENSOR_OFFLOAD_COMPRESS, which the extensions lacked.-fno-fast-mathon the whole module, not on a list of sources as in dpctl: the sources left out of that list have no floating-point math worth relaxing. Both groups of sources of a libtensor module now share the floating-point flags, so an inline function both instantiate no longer depends on which copy the linker keeps. The dpnp kernels (sinc,i0,interpolate, the statistics functions, ...) and the extensions now keep signed zeros and don't reassociate.The flags also caused compiler warnings in Debug and Coverage builds, which are fixed:
-Xsycl-target-frontend=spir64 -g0was unused for the Cython modules and thesimplify_iteration_spacestatic library, which no longer get-fsycl; it now goes only to the SYCL modules.-g1was ignored forspir64in every SYCL source of a coverage build (also on master);CMAKE_CXX_FLAGS_COVERAGEpasses it to the host only.-fno-sycl-use-footerwas unused for the static library, which now takes the plain coverage flags.Checked locally: