Add forgotten memcpy for SelfSufficient buffers
This commit is contained in:
parent
1ca31f4929
commit
5f9725d515
@ -208,15 +208,14 @@ template <typename F=double>
|
|||||||
auto dataPointer = freePointers.begin();
|
auto dataPointer = freePointers.begin();
|
||||||
freePointers.erase(dataPointer);
|
freePointers.erase(dataPointer);
|
||||||
blank.data = *dataPointer;
|
blank.data = *dataPointer;
|
||||||
//
|
WITH_CHRONO("cuda:memcpy",
|
||||||
//
|
WITH_CHRONO("cuda:memcpy:self-sufficient",
|
||||||
// TODO [#A]: do cuMemcpy of
|
_CHECK_CUDA_SUCCESS("copying mpi data to device",
|
||||||
// sources[from.source].data() ⇒ blank.data
|
cuMemcpyHtoD(blank.data,
|
||||||
// Do this when everything else is working.
|
(void*)sources[from.source].data(),
|
||||||
// This will probably be a bottleneck of the H-to-D communication,
|
sizeof(F) * sources[from.source].size()));
|
||||||
// as most slices are SelfSufficient.
|
))
|
||||||
//
|
|
||||||
//
|
|
||||||
#else
|
#else
|
||||||
blank.data = sources[from.source].data();
|
blank.data = sources[from.source].data();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user