[Openmp-dev] Support for the OpenMP Tools Interface in upstream

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Sat Aug 3 21:08:35 PDT 2019


Here's the error messages thrown by Clan trunk as of today:

[kitayama1 at juron1-adm ~]$ clang -fopenmp -fopenmp-targets=nvptx64
~/openmp_has_ompt.c
/p/home/jusers/kitayama1/juron/openmp_has_ompt.c:24:62: warning:
incompatible function pointer types initializing 'ompt_initialize_t' (aka
'int (*)(void (*(*)(const char *))(void), int, union ompt_data_t *)') with
an expression of type 'int (*)(ompt_function_lookup_t, ompt_data_t *)' (aka
'int (*)(void (*(*)(const char *))(void), union ompt_data_t *)')
[-Wincompatible-function-pointer-types]
  static ompt_start_tool_result_t ompt_start_tool_result = {
&ompt_initialize,

 ^~~~~~~~~~~~~~~~
/p/home/jusers/kitayama1/juron/openmp_has_ompt.c:27:10: error: returning
'ompt_start_tool_result_t' (aka 'struct ompt_start_tool_result_t') from a
function with incompatible result type 'ompt_start_tool_result_t *' (aka
'struct ompt_start_tool_result_t *'); take the address with &
  return ompt_start_tool_result;
         ^~~~~~~~~~~~~~~~~~~~~~
         &
1 warning and 1 error generated.

On Sun, Aug 4, 2019 at 1:01 PM Itaru Kitayama <itaru.kitayama at gmail.com>
wrote:

> Hi,
> According to Clang 10 documents, OMPT is supported on major architectures,
> but
> this piece of code attached does not build on POWER8.
>
> Can I take it it is fully supported?
>
> Itaru.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190804/bd40afb3/attachment.html>


More information about the Openmp-dev mailing list