Skip to content

Commit

Permalink
Drop check whether device supports unified addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Sep 7, 2023
1 parent c32f9c9 commit 21f7243
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions core/src/Cuda/Kokkos_Cuda_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ Cuda::size_type *CudaInternal::scratch_space(const std::size_t size) const {
}

Cuda::size_type *CudaInternal::scratch_unified(const std::size_t size) const {
if (verify_is_initialized("scratch_unified") && m_scratchUnifiedSupported &&
if (verify_is_initialized("scratch_unified") &&
m_scratchUnifiedCount < scratch_count(size)) {
m_scratchUnifiedCount = scratch_count(size);

Expand Down Expand Up @@ -792,15 +792,6 @@ void Cuda::impl_initialize(InitializationSettings const &settings) {

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

Impl::CudaInternal::m_scratchUnifiedSupported = cudaProp.unifiedAddressing;

if (Kokkos::show_warnings() &&
!Impl::CudaInternal::m_scratchUnifiedSupported) {
std::cerr << "Kokkos::Cuda device " << cudaProp.name << " capability "
<< cudaProp.major << "." << cudaProp.minor
<< " does not support unified virtual address space" << std::endl;
}

cudaStream_t singleton_stream;
KOKKOS_IMPL_CUDA_SAFE_CALL(
(Impl::CudaInternal::singleton().cuda_stream_create_wrapper(
Expand Down
1 change: 0 additions & 1 deletion core/src/Cuda/Kokkos_Cuda_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ class CudaInternal {
mutable std::size_t m_scratchUnifiedCount;
mutable std::size_t m_scratchFunctorSize;

inline static size_type m_scratchUnifiedSupported = 0;
mutable size_type* m_scratchSpace;
mutable size_type* m_scratchFlags;
mutable size_type* m_scratchUnified;
Expand Down

0 comments on commit 21f7243

Please sign in to comment.