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

[SYCL][CUDA] Remove size checks from USM allocations #10034

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

npmiller
Copy link
Contributor

These checks are causing issues for very large USM allocations because the MAX_MEM_ALLOC_SIZE reported is lower than what CUDA actually supports.

We will follow up with an update on the reported MAX_MEM_ALLOC_SIZE, but it makes sense to remove the checks either way, as the CUDA allocation functions will return an error if they can't allocate the memory.

These checks are causing issues for very large USM allocations because
the `MAX_MEM_ALLOC_SIZE` reported is lower than what CUDA actually
supports.

We will follow up with an update on the reported `MAX_MEM_ALLOC_SIZE`,
but it makes sense to remove the checks either way, as the CUDA
allocation functions will return an error if they can't allocate the
memory.
@npmiller npmiller requested a review from callumfare June 22, 2023 15:44
@npmiller npmiller requested a review from a team as a code owner June 22, 2023 15:44
@npmiller npmiller requested a review from jchlanda June 22, 2023 15:44
@npmiller npmiller temporarily deployed to aws June 22, 2023 16:01 — with GitHub Actions Inactive
@npmiller npmiller temporarily deployed to aws June 22, 2023 16:47 — with GitHub Actions Inactive
@npmiller npmiller temporarily deployed to aws June 27, 2023 11:37 — with GitHub Actions Inactive
@npmiller npmiller temporarily deployed to aws June 27, 2023 12:17 — with GitHub Actions Inactive
@npmiller
Copy link
Contributor Author

I had to fixup some of the assertions that were tripping up a test, but it's all fixed now

@npmiller
Copy link
Contributor Author

@intel/llvm-gatekeepers could we get some help merging this? thank you!

@dm-vodopyanov dm-vodopyanov merged commit 77e719a into intel:sycl Jun 28, 2023
steffenlarsen pushed a commit that referenced this pull request Sep 4, 2023
…#11023)

Resolve same issue fixed in
[PR](#10034)

Co-authored-by: Omar Ahmed <omar.ahmed@codeplay.com>
fabiomestre pushed a commit to fabiomestre/llvm that referenced this pull request Sep 26, 2023
These checks are causing issues for very large USM allocations because
the `MAX_MEM_ALLOC_SIZE` reported is lower than what CUDA actually
supports.

We will follow up with an update on the reported `MAX_MEM_ALLOC_SIZE`,
but it makes sense to remove the checks either way, as the CUDA
allocation functions will return an error if they can't allocate the
memory.
fabiomestre pushed a commit to fabiomestre/llvm that referenced this pull request Sep 26, 2023
…intel#11023)

Resolve same issue fixed in
[PR](intel#10034)

Co-authored-by: Omar Ahmed <omar.ahmed@codeplay.com>
fabiomestre pushed a commit to fabiomestre/unified-runtime that referenced this pull request Sep 26, 2023
… (#11023)

Resolve same issue fixed in
[PR](intel/llvm#10034)

Co-authored-by: Omar Ahmed <omar.ahmed@codeplay.com>
fabiomestre pushed a commit to oneapi-src/unified-runtime that referenced this pull request Sep 27, 2023
… (#11023)

Resolve same issue fixed in
[PR](intel/llvm#10034)

Co-authored-by: Omar Ahmed <omar.ahmed@codeplay.com>
omarahmed1111 added a commit to omarahmed1111/unified-runtime that referenced this pull request Oct 23, 2023
… (#11023)

Resolve same issue fixed in
[PR](intel/llvm#10034)

Co-authored-by: Omar Ahmed <omar.ahmed@codeplay.com>
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.

5 participants