public class UcpMemMapParams extends UcxParams
| Constructor and Description |
|---|
UcpMemMapParams() |
| Modifier and Type | Method and Description |
|---|---|
UcpMemMapParams |
allocate()
Identify requirement for allocation, if passed address is not a null-pointer
then it will be used as a hint or direct address for allocation.
|
UcpMemMapParams |
clear()
Reset state of parameters.
|
UcpMemMapParams |
fixed()
Don't interpret address as a hint: place the mapping at exactly that
address.
|
long |
getAddress() |
long |
getLength() |
UcpMemMapParams |
nonBlocking()
Complete the registration faster, possibly by not populating the pages up-front,
and mapping them later when they are accessed by communication routines.
|
UcpMemMapParams |
setAddress(long address) |
UcpMemMapParams |
setLength(long length) |
UcpMemMapParams |
setMemoryType(int memoryType)
Memory type (for possible memory types see
UcsConstants.MEMORY_TYPE)
It is an optimization hint to avoid memory type detection for map buffer. |
UcpMemMapParams |
setProtection(long protection)
Memory protection mode, e.g.
|
checkArraySizespublic UcpMemMapParams clear()
UcxParamspublic UcpMemMapParams setAddress(long address)
public long getAddress()
public UcpMemMapParams setLength(long length)
public long getLength()
public UcpMemMapParams allocate()
public UcpMemMapParams nonBlocking()
public UcpMemMapParams fixed()
public UcpMemMapParams setProtection(long protection)
UcpConstants.UCP_MEM_MAP_PROT_LOCAL_READ
This value is optional. If it's not set, the UcpContext.memoryMap(UcpMemMapParams)
routine will consider the flags as set to
UCP_MEM_MAP_PROT_LOCAL_READ|UCP_MEM_MAP_PROT_LOCAL_WRITE|
UCP_MEM_MAP_PROT_REMOTE_READ|UCP_MEM_MAP_PROT_REMOTE_WRITE.public UcpMemMapParams setMemoryType(int memoryType)
UcsConstants.MEMORY_TYPE)
It is an optimization hint to avoid memory type detection for map buffer.
The meaning of this field depends on the operation type.
- Memory allocation: (allocate() is set) This field
specifies the type of memory to allocate. If it's not set
UcsConstants.MEMORY_TYPE.UCS_MEMORY_TYPE_HOST
will be assumed by default.
- Memory registration: This field specifies the type of memory which is
pointed by setAddress(long). If it's not set,
or set to UcsConstants.MEMORY_TYPE.UCS_MEMORY_TYPE_UNKNOWN,
the memory type will be detected internally.Copyright © 2021. All rights reserved.