public class CUaccessPolicyWindow extends Object
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes. num_bytes is limited by CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE. Partition into many segments and assign segments such that: sum of "hit segments" / window == approx. ratio. sum of "miss segments" / window == approx 1-ratio. Segments and ratio specifications are fitted to the capabilities of the architecture. Accesses in a hit segment apply the hitProp access policy. Accesses in a miss segment apply the missProp access policy.
Modifier and Type | Field and Description |
---|---|
Pointer |
base_ptr
Starting address of the access policy window.
|
int |
hitProp
CUaccessProperty set for hit.
|
float |
hitRatio
hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp.
|
int |
missProp
CUaccessProperty set for miss.
|
long |
num_bytes
Size in bytes of the window policy.
|
Constructor and Description |
---|
CUaccessPolicyWindow()
Creates a new, uninitialized CUaccessPolicyWindow
|
CUaccessPolicyWindow(Pointer base_ptr,
long num_bytes,
float hitRatio,
int hitProp,
int missProp)
Creates a new CUaccessPolicyWindow with the given values
|
public Pointer base_ptr
public long num_bytes
public float hitRatio
public int hitProp
public int missProp
public CUaccessPolicyWindow()
public CUaccessPolicyWindow(Pointer base_ptr, long num_bytes, float hitRatio, int hitProp, int missProp)
base_ptr
- The base_ptr valuenum_bytes
- The num_bytes valuehitRatio
- The hitRatio valuehitProp
- The hitProp valuemissProp
- The missProp valueCopyright © 2020. All rights reserved.