[Engine] HIP build with STRATA_BUILD_TESTS=ON: pinned_shared_test, strata-load, strata-overlap and strata-concurrent fail to link (undefined strata::kernels::cpu::expert_layout())

Đang mở Phù hợp với người mới
#6,731 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, cpp
Lĩnh vực
build-system

Hướng nghiên cứu

Lỗi liên kết xuất phát từ strata_core (được build từ engine/src/core/pinned.cu) khi gọi strata::kernels::cpu::expert_layout() trong khi các target kiểm thử không liên kết strata_kernels_cpu. Bắt đầu từ các lệnh target_link_libraries trong engine/cmake/strata_gpu_engine.cmake quanh dòng 1307, và so sánh với commit 0435d6950, commit đã sửa strata_split_df2 theo cách tương tự. Hoàn thành khi pinned_shared_test, strata-load, strata-overlap và strata-concurrent liên kết được trong bản build HIP với STRATA_BUILD_TESTS=ON.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

A HIP build of current main with tests on fails to link four targets: pinned_shared_test, strata-load, strata-overlap and strata-concurrent. strata itself links, and with make -k everything else builds.

ld.lld: error: undefined symbol: strata::kernels::cpu::expert_layout()
>>> referenced by pinned.cu
>>>               pinned.cu.o:(strata::core::(anonymous namespace)::place_arena_numa_slices(void*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)) in archive libstrata_core.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

engine/src/core/pinned.cu (built into strata_core) calls strata::kernels::cpu::expert_layout(), and these targets link strata_core without strata_kernels_cpu, e.g. engine/cmake/strata_gpu_engine.cmake:1307: target_link_libraries(pinned_shared_test PRIVATE strata_core ${_strata_gpu_runtime_target}). It looks like the same kind of fix as 0435d6950 made for strata_split_df2.

Smallest steps or command that reproduce it
cmake -S engine -B build-hip -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DCMAKE_HIP_ARCHITECTURES=gfx1030 \
  -DCMAKE_HIP_COMPILER=/opt/rocm/core-10.0/lib/llvm/bin/clang++ -DSTRATA_BUILD_TESTS=ON -DSTRATA_NATIVE_EXPERTS=ON \
  -DSTRATA_OWN_CPU_QUANT=ON -DSTRATA_AMD_COMMUNITY_TUNING=ON
cmake --build build-hip -j 10 -- -k

The same four failures in three separate trees (main plus one small unrelated commit each).

Reproduction status

Reproduced locally

Strata version

main 94e1fc4fb (after the 0.2.20 release, engine 0.1.66), built from source with Unix Makefiles

Graphics card, memory and system

2x RX 6900 XT 16 GB (gfx1030) · 128 GB RAM · Ubuntu 26.04, ROCm 10.0, GCC host compiler

Model, size and settings

Not relevant (build only)

Logs

The link error above is the only error in the build log, repeated once per target.

Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Merge trung bình
17 ngày 21 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.