Skip to content

Conversation

@martygrant
Copy link
Contributor

Fixes oneapi-src/unified-runtime#1837

The UR OpenCL adapter expects patterns of 2 for USM allocs, and fallsback to using clHostMemAllocINTEL_fn for non patterns of 2. Some devices/platforms don't support this extension so we can just use a regular malloc instead.

@martygrant martygrant requested a review from a team as a code owner April 21, 2025 16:43
@martygrant martygrant marked this pull request as draft April 21, 2025 16:49
@martygrant martygrant marked this pull request as ready for review April 23, 2025 09:34
@martygrant martygrant force-pushed the martin/openclUSMAlloc branch from 0f09aef to b8bc61a Compare April 25, 2025 14:16
@kbenzie kbenzie changed the title Use regular malloc where clHostMemAllocINTEL_fn is not supported for USM allocs. [UR][CL] Use regular malloc where clHostMemAllocINTEL_fn is not supported for USM allocs. Apr 25, 2025
@martygrant
Copy link
Contributor Author

Failing test for Basic/sycl_2020_images/host_task_unsampled_image_write.cpp tracked here #18085

…callback structs in usm.hpp with a base class and derived classes for USM and non-USM free calls.
…leterCallbackInfoIntel to AllocDeleterCallbackInfoUSM. Correct AllocDeleterCallback type.
…ckInfoBase destructor into class definition.
@martygrant martygrant merged commit 59eb54a into sycl Apr 30, 2025
44 of 46 checks passed
@martygrant martygrant deleted the martin/openclUSMAlloc branch April 30, 2025 11:21
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.

Use of urEnqueueUSMFill on OpenCL enforces requirement on Host Mem Allocs for odd sizes of pattern

3 participants