/
pccc
/
pccc-mlir
Обзор
Документация
Войти
/
pccc
/
pccc-mlir
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
offload/test/offloading/thread_limit.c
27 строк
707 B
obitotsky
fork mlir
19 июл 2026, 07:05
Верифицирован
19 июл 2026, 07:05
6422b87
Код
Авторство
О чём код?
// clang-format off // RUN: %libomptarget-compile-generic // RUN: env LIBOMPTARGET_INFO=16 \ // RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefix=DEFAULT // UNSUPPORTED: nvptx64-nvidia-cuda // UNSUPPORTED: nvptx64-nvidia-cuda-LTO // REQUIRES: gpu // XFAIL: intelgpu int main() { int n = 1 << 20; int th = 12; int te = n / th; // DEFAULT: 12 (MaxFlatWorkGroupSize: #pragma omp target #pragma omp teams loop num_teams(te), thread_limit(th) for (int i = 0; i < n; i++) { } // DEFAULT: 13 (MaxFlatWorkGroupSize: #pragma omp target #pragma omp teams distribute parallel for simd num_teams(te), thread_limit(th+1) simdlen(64) for(int i = 0; i < n; i++) { } return 0; }