#include "Types.h"
-namespace _OMP {
+namespace ompx {
namespace config {
enum DebugKind : uint32_t {
bool mayUseNestedParallelism();
} // namespace config
-} // namespace _OMP
+} // namespace ompx
#endif
#include "Types.h"
-namespace _OMP {
+namespace ompx {
namespace mapping {
} // namespace mapping
-} // namespace _OMP
+} // namespace ompx
#endif
#pragma omp begin declare target device_type(nohost)
-namespace _OMP {
+namespace ompx {
namespace memory {
} // namespace icv
-} // namespace _OMP
+} // namespace ompx
#pragma omp end declare target
#include "Types.h"
-namespace _OMP {
+namespace ompx {
namespace synchronize {
} // namespace fence
-} // namespace _OMP
+} // namespace ompx
#endif
#pragma omp begin declare target device_type(nohost)
-namespace _OMP {
+namespace ompx {
namespace utils {
/// Return the value \p Var from thread Id \p SrcLane in the warp if the thread
#define OMP_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
} // namespace utils
-} // namespace _OMP
+} // namespace ompx
#pragma omp end declare target
#include "State.h"
#include "Types.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
#include "Mapping.h"
#include "Types.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
#include "Synchronization.h"
#include "Types.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
#include "llvm/Frontend/OpenMP/OMPGridValues.h"
-using namespace _OMP;
+using namespace ompx;
-namespace _OMP {
+namespace ompx {
namespace impl {
// Forward declarations defined to be defined for AMDGCN and NVPTX.
uint32_t getWarpSize() { return getGridValue().GV_Warp_Size; }
} // namespace impl
-} // namespace _OMP
+} // namespace ompx
/// We have to be deliberate about the distinction of `mapping::` and `impl::`
/// below to avoid repeating assumptions or including irrelevant ones.
#pragma omp begin declare target device_type(nohost)
-namespace _OMP {
+namespace ompx {
namespace impl {
double getWTick();
#pragma omp end declare variant
} // namespace impl
-} // namespace _OMP
+} // namespace ompx
/// Interfaces
///
return 0;
}
-double omp_get_wtick(void) { return _OMP::impl::getWTick(); }
+double omp_get_wtick(void) { return ompx::impl::getWTick(); }
-double omp_get_wtime(void) { return _OMP::impl::getWTime(); }
+double omp_get_wtime(void) { return ompx::impl::getWTime(); }
}
///}
#include "Types.h"
#include "Utils.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
#include "Types.h"
#include "Utils.h"
-using namespace _OMP;
+using namespace ompx;
namespace {
#include "Types.h"
#include "Utils.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
ASSERT(HasThreadState == Other.HasThreadState);
}
-state::TeamStateTy SHARED(_OMP::state::TeamState);
-state::ThreadStateTy **SHARED(_OMP::state::ThreadStates);
+state::TeamStateTy SHARED(ompx::state::TeamState);
+state::ThreadStateTy **SHARED(ompx::state::ThreadStates);
namespace {
#pragma omp begin declare target device_type(nohost)
-using namespace _OMP;
+using namespace ompx;
namespace impl {
#include "Types.h"
#include "Utils.h"
-using namespace _OMP;
+using namespace ompx;
#pragma omp begin declare target device_type(nohost)
#pragma omp begin declare target device_type(nohost)
-using namespace _OMP;
+using namespace ompx;
extern "C" __attribute__((weak)) int IsSPMDMode;
#include "Types.h"
#include "Utils.h"
-using namespace _OMP;
+using namespace ompx;
// TODO:
struct DynamicScheduleTracker {