Skip to content

Commit

Permalink
KOKKOS_COMPILER_PGI -> KOKKOS_COMPILER_NVHPC
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Apr 6, 2023
1 parent 715a6ff commit 39c35a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions core/src/Kokkos_Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@

//----------------------------------------------------------------------------

#if defined(KOKKOS_COMPILER_PGI)
#if defined(KOKKOS_COMPILER_NVHPC)
#define KOKKOS_ENABLE_PRAGMA_UNROLL 1
#define KOKKOS_ENABLE_PRAGMA_IVDEP 1
//#define KOKKOS_ENABLE_PRAGMA_LOOPCOUNT 1
Expand Down Expand Up @@ -587,8 +587,8 @@ static constexpr bool kokkos_omp_on_host() { return false; }

#define KOKKOS_ATTRIBUTE_NODISCARD [[nodiscard]]

#if (defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG) || \
defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_PGI)) && \
#if (defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG) || \
defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVHPC)) && \
!defined(_WIN32) && !defined(__ANDROID__)
#if __has_include(<execinfo.h>)
#define KOKKOS_IMPL_ENABLE_STACKTRACE
Expand Down
8 changes: 4 additions & 4 deletions core/src/impl/Kokkos_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ void pre_initialize_internal(const Kokkos::InitializationSettings& settings) {
std::to_string(KOKKOS_COMPILER_NVCC));
declare_configuration_metadata("tools_only", "compiler_family", "nvcc");
#endif
#ifdef KOKKOS_COMPILER_PGI
declare_configuration_metadata("compiler_version", "KOKKOS_COMPILER_PGI",
std::to_string(KOKKOS_COMPILER_PGI));
#ifdef KOKKOS_COMPILER_NVHPC
declare_configuration_metadata("compiler_version", "KOKKOS_COMPILER_NVHPC",
std::to_string(KOKKOS_COMPILER_NVHPC));
declare_configuration_metadata("tools_only", "compiler_family", "pgi");
#endif
#ifdef KOKKOS_COMPILER_MSVC
Expand Down Expand Up @@ -1256,7 +1256,7 @@ bool Kokkos::tune_internals() noexcept { return g_tune_internals; }

namespace Kokkos {

#ifdef KOKKOS_COMPILER_PGI
#ifdef KOKKOS_COMPILER_NVHPC
namespace Impl {
// Bizzarely, an extra jump instruction forces the PGI compiler to not have a
// bug related to (probably?) empty base optimization and/or aggregate
Expand Down
6 changes: 3 additions & 3 deletions core/src/impl/Kokkos_TaskNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
namespace Kokkos {
namespace Impl {

#ifdef KOKKOS_COMPILER_PGI
#ifdef KOKKOS_COMPILER_NVHPC
// Bizzarely, an extra jump instruction forces the PGI compiler to not have a
// bug related to (probably?) empty base optimization and/or aggregate
// construction. This must be defined out-of-line to generate a jump
Expand Down Expand Up @@ -101,15 +101,15 @@ class ReferenceCountedBase {

public:
KOKKOS_INLINE_FUNCTION
#ifndef KOKKOS_COMPILER_PGI
#ifndef KOKKOS_COMPILER_NVHPC
constexpr
#endif
explicit ReferenceCountedBase(
reference_count_size_type initial_reference_count)
: m_ref_count(initial_reference_count) {
// This can't be here because it breaks constexpr
// KOKKOS_EXPECTS(initial_reference_count > 0);
#ifdef KOKKOS_COMPILER_PGI
#ifdef KOKKOS_COMPILER_NVHPC
Impl::_kokkos_pgi_compiler_bug_workaround();
#endif
}
Expand Down

0 comments on commit 39c35a8

Please sign in to comment.