Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gcc9 compile error for ime transport #3007

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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