Skip to content

Cuda test in Kokkos_src - #29

Draft
Quntized wants to merge 3 commits into
developfrom
Cuda_core
Draft

Cuda test in Kokkos_src#29
Quntized wants to merge 3 commits into
developfrom
Cuda_core

Conversation

@Quntized

Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: Quntized <mdsajid-09-2021911491@ne.du.ac.bd>
Copilot AI review requested due to automatic review settings July 11, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR appears to adjust the standalone kokkos_tree test harness to support CUDA-related functionality and add a regression test around desul atomics/numeric-limits behavior.

Changes:

  • Add a CUDA-related header include to the Kokkos_qun_test test driver.
  • Add a new desul unit test validating numeric limits/type traits.
  • Update the test executable link line to include an additional Kokkos CMake target.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
kokkos_tree/test_dyn_rank.cpp Adds a CUDA-related header include to the test runner TU.
kokkos_tree/desul/desul_test.hpp Adds a new gtest covering desul::Impl::numeric_limits_max and related types.
kokkos_tree/CMakeLists.txt Extends link libraries for Kokkos_qun_test with Kokkos::kokkoscore.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 3 to 6
#include "mdspan/kokkos_raw_mdspan.hpp"
#include "kokkos_core/test_drank.hpp"
#include "kokkos_core/cuda_Error.hpp"
#include <Kokkos_Core.hpp>
Comment on lines +65 to +75
TEST(DesulNumericLimitsTest,atomics_include_desul_atomics_Common_hpp_L82 ){
constexpr uint32_t desul_max = desul::Impl::numeric_limits_max<uint32_t>::value;
constexpr uint32_t std_max = std::numeric_limits<uint32_t>::max();
EXPECT_EQ(desul_max, std_max) << "Doesn't match";
constexpr uint64_t desul_max64 = desul::Impl::numeric_limits_max<uint64_t>::value;
constexpr uint64_t std_max64 = std::numeric_limits<uint64_t>::max();
EXPECT_EQ(desul_max64, std_max64) << "Doesn't match";
auto val = sizeof(int64_t);
EXPECT_EQ(val, 8) << "Doesn't match";
ASSERT_TRUE((std::is_same_v<desul::Impl::atomic_compare_exchange_t<int64_t>, int64_t>)) << "Doesn't match";
}
Comment on lines +66 to +71
constexpr uint32_t desul_max = desul::Impl::numeric_limits_max<uint32_t>::value;
constexpr uint32_t std_max = std::numeric_limits<uint32_t>::max();
EXPECT_EQ(desul_max, std_max) << "Doesn't match";
constexpr uint64_t desul_max64 = desul::Impl::numeric_limits_max<uint64_t>::value;
constexpr uint64_t std_max64 = std::numeric_limits<uint64_t>::max();
EXPECT_EQ(desul_max64, std_max64) << "Doesn't match";
Comment thread kokkos_tree/CMakeLists.txt Outdated
Comment on lines 11 to 13
add_executable(Kokkos_qun_test test_dyn_rank.cpp)
target_link_libraries(Kokkos_qun_test PRIVATE Kokkos::kokkos GTest::gtest)
target_link_libraries(Kokkos_qun_test PRIVATE Kokkos::kokkos Kokkos::kokkoscore GTest::gtest)

Signed-off-by: Quntized <mdsajid-09-2021911491@ne.du.ac.bd>
@Quntized
Quntized marked this pull request as draft July 19, 2026 10:27
Signed-off-by: Quntized <mdsajid-09-2021911491@ne.du.ac.bd>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants