[llvm-bugs] [Bug 40536] New: undefined reference to __kmpc_push_target_tripcount
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 30 11:49:20 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40536
Bug ID: 40536
Summary: undefined reference to __kmpc_push_target_tripcount
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: a.bataev at hotmail.com
Reporter: jdenny.ornl at gmail.com
CC: llvm-bugs at lists.llvm.org
At r352640 and since r350571, some directives cause an undefined reference to
__kmpc_push_target_tripcount. For example:
```
$ cat test.c
int main() {
#pragma omp target teams
#pragma omp distribute
for (int i = 0; i < 8; ++i)
;
return 0;
}
$ clang -fopenmp test.c
/tmp/test-b61bc4.o: In function `main':
test.c:(.text+0x1c): undefined reference to `__kmpc_push_target_tripcount'
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
$ clang -fopenmp -lomptarget test.c
$ ./a.out
Libomptarget fatal error 1: default offloading policy must switched to
mandatory or disabled
$ clang -fopenmp -fopenmp-targets=nvptx64 test.c
$ ./a.out
$ echo $?
0
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190130/cf1159c7/attachment-0001.html>
More information about the llvm-bugs
mailing list