Skip to content

Commit

Permalink
Bug fix, forgot to guard MemorySpace::Detect
Browse files Browse the repository at this point in the history
  • Loading branch information
anagainaru committed Jan 28, 2023
1 parent fe6d73b commit 2046692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adios2/core/VariableBase.cpp
Expand Up @@ -48,12 +48,12 @@ size_t VariableBase::TotalSize() const noexcept

MemorySpace VariableBase::GetMemorySpace(const void *ptr)
{
#ifdef ADIOS2_HAVE_GPU_SUPPORT
if (m_MemSpace != MemorySpace::Detect)
{
return m_MemSpace;
}

#ifdef ADIOS2_HAVE_GPU_SUPPORT
if (helper::IsGPUbuffer(ptr))
{
return MemorySpace::GPU;
Expand Down

0 comments on commit 2046692

Please sign in to comment.