Skip to content

Noisy GEMM / Pearl#178

Closed
luminousmining wants to merge 9 commits into
mainfrom
feat/pearl
Closed

Noisy GEMM / Pearl#178
luminousmining wants to merge 9 commits into
mainfrom
feat/pearl

Conversation

@luminousmining

Copy link
Copy Markdown
Owner

No description provided.

@luminousmining luminousmining self-assigned this Jun 13, 2026
luminousmining and others added 6 commits June 13, 2026 07:48
blake3.c is compiled into the standalone blake3_ref static library, whose
only include directory is its own cpu/ folder:

  target_include_directories(blake3_ref PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

The project root (sources/) is not on that target's include path, so the
"use cast.hpp" change fails to build:

  blake3.c:5:10: fatal error: 'common/cast.hpp' file not found

cast.hpp also transitively pulls in <chrono> and <CL/opencl.hpp> (under
AMD_ENABLE) — dependencies the canonical BLAKE3 reference library should
not carry.

The file is already built as C++ (project(blake3_ref CXX)), so the castU8()
helper buys nothing here. Revert to plain static_cast<uint8_t>, matching the
code that preceded the "use cast.hpp" commit. No new dependency, no CMake
include-path change.

Verified: blake3.c compiles clean as C++ with only cpu/ on the include path
(g++ -std=c++17 -c blake3.c -I.).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reverting castU8 -> static_cast<uint8_t> pushed the CHUNK_START/CHUNK_END
argument line to 131 columns. Wrap it to stay within the project's 120-col
limit, even though blake3.c (.c) is outside the clang-format target's
*.cpp/*.hpp glob.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(blake3): drop cast.hpp from vendored blake3.c (#181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants