Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/onnx-runtime-ep-cpu/src/decode_affinity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,14 @@ mod tests {
#[test]
fn a_successful_affinity_call_is_never_reported_as_an_unsupported_target() {
let Some(allowed) = allowed_cpus() else {
// Reported, not silent. This test's only failure mode is a target
// that masks successfully while the flag says it cannot, so a run
// that never reached the call proves nothing -- and a bare `return`
// is indistinguishable in a log from a check that ran and passed.
eprintln!(
"skipping the masking-capability check: this target cannot report its allowed \
CPU set, so there is no mask to re-apply"
);
return;
};
// Re-applying the mask already in force: a no-op on success, and it
Expand Down
Loading