Skip to content

Commit

Permalink
Remove obsolete ifdefs from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehmet Yusufoglu authored and bernhardmgruber committed Jan 24, 2024
1 parent a0f5398 commit 7b0bc2d
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 50 deletions.
5 changes: 0 additions & 5 deletions example/bufferCopy/src/bufferCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ struct FillBufferKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else
// Define the index domain
using Dim = alpaka::DimInt<3u>;
using Idx = std::size_t;
Expand Down Expand Up @@ -260,5 +256,4 @@ auto main() -> int
std::cout << std::endl;

return EXIT_SUCCESS;
#endif
}
5 changes: 0 additions & 5 deletions example/complex/src/complex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ struct ComplexKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else
using Idx = std::size_t;

// Define the accelerator
Expand Down Expand Up @@ -91,5 +87,4 @@ auto main() -> int
alpaka::Complex<float> z = x + y;

return EXIT_SUCCESS;
#endif
}
6 changes: 0 additions & 6 deletions example/counterBasedRng/src/counterBasedRng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ class CounterBasedRngKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else

// Define the index domain
using Dim = alpaka::DimInt<3u>;
using Idx = std::size_t;
Expand Down Expand Up @@ -233,5 +228,4 @@ auto main() -> int
<< "Execution results incorrect!" << std::endl;
return EXIT_FAILURE;
}
#endif
}
4 changes: 0 additions & 4 deletions example/heatEquation/src/heatEquation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ auto exactSolution(double const x, double const t) -> double
//! from the next-buffer.
auto main() -> int
{
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else
// Parameters (a user is supposed to change numNodesX, numTimeSteps)
uint32_t const numNodesX = 1000;
uint32_t const numTimeSteps = 10000;
Expand Down Expand Up @@ -181,5 +178,4 @@ auto main() -> int
<< std::endl;
return EXIT_FAILURE;
}
#endif
}
5 changes: 0 additions & 5 deletions example/helloWorld/src/helloWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ struct HelloWorldKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else
// Define the index domain
//
// Depending on your type of problem, you have to define
Expand Down Expand Up @@ -176,5 +172,4 @@ auto main() -> int
alpaka::wait(queue);

return EXIT_SUCCESS;
#endif
}
6 changes: 0 additions & 6 deletions example/kernelSpecialization/src/kernelSpecialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ struct Kernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else

// Define the accelerator
//
// It is possible to choose from a set of accelerators:
Expand Down Expand Up @@ -101,5 +96,4 @@ auto main() -> int
alpaka::wait(queue);

return EXIT_SUCCESS;
#endif
}
7 changes: 0 additions & 7 deletions example/parallelLoopPatterns/src/parallelLoopPatterns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ void openMPSimdStyle(TDev& dev, TQueue& queue, TBufAcc& bufAcc)

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else

// Define the index domain, this example is only for 1d
using Dim = alpaka::DimInt<1u>;

Expand Down Expand Up @@ -441,6 +436,4 @@ auto main() -> int
chunkedGridStridedLoop<Acc>(devAcc, queue, bufAcc);
naiveOpenMPStyle<Acc>(devAcc, queue, bufAcc);
openMPSimdStyle<Acc>(devAcc, queue, bufAcc);

#endif
}
6 changes: 0 additions & 6 deletions example/tagSpecialization/src/tagSpecialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ struct WrapperKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else

// Define the accelerator
//
// It is possible to choose from a set of accelerators:
Expand Down Expand Up @@ -126,5 +121,4 @@ auto main() -> int
alpaka::exec<Acc>(queue, workDiv, WrapperKernel{});
alpaka::wait(queue);
return EXIT_SUCCESS;
#endif
}
6 changes: 0 additions & 6 deletions example/vectorAdd/src/vectorAdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ class VectorAddKernel

auto main() -> int
{
// Fallback for the CI with disabled sequential backend
#if defined(ALPAKA_CI) && !defined(ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED)
return EXIT_SUCCESS;
#else

// Define the index domain
using Dim = alpaka::DimInt<1u>;
using Idx = std::size_t;
Expand Down Expand Up @@ -206,5 +201,4 @@ auto main() -> int
<< "Execution results incorrect!" << std::endl;
return EXIT_FAILURE;
}
#endif
}

0 comments on commit 7b0bc2d

Please sign in to comment.