Skip to content
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

[ur] extend ur_usm_pool_limits_desc_t and rename members #324

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions include/ur.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,10 +903,9 @@ 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
("maxUnfreedMemory", c_size_t), ## [in] Maximum amount of free memory kept in the 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
5 changes: 2 additions & 3 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2081,10 +2081,9 @@ 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 maxUnfreedMemory; ///< [in] Maximum amount of free memory kept in the 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
9 changes: 3 additions & 6 deletions scripts/core/usm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,13 @@ 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"
name: maxUnfreedMemory
desc: "[in] Maximum amount of free memory kept in the 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