Native runtime and installer: load the HIP runtime only from System32 or an official SDK by full path
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/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ệ
- cpp
- Lĩnh vực
- desktop-dev, security
Hướng nghiên cứu
Start with init in clean/runtime/device.cpp (around lines 301-335), the single HIP loader that clean/runtime/runtime.cpp (around lines 698-706) calls, then compare it against the probe in clean/installer/src/wg_core/checks.cpp (around lines 151-189, 210-213, 284-300). Read clean/runner/sdk.py from PR #239 for the official-SDK resolution rule to mirror, and note the Windows loader flags available for System32-only and full-path loads. Adding the no-GPU tests (stand-in DLL on PATH, a HIP_PATH folder outside the official root, an accepted official install) and the BUILDING.md HIP SDK sentence is done when no bare-name load remains in either component and the tests prove it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
PR #239 makes the Python tools and build scripts use only an official AMD HIP SDK (clean/runner/sdk.py). The native
runtime and the installer still have their own HIP runtime lookup, which does not follow that rule:
clean/runtime/device.cpp(init, around lines 301-335) on Windows tries, in order: an explicitrocm_dir(any
folder, or an exact.dllthe installer selected),amdhip64_7.dllfrom System32, then the same bare name through the
standard DLL search path (which includesPATH), then the newest folder underC:\Program Files\AMD\ROCm, then
%HIP_PATH%\bin. On Linux it triesrocm_dir/lib/libamdhip64.so, then the bare namelibamdhip64.so(the loader's
search path).clean/runtime/runtime.cpp(around lines 698-706) reaches this loader.clean/installer/src/wg_core/checks.cpp(around lines 151-189, 210-213, 284-300) probesPATHandHIP_PATH
candidates on its own.
Example: when System32 has no amdhip64_7.dll, a DLL of that name found through PATH is loaded, or HIP_PATH
pointing at a non-official SDK copy is used. The installer probe can select such a copy as well.
These rules predate #239; changing them changes product behaviour, so they were kept out of that PR.
Proposed rule (runtime and installer the same)
- System32 first: the AMD driver's own
amdhip64_7.dll(LOAD_LIBRARY_SEARCH_SYSTEM32). - Then an official HIP SDK install by full path:
C:\Program Files\AMD\ROCm\<version>\bin\amdhip64_7.dll, newest
compatible version first (Linux:/opt/rocm-<version>/libor/opt/rocm/lib, by full path). - Never a bare-name search through
PATHor the loader's default search path. HIP_PATHonly when it resolves to one of the official installs of step 2 (otherwise ignored, with a note in the log
that names it by id only, not by path).- An explicit
rocm_diror installer-selected DLL: only when it is System32's copy or inside an official install
(tests that need another one get an explicit, logged override). - The installer probe (
checks.cpp) uses exactly these rules, so it never selects a runtime the runtime would refuse.
Done when
device.cpp,runtime.cppandchecks.cppfollow the rule above; no bare-name load remains.- Tests (no GPU): with a stand-in DLL on
PATHand in aHIP_PATHfolder outside the official root, neither is
loaded or selected; System32 and the official SDK are;HIP_PATHpointing at an official install is accepted. BUILDING.md(HIP SDK paragraph) states that the native runtime and installer follow the same rule.
- Ngôn ngữ chính
- C++
- Star
- 12
- Fork
- 2
- Merge trung bình
- 3 giờ 10 phút
- Pull request đã merge (30 ngày)
- 171
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phantoslayer21/wronggpu
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
phantoslayer21/wronggpu#275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
phantoslayer21/wronggpu#274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
phantoslayer21/wronggpu#241 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
phantoslayer21/wronggpu#234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Launcher tests: "an older record: update available" fakes a version newer than the test buildĐang mởbug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
phantoslayer21/wronggpu#233 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của phantoslayer21/wronggpu
Issue tương tự
-
ai_p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ClickHouse/ClickHouse#132519 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: VST3 getMidiControllerAssignment reads past midiControllerToParameter for program changeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
juce-framework/JUCE#1810 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
petercorke/robotics-toolbox-python#952 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NatronRenderer: a Python error in the script (-t / project script) doesn't change the exit statusĐang mởfunc:engine type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NatronGitHub/Natron#1276 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày