Deprecations¶
Deprecated in Kokkos 4.x¶
Deprecated in Kokkos 4.7¶
KOKKOS_MEMORY_ALIGNMENT[_THRESHOLD]replacement: none
Not intended for non-internal use.
Kokkos::MemoryManagedreplacement: none
Unneeded due to redundancy with default memory trait and confusing use when requesting unmanaged views with MemoryManaged
KOKKOS_NONTEMPORAL_PREFETCH_{LOAD,STORE}replacement: none
Not intended for non-internal use.
Deprecated in Kokkos 4.6¶
StaticCrsGraphmoved to Kokkos KernelsKokkosSparse::StaticCrsGraphaligns better with functionality provided by
KokkosKernels.
native_simdandnative_simd_masktypesreplacement:
simdandsimd_maskalignment with the C++ standard
- Makefile support
replacement: CMake
reducing maintenance burden for a little-used build system
- Direct access to
d_viewandh_viewmembers inDualView replacement:
view_host()andview_device()enforcing invariants in
DualView, e.g., consistency between the twoViewinstances referenced
- Direct access to
Deprecated in Kokkos 4.5¶
- Tasking interface:
BasicFuture,TaskSingle,TaskPriority,task_spawn,host_spawn,respawn,when_all,wait replacement: none
unused, limited implementation
- Tasking interface:
HPX::HPX::is_asynchronous(HPX const & = HPX())replacement: none
unused, conformity of execution spaces
OpenMP::is_asynchronous(OpenMP const& = OpenMP())replacement: none
unused, conformity of execution spaces
atomic_query_versionreplacement: none
no known use case
atomic_assign()replacement:
atomic_store()duplicated functionality
atomic_increment()replacement:
atomic_inc()duplicated functionality
atomic_decrement()replacement:
atomic_dec()duplicated functionality
atomic_compare_exchange_strong()replacement:
atomic_compare_exchange()duplicated functionality
Deprecated in Kokkos 4.4¶
is_layouttiledreplacement: none
unused
layout_iterate_type_selectorreplacement: none
only useful internally
Array<T, N, Proxy>replacement: none
alignment with std::array
HPX::HPX(instance_mode mode)replacement:
explicit HPX(instance_mode mode)execution space instance constructors should be
explicit
HPX::HPX(hpx::execution::experimental::unique_any_sender<> &&sender)replacement:
explicit HPX::HPX(hpx::execution::experimental::unique_any_sender<> &&sender)execution space instance constructors should be
explicit
OpenMP::OpenMP(int pool_size)replacement:
explicit OpenMP::OpenMP(int pool_size)execution space instance constructors should be
explicit
Serial::Serial(NewInstance)replacement:
explicit Serial::Serial(NewInstance)execution space instance constructors should be
explicit
ChunkSize::ChunkSize(int value)replacement:
explicit ChunkSize::ChunkSize(int value)ChunkSizeshould be constructed explicitly
pair<T, void>replacement: none
the specialization is not documented, does not follow the standard library, it is not tested and has no known usage
Deprecated in Kokkos 4.3¶
Experimental::swapreplacement:
kokkos_swapavoiding ambiguities due to ADL
ExecutionSpace::in_parallelreplacement:
KOKKOS_IF_ON_HOST/KOKKOS_IF_ON_DEVICEpartly provide similar behaviorinconsistent implementation, limited use
Cuda::device_arch()replacement: none
uniformity between execution spaces
Cuda::detect_device_count()replacement: num_devices()
uniformity between execution spaces
Cuda::detect_device_arch()replacement: none
uniformity between execution spaces
HIP::HIP::detect_device_count()replacement:
num_devices()uniformity between execution spaces
RangePolicy::set(ChunkSize chunksize)replacement:
RangePolicy::set_chunk_size(int chunk_size)ChunkSizewas the only extra parameter usable withRangePolicy::set()
InitializationSettings::set_num_devices,InitializationSettings::has_num_devices,InitializationSettings::get_num_devicesreplacement:
num_deviceschanges in InitializationSettings made these superfluous
InitializationSettings::set_skip_devices,InitializationSettings::has_skip_devices,InitializationSettings::get_skip_devicesreplacement:
KOKKOS_VISIBLE_DEVICESchanges in InitializationSettings made these superfluous
Deprecated in Kokkos 4.2¶
Cuda::Cuda(cudaStream_t stream, bool manage_stream)replacement:
Cuda::Cuda(cudaStream_t stream)constructing a Cuda execution space instance should always use an externally managed
cudaStreamobject
HIP::HIP(hipStream_t stream, bool manage_stream)replacement
HIP::HIP(hipStream_t stream)constructing a HIP execution space instance should always use an externally managed
hipStreamobject
vectorreplacement: none
non-standard behavior, doesn’t work well with Kokkos concepts
HostSpace::HostSpace(AllocationMechanism)replacement:
HostSpace::HostSpace()AllocationMechanismis unused,operator newwith alignment is used unconditionally
- SIMD math functions in the
Kokkos::Experimentalnamespace replacement: SIMD math function in the
Kokkosnamespaceissues with ADL, consistency with other math function overloads
- SIMD math functions in the
Deprecated in Kokkos 4.1¶
- Default constructor for
BinSort,BinOp1D, andBinOp3D replacement: none
the default constructors created invalid, unusable objects
- Default constructor for
View::Rankreplacement:
View::rank()undocumented, redundant due to existence of
View::rank()
View::subview<MemoryTraits>(...)replacement:
View::subview(...)not useful, unused
Deprecated in Kokkos 4.0¶
CudaUVMSpace::available()replacement:
SharedSpacenot portable, would always return
true
Complexvolatileoverloadsreplacement: none
no need for using
volatileoverloads
pairvolatileoverloadsreplacement: none
no need for using
volatileoverloads
ScratchMemorySpace::align(const IntType& size)replacement: none
unused, not useful
Deprecated in 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()
|
|
void Experimental::HIPSpace::access_error(const void* const)
|
|
inline void hip_internal_safe_call_deprecated
|
|
Member functions deprecated in Kokkos-3.7¶
Method name |
Class |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Classes deprecated in Kokkos-3.7¶
|
|
Namespace updates¶
Previous |
You should now use |
|---|---|
|
|
|
|
|
|
|
|
|
|
Other deprecations¶
Previous |
Replaced with |
|---|---|
|
|
Array reductions with raw pointer |
Use |
|
|
Overloads of |
Use |
Raise deprecation warnings if non-empty WorkTag class is used |
Use empty WorkTag class |
|
|
|
|
Warn about |
Remove |
|
|
|
|
|
Remove class |
|
|
|
|
|
|
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