Skip to content

Commit 660f1f4

Browse files
Merge pull request #1059 from igchor/l0_page_query_ordinal
L0 provider: implement min/recommended page size query
2 parents 504ca01 + 5e1f9d8 commit 660f1f4

File tree

8 files changed

+277
-120
lines changed

8 files changed

+277
-120
lines changed

include/umf/providers/provider_level_zero.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Intel Corporation
2+
* Copyright (C) 2024-2025 Intel Corporation
33
*
44
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -83,6 +83,14 @@ umf_result_t umfLevelZeroMemoryProviderParamsSetFreePolicy(
8383
umf_level_zero_memory_provider_params_handle_t hParams,
8484
umf_level_zero_memory_provider_free_policy_t policy);
8585

86+
/// @brief Set the device ordinal in the parameters struct.
87+
/// @param hParams handle to the parameters of the Level Zero Memory Provider.
88+
/// @param deviceOrdinal device ordinal.
89+
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
90+
umf_result_t umfLevelZeroMemoryProviderParamsSetDeviceOrdinal(
91+
umf_level_zero_memory_provider_params_handle_t hParams,
92+
uint32_t deviceOrdinal);
93+
8694
umf_memory_provider_ops_t *umfLevelZeroMemoryProviderOps(void);
8795

8896
#ifdef __cplusplus

src/libumf.def

+1
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ EXPORTS
122122
umfFixedMemoryProviderParamsCreate
123123
umfFixedMemoryProviderParamsDestroy
124124
umfLevelZeroMemoryProviderParamsSetFreePolicy
125+
umfLevelZeroMemoryProviderParamsSetDeviceOrdinal

src/libumf.map

+1
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,5 @@ UMF_0.11 {
120120
umfFixedMemoryProviderParamsCreate;
121121
umfFixedMemoryProviderParamsDestroy;
122122
umfLevelZeroMemoryProviderParamsSetFreePolicy;
123+
umfLevelZeroMemoryProviderParamsSetDeviceOrdinal;
123124
} UMF_0.10;

0 commit comments

Comments
 (0)