Skip to content

Commit

Permalink
Update containers and algorithms for NVC++ 23.7
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Aug 25, 2023
1 parent 5a9aee3 commit f490659
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 43 deletions.
5 changes: 1 addition & 4 deletions algorithms/src/sorting/Kokkos_BinSortPublicAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ class BinSort {
Kokkos::is_view<SrcViewType>::value,
Kokkos::View<typename SrcViewType::const_data_type,
typename SrcViewType::array_layout,
typename SrcViewType::device_type
#if not defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
,
typename SrcViewType::device_type,
Kokkos::MemoryTraits<Kokkos::RandomAccess>
#endif
>,
typename SrcViewType::const_type>;

Expand Down
14 changes: 2 additions & 12 deletions algorithms/unit_tests/TestBinSortA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,8 @@ TEST(TEST_CATEGORY, BinSortGenericTests) {
using key_type = unsigned;
constexpr int N = 171;

#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
if (!std::is_same_v<ExecutionSpace, Kokkos::Cuda>)
#endif
BinSortSetA::test_3D_sort_impl<ExecutionSpace, key_type>(N);

#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
if (!std::is_same_v<ExecutionSpace, Kokkos::Cuda>)
#endif
BinSortSetA::test_issue_1160_impl<ExecutionSpace>();

BinSortSetA::test_3D_sort_impl<ExecutionSpace, key_type>(N);
BinSortSetA::test_issue_1160_impl<ExecutionSpace>();
BinSortSetA::test_sort_integer_overflow<ExecutionSpace, long long>();
BinSortSetA::test_sort_integer_overflow<ExecutionSpace, unsigned long long>();
BinSortSetA::test_sort_integer_overflow<ExecutionSpace, int>();
Expand Down
4 changes: 0 additions & 4 deletions containers/performance_tests/TestCuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ TEST(TEST_CATEGORY, dynrankview_perf) {
}

TEST(TEST_CATEGORY, global_2_local) {
#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
GTEST_SKIP() << "errors reported for all sizes";
#endif
std::cout << "Cuda" << std::endl;
std::cout << "size, create, generate, fill, find" << std::endl;
for (unsigned i = Performance::begin_id_size; i <= Performance::end_id_size;
Expand Down
11 changes: 0 additions & 11 deletions containers/unit_tests/TestBitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,8 @@ void test_bitset() {
{
Impl::TestBitsetTest<const_bitset_type> f(bitset);
uint32_t count = f.testit();
#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
if constexpr (!std::is_same_v<typename Device::execution_space,
Kokkos::Cuda>) {
EXPECT_EQ(bitset.size(), count);
EXPECT_EQ(count, bitset.count());
} else {
(void)count;
}
#else
EXPECT_EQ(bitset.size(), count);
EXPECT_EQ(count, bitset.count());
#endif
}

// std::cout << " Check reset() " << std::endl;
Expand Down
12 changes: 0 additions & 12 deletions containers/unit_tests/TestUnorderedMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,6 @@ void test_deep_copy(uint32_t num_nodes) {

#if !defined(_WIN32)
TEST(TEST_CATEGORY, UnorderedMap_insert) {
#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
if constexpr (std::is_same_v<TEST_EXECSPACE, Kokkos::Cuda>) {
GTEST_SKIP() << "unit test is hanging from index 0";
}
#endif
for (int i = 0; i < 500; ++i) {
test_inserts<TEST_EXECSPACE>(100000, 90000, 100, true);
test_inserts<TEST_EXECSPACE>(100000, 90000, 100, false);
Expand All @@ -418,12 +412,6 @@ TEST(TEST_CATEGORY, UnorderedMap_failed_insert) {
}

TEST(TEST_CATEGORY, UnorderedMap_deep_copy) {
#if defined(KOKKOS_ENABLE_CUDA) && \
defined(KOKKOS_COMPILER_NVHPC) // FIXME_NVHPC
if constexpr (std::is_same_v<TEST_EXECSPACE, Kokkos::Cuda>) {
GTEST_SKIP() << "unit test is hanging from index 0";
}
#endif
for (int i = 0; i < 2; ++i) test_deep_copy<TEST_EXECSPACE>(10000);
}

Expand Down

0 comments on commit f490659

Please sign in to comment.