Skip to content
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

current libomptarget test failures on x86-64 Linux #48594

Closed
jdenny-ornl opened this issue Feb 18, 2021 · 5 comments
Closed

current libomptarget test failures on x86-64 Linux #48594

jdenny-ornl opened this issue Feb 18, 2021 · 5 comments
Labels
bugzilla Issues migrated from bugzilla openmp

Comments

@jdenny-ornl
Copy link
Collaborator

Bugzilla Link 49250
Resolution FIXED
Resolved on Sep 27, 2021 10:25
Version unspecified
OS Linux
CC @jdoerfert,@slacka,@tianshilei1992

Extended Description

I see 4 consistent libomptarget test failures on main at 3c4c205.

I am running Ubuntu 18.04.5 LTS on x86_64 with an NVIDIA GPU. I am building with -DLLVM_ENABLE_PROJECTS=clang and -DLLVM_ENABLE_RUNTIMES=openmp. Compiler is clang 10 (for building clang and llvm). CUDA is 11.2.

Below are some relevant excerpts from lit's output. Please let me know if you need more information. It's possible some of this is just my configuration, so let me know if you cannot reproduce.

Failed Tests (4):
  libomptarget :: mapping/lambda_mapping.cpp
  libomptarget :: offloading/bug49021.cpp
  libomptarget :: offloading/memory_manager.cpp
  libomptarget :: offloading/parallel_offloading_map.cpp


FAIL: libomptarget :: offloading/memory_manager.cpp

$ ":" "RUN: at line 4"

memory_manager.cpp.tmp-x86_64-pc-linux-gnu: /home/jdenny/ornl/llvm/llvm-mono-git/openmp/libomptarget/test/offloading/memory_manager.cpp:37: int main(int, char **): Assertion `buffer[j] == i' failed.


FAIL: libomptarget :: offloading/parallel_offloading_map.cpp

$ ":" "RUN: at line 4"

parallel_offloading_map.cpp.tmp-x86_64-pc-linux-gnu: /home/jdenny/ornl/llvm/llvm-mono-git/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp:35: int main(int, char **): Assertion `array[i] == ref' failed.


FAIL: libomptarget :: mapping/lambda_mapping.cpp

$ ":" "RUN: at line 5"

ptxas /tmp/lambda_mapping-081ea9.s, line 828; error   : Not a name of any known instruction: 'activemask'
ptxas fatal   : Ptx assembly aborted due to errors
clang-13: error: ptxas command failed with exit code 255 (use -v to see invocation)


FAIL: libomptarget :: offloading/bug49021.cpp

$ ":" "RUN: at line 5"

ptxas /tmp/bug49021-57542e.s, line 482; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 1032; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 1361; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 1379; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 1391; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 1987; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 2608; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 2937; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 2956; error   : Not a name of any known instruction: 'activemask'
ptxas /tmp/bug49021-57542e.s, line 2968; error   : Not a name of any known instruction: 'activemask'
ptxas fatal   : Ptx assembly aborted due to errors
clang-13: error: ptxas command failed with exit code 255 (use -v to see invocation)

Johannes: These are 4 of the test failures we discussed on Monday. The 5th stopped failing after another pull.

@jdenny-ornl
Copy link
Collaborator Author

I looked into the ptxas failure. Because of my PATH, it actually picked up ptxas for CUDA 9.1, but there's a recent cmake change that's converting 91 to 9100 instead of 9010, so code is being compiled incorrectly. I'm working on a cmake fix.

@jdenny-ornl
Copy link
Collaborator Author

D97012 addresses the ptxas failures.

@slacka
Copy link
Mannequin

slacka mannequin commented Feb 25, 2021

On openSUSE Tumbleweed I see Failed Tests (2):
libomptarget :: offloading/memory_manager.cpp
libomptarget :: offloading/parallel_offloading_map.cpp

With the exact same Assertion failures as Joel.

The same system passes these tests under Ubuntu 20.4. Shilei suggested this could be related to Bug 48330 or elf64 using libffi. Hope this info helps.

@slacka
Copy link
Mannequin

slacka mannequin commented May 1, 2021

libomptarget :: offloading/memory_manager.cpp - Bug 49532
libomptarget :: offloading/parallel_offloading_map.cpp - Bug 49533

@slacka
Copy link
Mannequin

slacka mannequin commented Sep 27, 2021

The parallel_offloading_map.cpp, memory_manager.cpp, and offloading/bug49021.cpp tests were disabled for x86_64-pc-linux-gnu:
ad0f6e1

mapping/lambda_mapping.cpp with:
ef8b3b5

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla openmp
Projects
None yet
Development

No branches or pull requests

1 participant