Skip to content

Commit

Permalink
Merge pull request #371 from igchor/ur_usm_pool_limits_t
Browse files Browse the repository at this point in the history
Remove non-generic paramers from ur_usm_pool_limits_desc_t
  • Loading branch information
pbalcer authored Mar 24, 2023
2 parents 7dd41b0 + e646ca8 commit 91db286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions include/ur.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,8 @@ class ur_usm_pool_limits_desc_t(Structure):
("stype", ur_structure_type_t), ## [in] type of this structure, must be
## ::UR_STRUCTURE_TYPE_USM_POOL_LIMITS_DESC
("pNext", c_void_p), ## [in][optional] pointer to extension-specific structure
("maxPoolSize", c_size_t), ## [in] Maximum size of a memory pool
("maxPoolableSize", c_size_t), ## [in] Allocations up to this limit will be subject to pooling
("capacity", c_size_t), ## [in] When pooling, each bucket will hold a max of 4 unfreed slabs
("slabMinSize", c_size_t) ## [in] Minimum allocation size that will be requested from the driver
("minDriverAllocSize", c_size_t) ## [in] Minimum allocation size that will be requested from the driver
]

###############################################################################
Expand Down
4 changes: 1 addition & 3 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2257,10 +2257,8 @@ typedef struct ur_usm_pool_limits_desc_t {
ur_structure_type_t stype; ///< [in] type of this structure, must be
///< ::UR_STRUCTURE_TYPE_USM_POOL_LIMITS_DESC
const void *pNext; ///< [in][optional] pointer to extension-specific structure
size_t maxPoolSize; ///< [in] Maximum size of a memory pool
size_t maxPoolableSize; ///< [in] Allocations up to this limit will be subject to pooling
size_t capacity; ///< [in] When pooling, each bucket will hold a max of 4 unfreed slabs
size_t slabMinSize; ///< [in] Minimum allocation size that will be requested from the driver
size_t minDriverAllocSize; ///< [in] Minimum allocation size that will be requested from the driver

} ur_usm_pool_limits_desc_t;

Expand Down
8 changes: 1 addition & 7 deletions scripts/core/usm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,11 @@ class: $xUSM
name: $x_usm_pool_limits_desc_t
base: $x_base_desc_t
members:
- type: "size_t"
name: maxPoolSize
desc: "[in] Maximum size of a memory pool"
- type: "size_t"
name: maxPoolableSize
desc: "[in] Allocations up to this limit will be subject to pooling"
- type: "size_t"
name: capacity
desc: "[in] When pooling, each bucket will hold a max of 4 unfreed slabs"
- type: "size_t"
name: slabMinSize
name: minDriverAllocSize
desc: "[in] Minimum allocation size that will be requested from the driver"
--- #--------------------------------------------------------------------------
type: function
Expand Down

0 comments on commit 91db286

Please sign in to comment.