Deprecation for Kokkos-3.x#

Type aliases deprecated in Kokkos-3.7#

ActiveExecutionMemorySpace, host_execution_space, host_memory_space, host_mirror_space, is_array_layout, is_execution_policy, is_execution_space, is_memory_space, is_memory_traits, is_space, Iterate, MDRangePolicy, Rank, SpaceAccessibility

Macros deprecated in Kokkos-3.7#

KOKKOS_RESTRICT_EXECUTION_TO_(DATA_SPACE), HIP_SAFE_CALL(call)

Free-functions deprecated in Kokkos-3.7#

Name

Where

std::vector<OpenMP> OpenMP::partition(...)

OpenMP

OpenMP OpenMP::create_instance(...)

OpenMP

void OpenMP::partition_master(F const& f,
                              int num_partitions,
                              int partition_size)

OpenMP (Kokkos_OpenMP_Instance.hpp)

void Experimental::HIPSpace::access_error()

namespace Kokkos (Kokkos_HIP_Space.cpp)

void Experimental::HIPSpace::access_error(const void* const)

namespace Kokkos (Kokkos_HIP_Space.cpp)

inline void hip_internal_safe_call_deprecated

namespace Kokkos::Impl (Kokkos_HIP_Error.hpp)

Member functions deprecated in Kokkos-3.7#

Method name

Class

static void OpenMP::partition_master()

class OpenMP (Kokkos_OpenMP.hpp)

static void OpenMPInternal::validate_partition()

class OpenMPInternal (Kokkos_OpenMP_Instance.hpp)

std::string ProfilingSection::getName()

class ProfilingSection (Kokkos_Profiling_ProfileSection.hpp)

uint32_t ProfilingSection::getSectionID()

class ProfilingSection (Kokkos_Profiling_ProfileSection.hpp)

int TeamPolicyInternal::vector_length() const

class TeamPolicyInternal (Kokkos_HIP_Parallel_Team.hpp, Kokkos_SYCL_Parallel_Team.hpp)

inline int TeamPolicyInternal::vector_length() const

class TeamPolicyInternal (Kokkos_OpenMPTarget_Exec.hpp, Kokkos_Cuda_Parallel_Team.hpp)

static void CudaSpace::access_error();

class CudaSpace (Kokkos_CudaSpace.hpp), class HIPSpace (Kokkos_HIP_Space.hpp)

static void CudaSpace::access_error(const void* const);

class CudaSpace (Kokkos_CudaSpace.hpp), class HIPSpace (Kokkos_HIP_Space.hpp)

static int CudaUVMSpace::number_of_allocations();

class CudaUVMSpace (Kokkos_CudaSpace.hpp)

HPX::partition(...), HPX::partition_master()

class HPX (Kokkos_HPX.hpp)

Classes deprecated in Kokkos-3.7#

class MasterLock<OpenMP>

class KOKKOS_ATTRIBUTE_NODISCARD ScopeGuard

Namespace updates#

Previous

You should now use

Kokkos::Experimental::aMathFunction

Kokkos::aMathFunction

Kokkos::Experimental::clamp

Kokkos::clamp

Kokkos::Experimental::max;

Kokkos::max

Kokkos::Experimental::min

Kokkos::min

Kokkos::Experimental::minmax

Kokkos::minmax

Other deprecations#

Previous

Replaced with

Kokkos::is_reducer_type

Kokkos::is_reducer

Array reductions with raw pointer

Use Kokkos::View as return argument

OffsetView constructors taking index_list_type

Kokkos::pair (CPU and GPU)

Overloads of Kokkos::sort taking a parameter bool always_use_kokkos_sort

Use Kokkos::BinSort if required, or call Kokkos::sort without bool parameter

Raise deprecation warnings if non-empty WorkTag class is used

Use empty WorkTag class

InitArguments struct

InitializationSettings() class object with query-able attributes

finalize_all()

finalize()

Warn about parallel_reduce cases that call join() with arguments qualified by volatile keyword

Remove volatile overloads

create_mirror_view taking WithOutInitializing as first argument

create_mirror_view(Kokkos::Impl::WithoutInitializing_t wi, Kokkos::View<T, P...> const& v)

#define KOKKOS_THREAD_LOCAL macro

thread_local

class MasterLock

Remove class

Kokkos::Impl::is_view

Kokkos::is_view

inline void cuda_internal_safe_call_deprecated()

#define CUDA_SAFE_CALL(call)

parallel_* overloads taking the label as trailing argument

Kokkos::parallel_*("KokkosViewLabel", policy, f);

Public Headers in Kokkos-3.7#

From Kokkos-3.7, the following are public headers:

Core#

Kokkos_Core.hpp, Kokkos_Macros.hpp, Kokkos_Atomic.hpp, Kokkos_DetectionIdiom.hpp, Kokkos_MathematicalConstants.hpp, Kokkos_MathematicalFunctions.hpp, Kokkos_NumericTraits.hpp, Kokkos_Array.hpp, Kokkos_Complex.hpp, Kokkos_Pair.hpp, Kokkos_Half.hpp, Kokkos_Timer.hpp

Algorithms#

Kokkos_StdAlgorithms.hpp, Kokkos_Random.hpp, Kokkos_Sort.hpp

Containers#

Kokkos_Bit.hpp, Kokkos_DualView.hpp, Kokkos_DynRankView.hpp, Kokkos_ErrorReporter.hpp, Kokkos_Functional.hpp, Kokkos_OffsetView.hpp, Kokkos_ScatterView.hpp, Kokkos_StaticCrsGraph.hpp, Kokkos_UnorderedMap.hpp, Kokkos_Vector.hpp