Skip to content

GPU/Standalone: Compute checksum of dumped data - #15908

Open
fweig wants to merge 1 commit into
AliceO2Group:devfrom
fweig:dump-checksum
Open

fweig wants to merge 1 commit into
AliceO2Group:devfrom
fweig:dump-checksum

Conversation

@fweig

@fweig fweig commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Add an option to compute the checksum of dumped data on the fly when using --debug 6. Only prints the checksum instead of writing dumped data to file when this option is used.

Add an option to compute the checksum of dumped data on the fly when
using --debug 6. Only prints the checksum instead of writing dumped data
to file when this option is used.
@fweig
fweig requested a review from davidrohr as a code owner October 7, 2026 13:33
AddOption(allocDebugLevel, int32_t, 0, "allocDebug", 0, "Some debug output for memory allocations (without messing with normal debug level)")
AddOption(debugMask, uint32_t, (1 << 18) - 1, "debugMask", 0, "Mask for debug output dumps to file")
AddOption(debugLogSuffix, std::string, "", "debugSuffix", 0, "Suffix for debug log files with --debug 6")
AddOption(debugDumpChecksum, bool, false, "", 0, "Dump the only the checkusm instead of the full file with --debug 6")

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 fix the english in the description :)

message(FATAL_ERROR "Cannot build event display without ROOT")
endif()
find_package(Microsoft.GSL REQUIRED HINTS "$ENV{MS_GSL_ROOT}/share/cmake")
find_package(Boost 1.88 REQUIRED) # boost/hash2 (HashStreamBuf.h)

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.

The standalone benchmark should not be force to depend on boost. Isn't there a way to do this with modern C++?
Otherwise, the Boost dependency should be optional, and the functionality disabled if boost is not found.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not aware of anything in the C++ standard library that provides this. We could just include xxhash.h (single header library, C implementation) for the hashing algorithm and get rid of the boost dependency. But I'm not sure what the policy is on including external sources directly in O2.

This branch has not been deployed

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants