Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/test/offloading/global_constructor.cpp
// RUN: %libomptarget-compilexx-generic && %libomptarget-run-generic | %fcheck-generic | // RUN: %libomptarget-compilexx-generic && %libomptarget-run-generic | %fcheck-generic | ||||
// Fails in DAGToDAG on an address space problem | // Fails in DAGToDAG on an address space problem | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa | // UNSUPPORTED: amdgcn-amd-amdhsa | ||||
// UNSUPPORTED: amdgcn-amd-amdhsa-newRTL | |||||
#include <cmath> | #include <cmath> | ||||
#include <cstdio> | #include <cstdio> | ||||
const double Host = log(2.0) / log(2.0); | const double Host = log(2.0) / log(2.0); | ||||
#pragma omp declare target | #pragma omp declare target | ||||
const double Device = log(2.0) / log(2.0); | const double Device = log(2.0) / log(2.0); | ||||
#pragma omp end declare target | #pragma omp end declare target | ||||
Show All 10 Lines |