-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: amd_math_functions.h is missing many math functions like max
?
#82
Comments
Hi, I encountered this error too and gathered some extra information: So you can launch with
It outputs command, which after removing quotes looks like this:
Which fails with:
Now a small trick, replace Environment: $ hipcc --version
HIP version: 6.1.40092-
clang version 18.1.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang++.cfg
$ clang --version
clang version 18.1.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
$ strace -e trace=open,openat,access,stat,statx,lstat -f clang -v 2>&1
| grep hipVersion
openat(AT_FDCWD, "/usr/lib/llvm/18/bin/.hipVersion", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/llvm/18/bin/.hipVersion", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/llvm/18/bin/../../../../lib/clang/18/bin/.hipVersion", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) So maybe possible reason (or part of) is that
Adding |
That's a separate issue. If you add So no in-process compilation means that hipcc is called, which fixes both of issues. But issues are separate. |
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
fix-comgr-default-flags.patch supersedes HIPIncludePath-not-needed.patch enforce-oop-compiler.patch calls external hipcc to avoid issues (e.g. name_expression_map_test ), which means hipcc should be in RDEPEND. Bug: ROCm/clr#82 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
@littlewu2508 Has your issue been resolved? If so, please close the ticket. Thanks! |
Problem Description
When running test suite for comgr, 4 tests failed:
Take
compile_hip_to_relocatable
as example:Similar issue is found in iree-org/iree#16899
It seems that the missing
max
function inamd_math_functions.h
causes this. d7d0f11 removes many lines of math functions inamd_math_functions.h
. According to the commit message those functions are in hiprtc headers, but I cannot find them.I add those functions back to
amd_math_functions.h
and 3 tests got passed.compile_source_to_executable
still failed with no clear reason, the compilation is successful:Operating System
Gentoo Prefix on upstream Linux kernel 6.6.13
CPU
AMD Ryzen 7 7700
GPU
AMD Radeon RX 7900 XT
ROCm Version
ROCm 6.1.0
ROCm Component
clr
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: