Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/test/mapping/lambda_mapping.cpp
// RUN: %libomptarget-compilexx-run-and-check-generic | // RUN: %libomptarget-compilexx-run-and-check-generic | ||||
// Error on the gpu that crashes the host | // Error on the gpu that crashes the host | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa | // UNSUPPORTED: amdgcn-amd-amdhsa | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa-oldDriver | |||||
// UNSUPPORTED: amdgcn-amd-amdhsa-LTO | // UNSUPPORTED: amdgcn-amd-amdhsa-LTO | ||||
#include <iostream> | #include <iostream> | ||||
template <typename LOOP_BODY> | template <typename LOOP_BODY> | ||||
inline void forall(int Begin, int End, LOOP_BODY LoopBody) { | inline void forall(int Begin, int End, LOOP_BODY LoopBody) { | ||||
#pragma omp target parallel for schedule(static) | #pragma omp target parallel for schedule(static) | ||||
for (int I = Begin; I < End; ++I) { | for (int I = Begin; I < End; ++I) { | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |