Skip to content

Commit

Permalink
OpenMPTarget: Update comment on CrayClang compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkumar Gayatri committed Sep 27, 2024
1 parent 39be091 commit cf8f84d
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion algorithms/unit_tests/TestBinSortA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void test_sort_integer_overflow() {
} // namespace BinSortSetA

TEST(TEST_CATEGORY, BinSortGenericTests) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion algorithms/unit_tests/TestBinSortB.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void run_for_rank2() {
} // namespace BinSortSetB

TEST(TEST_CATEGORY, BinSortUnsignedKeyLayoutStrideValues) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
4 changes: 2 additions & 2 deletions algorithms/unit_tests/TestNestedSort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void test_nested_sort_by_key(unsigned int N, KeyType minKey, KeyType maxKey,
} // namespace NestedSortImpl

TEST(TEST_CATEGORY, NestedSort) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand All @@ -399,7 +399,7 @@ TEST(TEST_CATEGORY, NestedSort) {
}

TEST(TEST_CATEGORY, NestedSortByKey) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
4 changes: 2 additions & 2 deletions algorithms/unit_tests/TestRandom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void test_duplicate_stream() {
} // namespace AlgoRandomImpl

TEST(TEST_CATEGORY, Random_XorShift64) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand All @@ -567,7 +567,7 @@ TEST(TEST_CATEGORY, Random_XorShift64) {

TEST(TEST_CATEGORY, Random_XorShift1024_0) {
using ExecutionSpace = TEST_EXECSPACE;
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
4 changes: 2 additions & 2 deletions algorithms/unit_tests/TestSort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void test_sort_integer_overflow() {
} // namespace SortImpl

TEST(TEST_CATEGORY, SortUnsignedValueType) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand All @@ -228,7 +228,7 @@ TEST(TEST_CATEGORY, SortUnsignedValueType) {
}

TEST(TEST_CATEGORY, SortEmptyView) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
6 changes: 2 additions & 4 deletions core/src/OpenMPTarget/Kokkos_OpenMPTarget_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ void OpenMPTargetInternal::impl_finalize() {
void OpenMPTargetInternal::impl_initialize() {
m_is_initialized = true;

MAX_ACTIVE_THREADS = concurrency();

// FIXME_OPENMPTARGET: Only fix the number of teams for NVIDIA architectures
// from Pascal and upwards.
// FIXME_OPENMPTARGTE: Cray compiler did not yet implement omp_set_num_teams.
Expand Down Expand Up @@ -178,8 +176,8 @@ void OpenMPTargetInternal::resize_scratch(int64_t team_size,
// Maximum active teams possible.
// The number should not exceed the maximum in-flight teams possible or the
// league_size.
int max_active_teams = std::min(
OpenMPTargetInternal::MAX_ACTIVE_THREADS / team_size, league_size);
int max_active_teams =
std::min(OpenMPTargetInternal::concurrency() / team_size, league_size);

// max_active_teams is the number of active teams on the given hardware.
// We set the number of teams to be twice the number of max_active_teams for
Expand Down
6 changes: 0 additions & 6 deletions core/src/OpenMPTarget/Kokkos_OpenMPTarget_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ class OpenMPTargetInternal {

static OpenMPTargetInternal* impl_singleton();

// FIXME_OPENMPTARGET - Currently the maximum number of
// teams possible is calculated based on NVIDIA's Volta GPU. In
// future this value should be based on the chosen architecture for the
// OpenMPTarget backend.
int MAX_ACTIVE_THREADS = 0;

static void verify_is_process(const char* const);
static void verify_initialized(const char* const);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ struct ParallelReduceSpecialize<FunctorType, Kokkos::RangePolicy<PolicyArgs...>,

const auto size = end - begin;

// FIXME_OPENMPTARGET: The team size and MAX_ACTIVE_THREADS are currently
// FIXME_OPENMPTARGET: The team size and concurrency are currently
// based on NVIDIA-V100 and should be modifid to be based on the
// architecture in the future.
const int max_team_threads = 32;
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_complexfloat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using namespace TestAtomicOperations;

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_complexfloat) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_double.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_double) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_float.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_float) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_int.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_int) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_longint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_long) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_longlongint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_longlong) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_shared.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct TestSharedAtomicsFunctor {
};

TEST(TEST_CATEGORY, atomic_shared) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_unsignedint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_unsigned) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
2 changes: 1 addition & 1 deletion core/unit_test/TestAtomicOperations_unsignedlongint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_unsignedlong) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Test {
TEST(TEST_CATEGORY, atomic_operations_unsignedlonglong) {
// FIXME_OPENMPTARGET - causes ICE with CrayClang compiler
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
Expand Down
4 changes: 4 additions & 0 deletions core/unit_test/TestReduce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ struct FunctorReductionWithLargeIterationCount {
};

TEST(TEST_CATEGORY, reduction_with_large_iteration_count) {
// FIXME_OPENMPTARGET - causes runtime failure with CrayClang compiler
#if defined(KOKKOS_COMPILER_CRAY_LLVM) && defined(KOKKOS_ENABLE_OPENMPTARGET)
GTEST_SKIP() << "known to fail with OpenMPTarget+Cray LLVM";
#endif
if constexpr (std::is_same_v<typename TEST_EXECSPACE::memory_space,
Kokkos::HostSpace>) {
GTEST_SKIP() << "Disabling for host backends";
Expand Down

0 comments on commit cf8f84d

Please sign in to comment.