# CUpti_ActivityMemoryPool Struct Reference
[CUPTI Activity API]

The activity record for memory pool. More...

## Data Fields
uint64_t | address
uint32_t | correlationId
uint32_t | deviceId
CUpti_ActivityKind | kind
CUpti_ActivityMemoryPoolOperationType | memoryPoolOperationType
CUpti_ActivityMemoryPoolType | memoryPoolType
size_t | minBytesToKeep
uint32_t | pad
uint32_t | processId
uint64_t | releaseThreshold
uint64_t | size
uint64_t | timestamp

## Detailed Description

This activity record represents a memory pool creation, destruction and trimming (CUPTI_ACTIVITY_KIND_MEMORY_POOL). This activity record provides separate records for memory pool creation, destruction and triming operations. This allows to correlate the corresponding driver and runtime API activity record with the memory pool operation.

## Field Documentation

uint64_t CUpti_ActivityMemoryPool::address

The virtual address of the allocation.

uint32_t CUpti_ActivityMemoryPool::correlationId

The correlation ID of the memory pool operation. Each memory pool operation is assigned a unique correlation ID that is identical to the correlation ID in the driver and runtime API activity record that launched the memory operation.

uint32_t CUpti_ActivityMemoryPool::deviceId

The ID of the device where the memory pool is created.

CUpti_ActivityKind CUpti_ActivityMemoryPool::kind

The activity record kind, must be CUPTI_ACTIVITY_KIND_MEMORY_POOL

CUpti_ActivityMemoryPoolOperationType CUpti_ActivityMemoryPool::memoryPoolOperationType

The memory operation requested by the user, CUpti_ActivityMemoryPoolOperationType.

CUpti_ActivityMemoryPoolType CUpti_ActivityMemoryPool::memoryPoolType

The type of the memory pool, CUpti_ActivityMemoryPoolType

size_t CUpti_ActivityMemoryPool::minBytesToKeep

The minimum bytes to keep of the memory pool.

Parameters:

  | minBytesToKeep | is valid for CUPTI_ACTIVITY_MEMORY_POOL_OPERATION_TYPE_TRIMMED, CUpti_ActivityMemoryPoolOperationType

uint32_t CUpti_ActivityMemoryPool::pad

Undefined. Reserved for internal use.

uint32_t CUpti_ActivityMemoryPool::processId

The ID of the process to which this record belongs to.

uint64_t CUpti_ActivityMemoryPool::releaseThreshold

The release threshold of the memory pool.

Parameters:

  | releaseThreshold | is valid for CUPTI_ACTIVITY_MEMORY_POOL_TYPE_LOCAL, CUpti_ActivityMemoryPoolType.

uint64_t CUpti_ActivityMemoryPool::size

The size of the memory pool operation in bytes.

Parameters:

  | size | is valid for CUPTI_ACTIVITY_MEMORY_POOL_TYPE_LOCAL, CUpti_ActivityMemoryPoolType.

uint64_t CUpti_ActivityMemoryPool::timestamp

The start timestamp for the memory operation, in ns.