Skip to content

Commit

Permalink
Remove old exception throw
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbuibui authored and psychocoderHPC committed Sep 24, 2024
1 parent 1bff084 commit b4c65bf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions include/alpaka/kernel/TaskKernelCpuOmp2Blocks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,6 @@ namespace alpaka

// The number of blocks in the grid.
TIdx const numBlocksInGrid(gridBlockExtent.prod());
if(blockThreadExtent.prod() != static_cast<TIdx>(1u))
{
throw std::runtime_error("Only one thread per block allowed in the OpenMP 2.0 block accelerator!");
}

// Get the OpenMP schedule information for the given kernel and parameter types
auto const schedule = std::apply(
Expand Down
5 changes: 0 additions & 5 deletions include/alpaka/kernel/TaskKernelCpuSerial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ namespace alpaka
*static_cast<WorkDivMembers<TDim, TIdx> const*>(this),
blockSharedMemDynSizeBytes);

if(blockThreadExtent.prod() != static_cast<TIdx>(1u))
{
throw std::runtime_error("A block for the serial accelerator can only ever have one single thread!");
}

// Execute the blocks serially.
meta::ndLoopIncIdx(
gridBlockExtent,
Expand Down
5 changes: 0 additions & 5 deletions include/alpaka/kernel/TaskKernelCpuTbbBlocks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ namespace alpaka
// The number of blocks in the grid.
TIdx const numBlocksInGrid = gridBlockExtent.prod();

if(blockThreadExtent.prod() != static_cast<TIdx>(1u))
{
throw std::runtime_error("A block for the TBB accelerator can only ever have one single thread!");
}

tbb::this_task_arena::isolate(
[&]
{
Expand Down

0 comments on commit b4c65bf

Please sign in to comment.