MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / copy

Method copy

src/Initializer/GlobalData.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142real* OnDevice::DeviceCopyPolicy::copy(const real* first, const real* last, real*& mem) {
143#ifdef ACL_DEVICE
144 device::DeviceInstance& device = device::DeviceInstance::getInstance();
145 const unsigned bytes = (last - first) * sizeof(real);
146 device.api->copyTo(mem, first, bytes);
147 mem += (last - first);
148 return mem;
149#else // ACL_DEVICE
150 return nullptr;
151#endif
152}
153
154} // namespace matrixmanip
155

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected