Skip to content

[UR][L0 adapter] Move a piece of init code code to platform #18237

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

mateuszpn
Copy link
Contributor

Move a piece of call_once init code to ur_platform_handle_t_::initialize()

@mateuszpn mateuszpn marked this pull request as ready for review April 30, 2025 09:24
@mateuszpn mateuszpn requested a review from a team as a code owner April 30, 2025 09:24
#include "sampler.hpp"
#include "ur_interface_loader.hpp"

typedef ze_result_t(ZE_APICALL *zeMemGetPitchFor2dImage_pfn)(
ze_context_handle_t hContext, ze_device_handle_t hDevice, size_t imageWidth,
size_t imageHeight, unsigned int elementSizeInBytes, size_t *rowPitch);

typedef ze_result_t(ZE_APICALL *zeImageGetDeviceOffsetExp_pfn)(
ze_image_handle_t hImage, uint64_t *pDeviceOffset);

zeMemGetPitchFor2dImage_pfn zeMemGetPitchFor2dImageFunctionPtr = nullptr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this one as well?

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