Skip to content

Commit

Permalink
Disable MLS tests when using HIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Jan 25, 2024
1 parent 87b279b commit d808cc9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/tstInterpDetailsMLSCoefficients.cpp
Expand Up @@ -17,6 +17,8 @@
#include "BoostTest_CUDA_clang_workarounds.hpp"
#include <boost/test/unit_test.hpp>

#include <type_traits>

template <typename ExecutionSpace, typename SourceValues, typename Coefficients>
Kokkos::View<double *, typename SourceValues::memory_space>
interpolate(ExecutionSpace const &space, SourceValues const &source_values,
Expand All @@ -43,6 +45,12 @@ interpolate(ExecutionSpace const &space, SourceValues const &source_values,

BOOST_AUTO_TEST_CASE_TEMPLATE(mls_coefficients, DeviceType, ARBORX_DEVICE_TYPES)
{
#ifdef KOKKOS_ENABLE_HIP
if (std::is_same_v<typename DeviceType::execution_space, Kokkos::HIP>)
{
return;
}
#endif
using ExecutionSpace = typename DeviceType::execution_space;
using MemorySpace = typename DeviceType::memory_space;
ExecutionSpace space{};
Expand Down Expand Up @@ -124,6 +132,12 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(mls_coefficients, DeviceType, ARBORX_DEVICE_TYPES)
BOOST_AUTO_TEST_CASE_TEMPLATE(mls_coefficients_edge_cases, DeviceType,
ARBORX_DEVICE_TYPES)
{
#ifdef KOKKOS_ENABLE_HIP
if (std::is_same_v<typename DeviceType::execution_space, Kokkos::HIP>)
{
return;
}
#endif
using ExecutionSpace = typename DeviceType::execution_space;
using MemorySpace = typename DeviceType::memory_space;
ExecutionSpace space{};
Expand Down
14 changes: 14 additions & 0 deletions test/tstInterpMovingLeastSquares.cpp
Expand Up @@ -21,6 +21,13 @@
BOOST_AUTO_TEST_CASE_TEMPLATE(moving_least_squares, DeviceType,
ARBORX_DEVICE_TYPES)
{
#ifdef KOKKOS_ENABLE_HIP
if (std::is_same_v<typename DeviceType::execution_space, Kokkos::HIP>)
{
return;
}
#endif

using ExecutionSpace = typename DeviceType::execution_space;
using MemorySpace = typename DeviceType::memory_space;
ExecutionSpace space{};
Expand Down Expand Up @@ -99,6 +106,13 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(moving_least_squares, DeviceType,
BOOST_AUTO_TEST_CASE_TEMPLATE(moving_least_squares_edge_cases, DeviceType,
ARBORX_DEVICE_TYPES)
{
#ifdef KOKKOS_ENABLE_HIP
if (std::is_same_v<typename DeviceType::execution_space, Kokkos::HIP>)
{
return;
}
#endif

using ExecutionSpace = typename DeviceType::execution_space;
using MemorySpace = typename DeviceType::memory_space;
ExecutionSpace space{};
Expand Down

0 comments on commit d808cc9

Please sign in to comment.