$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
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
Is this a priority/blocking bug?
ETA
2026.2