Package | Description |
---|---|
org.bytedeco.cuda.global |
Modifier and Type | Method and Description |
---|---|
static int |
cudart.cudaDeviceGetDefaultMemPool(CUmemPoolHandle_st memPool,
int device)
\brief Returns the default mempool of a device
The default mempool of a device contains device memory from that device.
|
static int |
cudart.cudaDeviceGetMemPool(CUmemPoolHandle_st memPool,
int device)
\brief Gets the current mempool for a device
Returns the last pool provided to ::cudaDeviceSetMemPool for this device
or the device's default memory pool if ::cudaDeviceSetMemPool has never been called.
|
static int |
cudart.cudaDeviceSetMemPool(int device,
CUmemPoolHandle_st memPool)
\brief Sets the current memory pool of a device
The memory pool must be local to the specified device.
|
static int |
cudart.cudaMallocFromPoolAsync(Pointer ptr,
long size,
CUmemPoolHandle_st memPool,
CUstream_st stream) |
static int |
cudart.cudaMallocFromPoolAsync(PointerPointer ptr,
long size,
CUmemPoolHandle_st memPool,
CUstream_st stream)
\brief Allocates memory from a specified pool with stream ordered semantics.
|
static int |
cudart.cudaMemPoolCreate(CUmemPoolHandle_st memPool,
cudaMemPoolProps poolProps)
\brief Creates a memory pool
Creates a CUDA memory pool and returns the handle in \p pool.
|
static int |
cudart.cudaMemPoolDestroy(CUmemPoolHandle_st memPool)
\brief Destroys the specified memory pool
If any pointers obtained from this pool haven't been freed or
the pool has free operations that haven't completed
when ::cudaMemPoolDestroy is invoked, the function will return immediately and the
resources associated with the pool will be released automatically
once there are no more outstanding allocations.
|
static int |
cudart.cudaMemPoolExportToShareableHandle(Pointer shareableHandle,
CUmemPoolHandle_st memPool,
int handleType,
int flags)
\brief Exports a memory pool to the requested handle type.
|
static int |
cudart.cudaMemPoolGetAccess(int[] flags,
CUmemPoolHandle_st memPool,
cudaMemLocation location) |
static int |
cudart.cudaMemPoolGetAccess(IntBuffer flags,
CUmemPoolHandle_st memPool,
cudaMemLocation location) |
static int |
cudart.cudaMemPoolGetAccess(IntPointer flags,
CUmemPoolHandle_st memPool,
cudaMemLocation location)
\brief Returns the accessibility of a pool from a device
Returns the accessibility of the pool's memory from the specified location.
|
static int |
cudart.cudaMemPoolGetAttribute(CUmemPoolHandle_st memPool,
int attr,
Pointer value)
\brief Gets attributes of a memory pool
Supported attributes are:
- ::cudaMemPoolAttrReleaseThreshold: (value type = cuuint64_t)
Amount of reserved memory in bytes to hold onto before trying
to release memory back to the OS.
|
static int |
cudart.cudaMemPoolImportFromShareableHandle(CUmemPoolHandle_st memPool,
Pointer shareableHandle,
int handleType,
int flags)
\brief imports a memory pool from a shared handle.
|
static int |
cudart.cudaMemPoolImportPointer(Pointer ptr,
CUmemPoolHandle_st memPool,
cudaMemPoolPtrExportData exportData) |
static int |
cudart.cudaMemPoolImportPointer(PointerPointer ptr,
CUmemPoolHandle_st memPool,
cudaMemPoolPtrExportData exportData)
\brief Import a memory pool allocation from another process.
|
static int |
cudart.cudaMemPoolSetAccess(CUmemPoolHandle_st memPool,
cudaMemAccessDesc descList,
long count)
\brief Controls visibility of pools between devices
|
static int |
cudart.cudaMemPoolSetAttribute(CUmemPoolHandle_st memPool,
int attr,
Pointer value)
\brief Sets attributes of a memory pool
Supported attributes are:
- ::cudaMemPoolAttrReleaseThreshold: (value type = cuuint64_t)
Amount of reserved memory in bytes to hold onto before trying
to release memory back to the OS.
|
static int |
cudart.cudaMemPoolTrimTo(CUmemPoolHandle_st memPool,
long minBytesToKeep)
\brief Tries to release memory back to the OS
Releases memory back to the OS until the pool contains fewer than minBytesToKeep
reserved bytes, or there is no more memory that the allocator can safely release.
|
static int |
cudart.cuDeviceGetDefaultMemPool(CUmemPoolHandle_st pool_out,
int dev)
\brief Returns the default mempool of a device
The default mempool of a device contains device memory from that device.
|
static int |
cudart.cuDeviceGetMemPool(CUmemPoolHandle_st pool,
int dev)
\brief Gets the current mempool for a device
Returns the last pool provided to ::cuDeviceSetMemPool for this device
or the device's default memory pool if ::cuDeviceSetMemPool has never been called.
|
static int |
cudart.cuDeviceSetMemPool(int dev,
CUmemPoolHandle_st pool)
\brief Sets the current memory pool of a device
The memory pool must be local to the specified device.
|
static int |
cudart.cuMemAllocFromPoolAsync(long[] dptr,
long bytesize,
CUmemPoolHandle_st pool,
CUstream_st hStream) |
static int |
cudart.cuMemAllocFromPoolAsync(LongBuffer dptr,
long bytesize,
CUmemPoolHandle_st pool,
CUstream_st hStream) |
static int |
cudart.cuMemAllocFromPoolAsync(LongPointer dptr,
long bytesize,
CUmemPoolHandle_st pool,
CUstream_st hStream)
\brief Allocates memory from a specified pool with stream ordered semantics.
|
static int |
cudart.cuMemPoolCreate(CUmemPoolHandle_st pool,
CUmemPoolProps_v1 poolProps)
\brief Creates a memory pool
Creates a CUDA memory pool and returns the handle in \p pool.
|
static int |
cudart.cuMemPoolDestroy(CUmemPoolHandle_st pool)
\brief Destroys the specified memory pool
If any pointers obtained from this pool haven't been freed or
the pool has free operations that haven't completed
when ::cuMemPoolDestroy is invoked, the function will return immediately and the
resources associated with the pool will be released automatically
once there are no more outstanding allocations.
|
static int |
cudart.cuMemPoolExportToShareableHandle(Pointer handle_out,
CUmemPoolHandle_st pool,
int handleType,
long flags)
\brief Exports a memory pool to the requested handle type.
|
static int |
cudart.cuMemPoolGetAccess(int[] flags,
CUmemPoolHandle_st memPool,
CUmemLocation_v1 location) |
static int |
cudart.cuMemPoolGetAccess(IntBuffer flags,
CUmemPoolHandle_st memPool,
CUmemLocation_v1 location) |
static int |
cudart.cuMemPoolGetAccess(IntPointer flags,
CUmemPoolHandle_st memPool,
CUmemLocation_v1 location)
\brief Returns the accessibility of a pool from a device
Returns the accessibility of the pool's memory from the specified location.
|
static int |
cudart.cuMemPoolGetAttribute(CUmemPoolHandle_st pool,
int attr,
Pointer value)
\brief Gets attributes of a memory pool
Supported attributes are:
- ::CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: (value type = cuuint64_t)
Amount of reserved memory in bytes to hold onto before trying
to release memory back to the OS.
|
static int |
cudart.cuMemPoolImportFromShareableHandle(CUmemPoolHandle_st pool_out,
Pointer handle,
int handleType,
long flags)
\brief imports a memory pool from a shared handle.
|
static int |
cudart.cuMemPoolImportPointer(long[] ptr_out,
CUmemPoolHandle_st pool,
CUmemPoolPtrExportData_v1 shareData) |
static int |
cudart.cuMemPoolImportPointer(LongBuffer ptr_out,
CUmemPoolHandle_st pool,
CUmemPoolPtrExportData_v1 shareData) |
static int |
cudart.cuMemPoolImportPointer(LongPointer ptr_out,
CUmemPoolHandle_st pool,
CUmemPoolPtrExportData_v1 shareData)
\brief Import a memory pool allocation from another process.
|
static int |
cudart.cuMemPoolSetAccess(CUmemPoolHandle_st pool,
CUmemAccessDesc_v1 map,
long count)
\brief Controls visibility of pools between devices
|
static int |
cudart.cuMemPoolSetAttribute(CUmemPoolHandle_st pool,
int attr,
Pointer value)
\brief Sets attributes of a memory pool
Supported attributes are:
- ::CU_MEMPOOL_ATTR_RELEASE_THRESHOLD: (value type = cuuint64_t)
Amount of reserved memory in bytes to hold onto before trying
to release memory back to the OS.
|
static int |
cudart.cuMemPoolTrimTo(CUmemPoolHandle_st pool,
long minBytesToKeep)
\brief Tries to release memory back to the OS
Releases memory back to the OS until the pool contains fewer than minBytesToKeep
reserved bytes, or there is no more memory that the allocator can safely release.
|
Copyright © 2024. All rights reserved.