Skip to content

Commit

Permalink
Change from using concepts to interface due to rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelVarvarin committed Nov 12, 2024
1 parent fab1f24 commit 1222309
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions include/alpaka/grid/GridSyncBarrierCpuOmp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

#pragma once

#include "alpaka/core/Concepts.hpp"
#include "alpaka/core/Common.hpp"
#include "alpaka/grid/Traits.hpp"

#ifdef _OPENMP

namespace alpaka
{
//! The grid synchronization for OMP accelerators.
class GridSyncOmp : public concepts::Implements<ConceptGridSync, GridSyncOmp>
class GridSyncOmp : public interface::Implements<ConceptGridSync, GridSyncOmp>
{
};

Expand Down
4 changes: 2 additions & 2 deletions include/alpaka/grid/GridSyncBarrierCpuThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "alpaka/core/BarrierThread.hpp"
#include "alpaka/core/Concepts.hpp"
#include "alpaka/core/Common.hpp"
#include "alpaka/grid/Traits.hpp"

#include <thread>
Expand All @@ -16,7 +16,7 @@ namespace alpaka
{
//! The thread id map barrier grid synchronization.
template<typename TIdx>
class GridSyncBarrierThread : public concepts::Implements<ConceptGridSync, GridSyncBarrierThread<TIdx>>
class GridSyncBarrierThread : public interface::Implements<ConceptGridSync, GridSyncBarrierThread<TIdx>>
{
public:
using Barrier = core::threads::BarrierThread<TIdx>;
Expand Down
4 changes: 2 additions & 2 deletions include/alpaka/grid/GridSyncGenericSycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#pragma once

#include "alpaka/core/Concepts.hpp"
#include "alpaka/core/Common.hpp"
#include "alpaka/grid/Traits.hpp"

#ifdef ALPAKA_ACC_SYCL_ENABLED
Expand All @@ -16,7 +16,7 @@ namespace alpaka
{
//! The grid synchronization for SYCL.
template<typename TDim>
class GridSyncGenericSycl : public concepts::Implements<ConceptGridSync, GridSyncGenericSycl<TDim>>
class GridSyncGenericSycl : public interface::Implements<ConceptGridSync, GridSyncGenericSycl<TDim>>
{
public:
GridSyncGenericSycl(sycl::nd_item<TDim::value> work_item) : my_item{work_item}
Expand Down
4 changes: 2 additions & 2 deletions include/alpaka/grid/GridSyncGpuCudaHip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "alpaka/core/BoostPredef.hpp"
#include "alpaka/core/Concepts.hpp"
#include "alpaka/core/Common.hpp"
#include "alpaka/grid//Traits.hpp"

#if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
Expand All @@ -22,7 +22,7 @@
namespace alpaka
{
//! The GPU CUDA/HIP grid synchronization.
class GridSyncCudaHipBuiltIn : public concepts::Implements<ConceptGridSync, GridSyncCudaHipBuiltIn>
class GridSyncCudaHipBuiltIn : public interface::Implements<ConceptGridSync, GridSyncCudaHipBuiltIn>
{
};

Expand Down
4 changes: 2 additions & 2 deletions include/alpaka/grid/GridSyncNoOp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

#pragma once

#include "alpaka/core/Concepts.hpp"
#include "alpaka/core/Common.hpp"
#include "alpaka/grid/Traits.hpp"

namespace alpaka
{
//! The NoOp grid synchronization for accelerators that only support a single thread with cooperative kernels.
class GridSyncNoOp : public concepts::Implements<ConceptGridSync, GridSyncNoOp>
class GridSyncNoOp : public interface::Implements<ConceptGridSync, GridSyncNoOp>
{
};

Expand Down
3 changes: 1 addition & 2 deletions include/alpaka/grid/Traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once

#include "alpaka/core/Common.hpp"
#include "alpaka/core/Concepts.hpp"

namespace alpaka
{
Expand All @@ -32,7 +31,7 @@ namespace alpaka
template<typename TGridSync>
ALPAKA_FN_ACC auto syncGridThreads(TGridSync const& gridSync) -> void
{
using ImplementationBase = concepts::ImplementationBase<ConceptGridSync, TGridSync>;
using ImplementationBase = interface::ImplementationBase<ConceptGridSync, TGridSync>;
trait::SyncGridThreads<ImplementationBase>::syncGridThreads(gridSync);
}

Expand Down

0 comments on commit 1222309

Please sign in to comment.