-
Notifications
You must be signed in to change notification settings - Fork 46
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
AOMP 17.0.3 crashes at compile time with conjunction in if
clause
#601
Comments
@tom91136 Thanks for the bug report. Regarding your question about reduction, yes, it is available in the recent ROCm and AOMP releases. You can try it out using the clang compiler option -fopenmp-target-fast. Documentation about the Xteam-Reduction feature is at https://rocm.docs.amd.com/en/latest/reference/openmp/openmp.html#specialized-kernels |
Also reproducible on AOMP18:
|
I know it should not crash the compiler but I believe this is invalid code. You cannot put an if clause on target data. If you remove data, it almost works. You cannot send p[0] to device because it is a nullptr to nothing. The following test cases works. #include <stdio.h> bool a = true; a = true; |
Yes, the snippet is just something that is short to trigger the issue, it was reduced from a TeaLeaf kernel. |
fail in build of trunk llvm as well |
/home/rlieberm/rocm/trunk_1.0//bin/clang++ -O2 -fopenmp --offload-arch=gfx90a -D__OFFLOAD_ARCH_gfx90a__ issue-27.cpp -o issue-27 |
Dave fixed it, should be in 18.0-1 |
The following crashes the compiler:
Replacing the conjunction (i.e replace with
if(a)
) compiles successfully.@gregrodgers Probably not the right place but I remember chatting with you during SC22 about AOMP and its improved reduction performance, as shown in BabelStream, is that available in any of the release already?
The text was updated successfully, but these errors were encountered: