Skip to content

[OpenMP] Macro + Printf + do_while : "PluginInterface" error #144

Description

@TApplencourt

Point of Contact

Thomas

Contact Details

No response

Vendor/ALCF/other tickets/IDs

CMPLRLLVM-75813

Reproducer Path

source/reproducers/openmp/printf_macro

Status

Open

Details

$cat icpx_omp_pragma_in_dowhile.cpp
#include <cstdio>

template <class F> static void run_in_lambda(F&& f) { f(); }

#define RUN(stmt) do {           \
  _Pragma("omp target")          \
  { stmt; }                      \
} while (0)

int main() {
  run_in_lambda([]() {
    RUN(printf("hello\n"));
  });
  return 0;
}
$icpx -std=c++20 -fiopenmp -fopenmp-targets=spir64 icpx_omp_pragma_in_dowhile.cpp
$./a.out
"PluginInterface" error: Failure to init kernel: "unknown or internal error" Failed to get kernel device address

Is this a priority/blocking bug?

  • Priority

ETA

2026.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions