alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
Omp.hpp
Go to the documentation of this file.
1/* Copyright 2024 René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
8
9#include <memory>
10#include <optional>
11
12namespace alpaka::onAcc
13{
14 namespace cpu
15 {
16
17#if ALPAKA_OMP
18 struct OmpSync
19 {
20 void operator()() const
21 {
22# pragma omp barrier
23 }
24 };
25#endif
26 } // namespace cpu
27} // namespace alpaka::onAcc
functionality which is usable on the accelerator compute device from within a kernel.
Definition executor.hpp:38