Skip to content

[flang][cuda] Use the aysncId in device allocation #135099

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

clementval
Copy link
Contributor

Use cudaMallocAsync in the CUFAllocDevice allocator when asyncId is provided.

More work is needed to be able to call cudaFreeAsync since the allocated address and stream needs to be tracked.

@clementval clementval requested a review from wangzpgi April 9, 2025 23:00
@clementval clementval merged commit 56b7923 into llvm:main Apr 10, 2025
10 checks passed
@clementval clementval deleted the cuf_stream_alloc1 branch April 10, 2025 00:34
AllinLeeYL pushed a commit to AllinLeeYL/llvm-project that referenced this pull request Apr 10, 2025
Use `cudaMallocAsync` in the `CUFAllocDevice` allocator when asyncId is
provided.

More work is needed to be able to call `cudaFreeAsync` since the
allocated address and stream needs to be tracked.
var-const pushed a commit to ldionne/llvm-project that referenced this pull request Apr 17, 2025
Use `cudaMallocAsync` in the `CUFAllocDevice` allocator when asyncId is
provided.

More work is needed to be able to call `cudaFreeAsync` since the
allocated address and stream needs to be tracked.
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.

2 participants