Skip to content

Commit

Permalink
Merge pull request kokkos#6797 from dalg24/intel_mm_alloc
Browse files Browse the repository at this point in the history
Drop `KOKKOS_ENABLE_INTEL_MM_ALLOC` macro
  • Loading branch information
dalg24 authored Feb 9, 2024
2 parents 3b515c9 + 21b1105 commit 54d41bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
8 changes: 0 additions & 8 deletions core/src/impl/Kokkos_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,6 @@ void pre_initialize_internal(const Kokkos::InitializationSettings& settings) {
"no");
#endif

#ifdef KOKKOS_ENABLE_INTEL_MM_ALLOC
declare_configuration_metadata("memory", "KOKKOS_ENABLE_INTEL_MM_ALLOC",
"yes");
#else
declare_configuration_metadata("memory", "KOKKOS_ENABLE_INTEL_MM_ALLOC",
"no");
#endif

#ifdef KOKKOS_ENABLE_ASM
declare_configuration_metadata("options", "KOKKOS_ENABLE_ASM", "yes");
#else
Expand Down
19 changes: 2 additions & 17 deletions core/src/impl/Kokkos_HostSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,11 @@

#include <Kokkos_Macros.hpp>

#include <Kokkos_Atomic.hpp>
#include <Kokkos_HostSpace.hpp>
#include <impl/Kokkos_Error.hpp>
#include <impl/Kokkos_Tools.hpp>

/*--------------------------------------------------------------------------*/

#if (defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_INTEL_LLVM)) && \
!defined(KOKKOS_ENABLE_CUDA)

// Intel specialized allocator does not interoperate with CUDA memory allocation

#define KOKKOS_ENABLE_INTEL_MM_ALLOC

#endif

/*--------------------------------------------------------------------------*/

#include <cstddef>
#include <cstdlib>
#include <cstdint>
Expand All @@ -49,10 +38,6 @@
#include <aligned_new>
#endif

#include <Kokkos_HostSpace.hpp>
#include <impl/Kokkos_Error.hpp>
#include <Kokkos_Atomic.hpp>

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

Expand Down

0 comments on commit 54d41bd

Please sign in to comment.