diff --git a/source/adios2/helper/adiosMemory.inl b/source/adios2/helper/adiosMemory.inl index efdb878be0..083f7a68c9 100644 --- a/source/adios2/helper/adiosMemory.inl +++ b/source/adios2/helper/adiosMemory.inl @@ -79,13 +79,13 @@ template void CopyFromGPUToBuffer(std::vector &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 -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(source); MemcpyGPUToBuffer(buffer + position, src, size); diff --git a/source/adios2/toolkit/transport/file/FileIME.cpp b/source/adios2/toolkit/transport/file/FileIME.cpp index cbc47769a0..5a46b17cc3 100644 --- a/source/adios2/toolkit/transport/file/FileIME.cpp +++ b/source/adios2/toolkit/transport/file/FileIME.cpp @@ -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) {