[llvm-bugs] [Bug 49150] New: [OpenMP 5.0] Undefined reference error with task reduction in target region

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 11 13:45:02 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49150

            Bug ID: 49150
           Summary: [OpenMP 5.0] Undefined reference error with task
                    reduction in target region
           Product: OpenMP
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: jhdavis at udel.edu
                CC: llvm-bugs at lists.llvm.org

Created attachment 24516
  --> https://bugs.llvm.org/attachment.cgi?id=24516&action=edit
Source of reproducer for the OpenMP task reduction on target bug.

Overview: Clang 12 crashes at compile with undefined reference errors for a
program using a target parallel construct with reduction(task...) and a task
clause with in_reduction within.


Steps to reproduce:

1. Compile attached reproducer with `clang -lm -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda task_reduction_device_bug.c`


Actual results:

`nvlink error   : Undefined reference to '__kmpc_taskred_modifier_init' in
'/tmp/task_reduction_device_bug-fd3d8f.cubin'
nvlink error   : Undefined reference to '__kmpc_task_reduction_modifier_fini'
in '/tmp/task_reduction_device_bug-fd3d8f.cubin'
nvlink error   : Undefined reference to '__kmpc_task_reduction_get_th_data' in
'/tmp/task_reduction_device_bug-fd3d8f.cubin'
clang-12: error: nvlink command failed with exit code 255 (use -v to see
invocation)
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
d36812892c16b551f058774babbc8727737f80cd)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /sw/summit/ums/stf010/llvm/12.0.0-20210125/bin
clang-12: note: diagnostic msg: Error generating preprocessed source(s).`


Expected results:

Successful compilation.


Build & Hardware:

clang version 12.0.0 (https://github.com/llvm/llvm-project.git
d36812892c16b551f058774babbc8727737f80cd)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /sw/summit/ums/stf010/llvm/12.0.0-20210125/bin


Additional information:

Reproducer source attached.

-- 
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/20210211/91202dae/attachment.html>


More information about the llvm-bugs mailing list