/
pccc
/
pccc-mlir
Обзор
Документация
Войти
/
pccc
/
pccc-mlir
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
offload/test/mapping/alloc_fail.c
15 строк
636 B
obitotsky
fork mlir
19 июл 2026, 07:05
Верифицирован
19 июл 2026, 07:05
6422b87
Код
Авторство
О чём код?
// RUN: %libomptarget-compile-generic // RUN: %libomptarget-run-fail-generic 2>&1 \ // RUN: | %fcheck-generic // CHECK: omptarget message: explicit extension not allowed: host address specified is 0x{{.*}} (8 bytes), but device allocation maps to host at 0x{{.*}} (8 bytes) // CHECK: omptarget error: Call to getTargetPointer returned null pointer (device failure or illegal mapping). // CHECK: omptarget fatal error 1: failure of target construct while offloading is mandatory int main() { int arr[4] = {0, 1, 2, 3}; #pragma omp target data map(alloc : arr[0 : 2]) #pragma omp target data map(alloc : arr[1 : 2]) ; return 0; }