mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-14 02:03:03 +00:00
Two follow-ups to commit 7bc5e040:
* Rename mscclpp::memset to mscclpp::gpuMemset for symmetry with
gpuMemcpy / gpuMemcpyAsync, and avoid shadowing std::memset for
callers that pull the namespace in. Also add the missing doc
comment.
* Move the per-slot zeroing from getToken() into the deleter so the
cost is paid on release rather than acquire. This is safe because
gpuCallocPhysical already zeros the underlying buffer at TokenPool
construction, so first-time tokens are clean and recycled tokens
are scrubbed on release.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>