Skip to content
Closed
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
3 changes: 2 additions & 1 deletion kernelguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,8 @@ def detect_unsync_multistream(code: str | SubmissionFacts) -> list[dict]:
"high",
f"C++: {cpp_stream_creates} getStreamFromPool calls, no sync/wait primitives",
))
elif cpp_sync_calls * 2 < cpp_stream_creates:
elif cpp_sync_calls < cpp_stream_creates:
# Under-synchronized: fewer sync/wait calls than stream creates (C++)
candidates.append((
"medium",
f"C++: {cpp_stream_creates} getStreamFromPool calls, only {cpp_sync_calls} sync/wait calls",
Expand Down