Skip to content

[PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops#16666

Open
ktf wants to merge 1 commit into
AliceO2Group:masterfrom
ktf:pr16666
Open

[PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops#16666
ktf wants to merge 1 commit into
AliceO2Group:masterfrom
ktf:pr16666

Conversation

@ktf

@ktf ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member

In run2And3Prongs the negative-track index slice was rebuilt inside the positive-track loop, and the D* soft-pion slices inside the (pos,neg) pair body, though all three depend only on the collision. Hoist the neg-track slice to collision scope, and lazily materialize the soft-pion slices once per collision via std::optional. Pure loop-invariant code motion.

@github-actions github-actions Bot added the pwghf PWG-HF label Jun 15, 2026
@github-actions github-actions Bot changed the title Hoist slice creation outside the inner loop [PWGHF] Hoist slice creation outside the inner loop Jun 15, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 8 warnings, 🔕 7 disabled

@vkucera vkucera left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the file name in the PR title to specify the scope of the changes.

@ktf ktf changed the title [PWGHF] Hoist slice creation outside the inner loop [PWGHF] Cut mixed-event pairing CPU ~35% by hoisting the per-window slice Jun 15, 2026
@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

@vkucera improved. Actual validation of the code done at https://alimonitor.cern.ch/hyperloop/view-wagon/57243/test-statistics

@vkucera

vkucera commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

@vkucera improved. Actual validation of the code done at https://alimonitor.cern.ch/hyperloop/view-wagon/57243/test-statistics

I think you confused it with another PR.

@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

yes, indeed.

@ktf

ktf commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

The description was meant for #16663

@ktf ktf changed the title [PWGHF] Cut mixed-event pairing CPU ~35% by hoisting the per-window slice [PWGHF] TrackIndexSkimCreator: hoist collision-invariant slices out of the 2/3-prong loops Jun 15, 2026
@ktf ktf requested a review from vkucera June 15, 2026 19:34
@alibuild

alibuild commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 0c38cad at 2026-06-21 07:28:

## sw/BUILD/O2Physics-latest/log
2026-06-21T07:25:13.796+0200 [4907:140545235295872] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.900+0200 [4907:140545235295872] [executioncontext.cpp:739] [ERROR] Failed to download output blob 9f5f957da0868badc8ea475fe1432855cf9776b2ffcf40a31785833d40f338aa: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4772:140072476335744] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.901+0200 [4772:140072476335744] [executioncontext.cpp:739] [ERROR] Failed to download output blob 378816ccc3ea9b8b2373499dfa7db26c578bfebf51ea8c4f3f9325280eee5d80: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4804:140111441030784] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.902+0200 [4804:140111441030784] [executioncontext.cpp:739] [ERROR] Failed to download output blob c5e96404d2c462dfab2414cfb6d06973b6734c28626dd9298be52c9c6499d772: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4989:140551273373312] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "BatchReadBlobs()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.901+0200 [4989:140551273373312] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:16.902+0200 [4989:140551273373312] [executioncontext.cpp:739] [ERROR] Failed to download output blob d4d28e053d15cbdac93b88022f60307237055e0861365a1b5c84ee7f31c2cdfa: 14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused
2026-06-21T07:25:13.796+0200 [4726:140644835024512] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.903+0200 [4726:140644835024512] [executioncontext.cpp:739] [ERROR] Failed to download output blob 2b498ad6b4eff9a0df15307165b34e20e74d4108faf15cb69b23c089e8e825a6: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4599:140614681882240] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.904+0200 [4599:140614681882240] [executioncontext.cpp:739] [ERROR] Failed to download output blob 6bbc5ab46916ae58ab3e886ef2a45e2259e07abfdf843bf8e730332fdc82334a: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4598:139848777780864] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.905+0200 [4598:139848777780864] [executioncontext.cpp:739] [ERROR] Failed to download output blob 05c940cadc624d9e903a3aaafc6720a1d4aece033b52bde92ce0e84d1cf7e23c: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4224:140026661727872] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.905+0200 [4224:140026661727872] [executioncontext.cpp:739] [ERROR] Failed to download output blob b551eec6bc4fce8ebe6efa9db216defd8a1adf183f3f9355a161298c02315d90: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4421:140083945393792] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.906+0200 [4421:140083945393792] [executioncontext.cpp:739] [ERROR] Failed to download output blob b27231b9e858f915be2faa32db17811627feef72bcfda46c6268a306e122c111: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4747:139689847062144] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.905+0200 [4747:139689847062144] [executioncontext.cpp:739] [ERROR] Failed to download output blob 4dd414ce3fce8c500d3eab1458b5a9ebc0848ea4e1ccb97df08f1a84bd3febbf: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4597:139960031714944] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.905+0200 [4597:139960031714944] [executioncontext.cpp:739] [ERROR] Failed to download output blob 04f0ec4b451057ad28f5541d7e1ac51d55dcc2451e0a895b3fc277f2a4e8c468: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4485:140208523505280] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.911+0200 [4485:140208523505280] [executioncontext.cpp:739] [ERROR] Failed to download output blob 5a97594534fc17bd34d2a0851c95c885be616100d70999ec5f17d61ce62f7108: 14: Socket closed
2026-06-21T07:25:13.796+0200 [4663:140168772079232] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ByteStream.Read()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:16.909+0200 [4663:140168772079232] [executioncontext.cpp:739] [ERROR] Failed to download output blob 75f2a88b7f561231b6d42a187bc1f22c838a7ad15045e53b313be4e90624bd63: 14: Socket closed
2026-06-21T07:25:13.796+0200 [5096:140097783795328] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8980: recvmsg:Connection reset by peer]
2026-06-21T07:25:13.797+0200 [5096:140097783795328] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8980: recvmsg:Connection reset by peer
2026-06-21T07:26:49.504+0200 [5096:140097783795328] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv6:%5B::1%5D:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:13.796+0200 [5124:139686737211008] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8980: recvmsg:Connection reset by peer]
2026-06-21T07:25:13.797+0200 [5124:139686737211008] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8980: recvmsg:Connection reset by peer
2026-06-21T07:26:51.053+0200 [5124:139686737211008] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:13.796+0200 [5053:139887857020544] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:13.796+0200 [5053:139887857020544] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: Socket closed
2026-06-21T07:26:51.828+0200 [5053:139887857020544] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:13.796+0200 [5010:140095618674304] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:13.796+0200 [5010:140095618674304] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: Socket closed
2026-06-21T07:26:57.399+0200 [5010:140095618674304] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:15.134+0200 [5176:140136849546880] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:15.134+0200 [5176:140136849546880] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused
2026-06-21T07:27:18.155+0200 [5176:140136849546880] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv6:%5B::1%5D:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:13.796+0200 [5054:140530888953472] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:13.796+0200 [5054:140530888953472] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: Socket closed
2026-06-21T07:27:28.530+0200 [5054:140530888953472] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
2026-06-21T07:25:13.796+0200 [4988:140290768752256] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "ActionCache.GetActionResult()", last gRPC error was [14: Socket closed]
2026-06-21T07:25:13.796+0200 [4988:140290768752256] [executioncontext.cpp:544] [ERROR] Error while querying action cache at "http://localhost:8980": 14: Socket closed
2026-06-21T07:28:18.832+0200 [4988:140290768752256] [buildboxcommon_grpcretrier.cpp:177] [ERROR] Retry limit (0) exceeded for "FindMissingBlobs()", last gRPC error was [14: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8980: Failed to connect to remote host: Connection refused]
[0 more errors; see full log]

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

3 participants