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.bat...@hotmail.com
Reporter: jdenny.o...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs