Skip to content

Commit 834e643

Browse files
fabiomestrekbenzie
authored andcommitted
Fix formatting
1 parent 77b3554 commit 834e643

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/adapters/cuda/memory.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct BufferMem {
7171
/// Size of the allocation in bytes
7272
size_t Size;
7373
/// A map that contains all the active mappings for this buffer.
74-
std::unordered_map<void*, BufferMap> PtrToBufferMap;
74+
std::unordered_map<void *, BufferMap> PtrToBufferMap;
7575

7676
AllocMode MemAllocMode;
7777

@@ -84,7 +84,7 @@ struct BufferMem {
8484

8585
size_t getSize() const noexcept { return Size; }
8686

87-
BufferMap * getMapDetails(void* Map) {
87+
BufferMap *getMapDetails(void *Map) {
8888
auto details = PtrToBufferMap.find(Map);
8989
if (details != PtrToBufferMap.end()) {
9090
return &details->second;
@@ -104,7 +104,8 @@ struct BufferMem {
104104
/// memory on the host.
105105
auto MapMem = std::make_unique<unsigned char[]>(MapSize);
106106
MapPtr = MapMem.get();
107-
PtrToBufferMap.insert({MapPtr, BufferMap(MapSize, MapOffset, MapFlags, MapMem)});
107+
PtrToBufferMap.insert(
108+
{MapPtr, BufferMap(MapSize, MapOffset, MapFlags, MapMem)});
108109
} else {
109110
/// However, if HostPtr already has valid memory (e.g. pinned allocation),
110111
/// we can just use that memory for the mapping.
@@ -115,7 +116,7 @@ struct BufferMem {
115116
}
116117

117118
/// Detach the allocation from the host memory.
118-
void unmap(void * MapPtr) noexcept {
119+
void unmap(void *MapPtr) noexcept {
119120
assert(MapPtr != nullptr);
120121
PtrToBufferMap.erase(MapPtr);
121122
}

0 commit comments

Comments
 (0)