Skip to content

Commit 91db286

Browse files
authored
Merge pull request oneapi-src#371 from igchor/ur_usm_pool_limits_t
Remove non-generic paramers from ur_usm_pool_limits_desc_t
2 parents 7dd41b0 + e646ca8 commit 91db286

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

include/ur.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,10 +1051,8 @@ class ur_usm_pool_limits_desc_t(Structure):
10511051
("stype", ur_structure_type_t), ## [in] type of this structure, must be
10521052
## ::UR_STRUCTURE_TYPE_USM_POOL_LIMITS_DESC
10531053
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
1054-
("maxPoolSize", c_size_t), ## [in] Maximum size of a memory pool
10551054
("maxPoolableSize", c_size_t), ## [in] Allocations up to this limit will be subject to pooling
1056-
("capacity", c_size_t), ## [in] When pooling, each bucket will hold a max of 4 unfreed slabs
1057-
("slabMinSize", c_size_t) ## [in] Minimum allocation size that will be requested from the driver
1055+
("minDriverAllocSize", c_size_t) ## [in] Minimum allocation size that will be requested from the driver
10581056
]
10591057

10601058
###############################################################################

include/ur_api.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,10 +2257,8 @@ typedef struct ur_usm_pool_limits_desc_t {
22572257
ur_structure_type_t stype; ///< [in] type of this structure, must be
22582258
///< ::UR_STRUCTURE_TYPE_USM_POOL_LIMITS_DESC
22592259
const void *pNext; ///< [in][optional] pointer to extension-specific structure
2260-
size_t maxPoolSize; ///< [in] Maximum size of a memory pool
22612260
size_t maxPoolableSize; ///< [in] Allocations up to this limit will be subject to pooling
2262-
size_t capacity; ///< [in] When pooling, each bucket will hold a max of 4 unfreed slabs
2263-
size_t slabMinSize; ///< [in] Minimum allocation size that will be requested from the driver
2261+
size_t minDriverAllocSize; ///< [in] Minimum allocation size that will be requested from the driver
22642262

22652263
} ur_usm_pool_limits_desc_t;
22662264

scripts/core/usm.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,11 @@ class: $xUSM
170170
name: $x_usm_pool_limits_desc_t
171171
base: $x_base_desc_t
172172
members:
173-
- type: "size_t"
174-
name: maxPoolSize
175-
desc: "[in] Maximum size of a memory pool"
176173
- type: "size_t"
177174
name: maxPoolableSize
178175
desc: "[in] Allocations up to this limit will be subject to pooling"
179176
- type: "size_t"
180-
name: capacity
181-
desc: "[in] When pooling, each bucket will hold a max of 4 unfreed slabs"
182-
- type: "size_t"
183-
name: slabMinSize
177+
name: minDriverAllocSize
184178
desc: "[in] Minimum allocation size that will be requested from the driver"
185179
--- #--------------------------------------------------------------------------
186180
type: function

0 commit comments

Comments
 (0)