Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/test/offloading/bug49779.cpp
// RUN: %libomptarget-compilexx-generic && \ | // RUN: %libomptarget-compilexx-generic && \ | ||||
// RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic | // RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa | // UNSUPPORTED: amdgcn-amd-amdhsa | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa-oldDriver | |||||
// UNSUPPORTED: amdgcn-amd-amdhsa-LTO | // UNSUPPORTED: amdgcn-amd-amdhsa-LTO | ||||
#include <cassert> | #include <cassert> | ||||
#include <iostream> | #include <iostream> | ||||
void work(int *C) { | void work(int *C) { | ||||
#pragma omp atomic | #pragma omp atomic | ||||
++(*C); | ++(*C); | ||||
Show All 24 Lines |