Skip to content

Commit

Permalink
Merge pull request #3007 from JasonRuonanWang/master
Browse files Browse the repository at this point in the history
fix gcc9 compile error for ime transport
  • Loading branch information
JasonRuonanWang authored Jan 19, 2022
2 parents 444d924 + 02a08be commit 3fc2e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/adios2/helper/adiosMemory.inl
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ template <class T>
void CopyFromGPUToBuffer(std::vector<char> &buffer, size_t &position,
const T *source, const size_t elements) noexcept
{
CudaMemCopyToBuffer(buffer.data(), position, source, elements * sizeof(T));
CudaMemCopyToBuffer(buffer.data(), position, source, elements * sizeof(T));
position += elements * sizeof(T);
}

template <class T>
void CudaMemCopyToBuffer(char *buffer, size_t position,
const T *source, const size_t size) noexcept
void CudaMemCopyToBuffer(char *buffer, size_t position, const T *source,
const size_t size) noexcept
{
const char *src = reinterpret_cast<const char *>(source);
MemcpyGPUToBuffer(buffer + position, src, size);
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/toolkit/transport/file/FileIME.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace adios2
namespace transport
{

std::atomic_uint FileIME::client_refcount = 0;
std::atomic_uint FileIME::client_refcount(0);

FileIME::FileIME(helper::Comm const &comm) : Transport("File", "IME", comm)
{
Expand Down

0 comments on commit 3fc2e4b

Please sign in to comment.