public class cudaAccessPolicyWindow 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. 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 |
---|
cudaAccessPolicyWindow()
Creates a new, uninitialized cudaAccessPolicyWindow
|
cudaAccessPolicyWindow(Pointer base_ptr,
long num_bytes,
float hitRatio,
int hitProp,
int missProp)
Creates a new cudaAccessPolicyWindow with the given values
|
public Pointer base_ptr
public long num_bytes
public float hitRatio
public int hitProp
public int missProp
public cudaAccessPolicyWindow()
public cudaAccessPolicyWindow(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.