8 #ifndef K_FIRESYNC_MEMORY_DOMAIN_BLOCK_INFO_H
9 #define K_FIRESYNC_MEMORY_DOMAIN_BLOCK_INFO_H
22 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_HOST (0x01)
23 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA (0x02)
24 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_DEVICE (0x04)
25 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_MANAGED (0x08)
26 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_PINNED (0x10)
27 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_OPTIONS (0x1F)
30 #include <kFireSync/Blocks/kMemoryDomainBlockInfo.x.h>
124 obj->forceCloneEnabled = enabled;
140 return obj->forceCloneEnabled;
155 obj->outputMemory = outputType;
171 return obj->outputMemory;
kStatus kMemoryDomainBlockInfo_Construct(kMemoryDomainBlockInfo *info, kAlloc allocator)
Constructs a kMemoryDomainBlockInfo object.
k16u kMemoryDomainBlockInfo_OutputPortId()
Gets the output port id.
Definition: kMemoryDomainBlockInfo.h:178
kBool kMemoryDomainBlockInfo_ForceCloneEnabled(kMemoryDomainBlockInfo info)
Reports whether forced cloning is enabled.
Definition: kMemoryDomainBlockInfo.h:136
kStatus kMemoryDomainBlockInfo_Load(kMemoryDomainBlockInfo *info, kXml xml, kAlloc allocator)
Constructs a kMemoryDomainBlockInfo object and loads its content from an XML object.
Essential declarations related to FireSync nodes.
kStatus kMemoryDomainBlockInfo_Store(kMemoryDomainBlockInfo info, kXml *xml, kAlloc allocator)
Constructs a kXml object and uses it to store the content of this kMemoryDomainBlockInfo instance...
kStatus kMemoryDomainBlockInfo_SetOutputMemory(kMemoryDomainBlockInfo info, kMemoryDomainBlockOutput outputType)
Sets the desired output memory type.
Definition: kMemoryDomainBlockInfo.h:151
#define kObj(TypeName_T, T_object)
kStatus kMemoryDomainBlockInfo_Write(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item)
Writes kMemoryDomainBlockInfo state to a kXml object.
kStatus kMemoryDomainBlockInfo_Validate(kMemoryDomainBlockInfo info)
Checks and automatically corrects all state variables.
Represents a kMemoryDomainBlock output memory type.
Represents configuration for kMemoryDomainBlock.
kStatus kMemoryDomainBlockInfo_Read(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item)
Reads kMemoryDomainBlockInfo state from a kXml object.
kStatus kMemoryDomainBlockInfo_Clear(kMemoryDomainBlockInfo info)
Resets all state variables to default values.
kMemoryDomainBlockOutput kMemoryDomainBlockInfo_OutputMemory(kMemoryDomainBlockInfo info)
Reports the selected output memory type.
Definition: kMemoryDomainBlockInfo.h:167
kStatus kMemoryDomainBlockInfo_EnableForceClone(kMemoryDomainBlockInfo info, kBool enabled)
Enables forced cloning, which causes the block to clone even when incoming memory may already be suit...
Definition: kMemoryDomainBlockInfo.h:120
k16u kMemoryDomainBlockInfo_InputPortId()
Gets the input port id.
Definition: kMemoryDomainBlockInfo.h:175