Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIO CPU Locked Tensor #6592

Merged
merged 26 commits into from
Oct 9, 2024
Merged

AIO CPU Locked Tensor #6592

merged 26 commits into from
Oct 9, 2024

Conversation

jomayeri
Copy link
Contributor

@jomayeri jomayeri commented Sep 30, 2024

Restoring the functionality of the cpu locked tensor in the AIO library.
Make async_io operator available for CPU accelerator, i.e., CPU only environment.

@tjruwase tjruwase requested review from tjruwase and removed request for arashb and awan-10 October 1, 2024 13:50
@tjruwase
Copy link
Contributor

tjruwase commented Oct 1, 2024

@jomayeri, need to re-enable these unit tests

@pytest.mark.parametrize("use_cuda_pinned_tensor", [True]) # TODO: aio_handle pinned tensor API is broken

@jomayeri jomayeri requested a review from loadams as a code owner October 1, 2024 18:41
@jomayeri jomayeri requested a review from tohtana as a code owner October 7, 2024 17:19
csrc/aio/common/deepspeed_aio_utils.cpp Outdated Show resolved Hide resolved
@jomayeri jomayeri added this pull request to the merge queue Oct 9, 2024
Merged via the queue into master with commit a1f98bd Oct 9, 2024
13 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2024
We have found that #6592 uses `_pinned_tensor_mgr` to create cpu bounce
buffer, which is same with what our xpu accelerator currently doing.
So no need to use xpu device specific cpu_op_desc_t.
In this PR:
1. remove custom csrc/xpu/aio/deepspeed_cpu_op.cpp
2. modify xpu async_io opbuilder.

This issue cannot be easily done with revert #6532 , for we added some
source file as last time GDS feature going in DS. So file this new PR :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants