@Namespace(value="cv::cuda") @NoOffset @Properties(inherit=opencv_core.class) public class DeviceInfo extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
ComputeModeDefault
enum cv::cuda::DeviceInfo::ComputeMode
|
static int |
ComputeModeExclusive
enum cv::cuda::DeviceInfo::ComputeMode
|
static int |
ComputeModeExclusiveProcess
enum cv::cuda::DeviceInfo::ComputeMode
|
static int |
ComputeModeProhibited
enum cv::cuda::DeviceInfo::ComputeMode
|
Constructor and Description |
---|
DeviceInfo()
creates DeviceInfo object for the current GPU
|
DeviceInfo(int device_id)
\brief The constructors.
|
DeviceInfo(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
asyncEngineCount()
number of asynchronous engines
|
boolean |
canMapHostMemory()
device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer
|
int |
clockRate()
clock frequency in kilohertz
|
int |
computeMode()
compute mode
|
boolean |
concurrentKernels()
device can possibly execute multiple kernels concurrently
|
int |
deviceID()
\brief Returns system index of the CUDA device starting with 0.
|
boolean |
ECCEnabled()
device has ECC support enabled
|
long |
freeMemory() |
boolean |
integrated()
device is integrated as opposed to discrete
|
boolean |
isCompatible()
\brief Checks the CUDA module and device compatibility.
|
boolean |
kernelExecTimeoutEnabled()
specified whether there is a run time limit on kernels
|
int |
l2CacheSize()
size of L2 cache in bytes
|
int |
majorVersion()
major compute capability
|
Point3i |
maxGridSize()
maximum size of each dimension of a grid
|
int |
maxSurface1D()
maximum 1D surface size
|
Point |
maxSurface1DLayered()
maximum 1D layered surface dimensions
|
Point |
maxSurface2D()
maximum 2D surface dimensions
|
Point3i |
maxSurface2DLayered()
maximum 2D layered surface dimensions
|
Point3i |
maxSurface3D()
maximum 3D surface dimensions
|
int |
maxSurfaceCubemap()
maximum Cubemap surface dimensions
|
Point |
maxSurfaceCubemapLayered()
maximum Cubemap layered surface dimensions
|
int |
maxTexture1D()
maximum 1D texture size
|
Point |
maxTexture1DLayered()
maximum 1D layered texture dimensions
|
int |
maxTexture1DLinear()
maximum size for 1D textures bound to linear memory
|
int |
maxTexture1DMipmap()
maximum 1D mipmapped texture size
|
Point |
maxTexture2D()
maximum 2D texture dimensions
|
Point |
maxTexture2DGather()
maximum 2D texture dimensions if texture gather operations have to be performed
|
Point3i |
maxTexture2DLayered()
maximum 2D layered texture dimensions
|
Point3i |
maxTexture2DLinear()
maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory
|
Point |
maxTexture2DMipmap()
maximum 2D mipmapped texture dimensions
|
Point3i |
maxTexture3D()
maximum 3D texture dimensions
|
int |
maxTextureCubemap()
maximum Cubemap texture dimensions
|
Point |
maxTextureCubemapLayered()
maximum Cubemap layered texture dimensions
|
Point3i |
maxThreadsDim()
maximum size of each dimension of a block
|
int |
maxThreadsPerBlock()
maximum number of threads per block
|
int |
maxThreadsPerMultiProcessor()
maximum resident threads per multiprocessor
|
int |
memoryBusWidth()
global memory bus width in bits
|
int |
memoryClockRate()
peak memory clock frequency in kilohertz
|
long |
memPitch()
maximum pitch in bytes allowed by memory copies
|
int |
minorVersion()
minor compute capability
|
int |
multiProcessorCount()
number of multiprocessors on device
|
BytePointer |
name()
ASCII string identifying device
|
int |
pciBusID()
PCI bus ID of the device
|
int |
pciDeviceID()
PCI device ID of the device
|
int |
pciDomainID()
PCI domain ID of the device
|
void |
queryMemory(SizeTPointer totalMemory,
SizeTPointer freeMemory)
gets free and total device memory
|
int |
regsPerBlock()
32-bit registers available per block
|
long |
sharedMemPerBlock()
shared memory available per block in bytes
|
boolean |
supports(int feature_set)
\brief Provides information on CUDA feature support.
|
long |
surfaceAlignment()
alignment requirements for surfaces
|
boolean |
tccDriver()
true if device is a Tesla device using TCC driver, false otherwise
|
long |
textureAlignment()
alignment requirement for textures
|
long |
texturePitchAlignment()
pitch alignment requirement for texture references bound to pitched memory
|
long |
totalConstMem()
constant memory available on device in bytes
|
long |
totalGlobalMem()
global memory available on device in bytes
|
long |
totalMemory() |
boolean |
unifiedAddressing()
device shares a unified address space with the host
|
int |
warpSize()
warp size in threads
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int ComputeModeDefault
public static final int ComputeModeExclusive
public static final int ComputeModeProhibited
public static final int ComputeModeExclusiveProcess
public DeviceInfo(Pointer p)
Pointer.Pointer(Pointer)
.public DeviceInfo()
public DeviceInfo(int device_id)
device_id
- System index of the CUDA device starting with 0.
Constructs the DeviceInfo object for the specified device. If device_id parameter is missed, it constructs an object for the current device.
public int deviceID()
@Cast(value="const char*") public BytePointer name()
@Cast(value="size_t") public long totalGlobalMem()
@Cast(value="size_t") public long sharedMemPerBlock()
public int regsPerBlock()
public int warpSize()
@Cast(value="size_t") public long memPitch()
public int maxThreadsPerBlock()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxThreadsDim()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxGridSize()
public int clockRate()
@Cast(value="size_t") public long totalConstMem()
public int majorVersion()
public int minorVersion()
@Cast(value="size_t") public long textureAlignment()
@Cast(value="size_t") public long texturePitchAlignment()
public int multiProcessorCount()
@Cast(value="bool") public boolean kernelExecTimeoutEnabled()
@Cast(value="bool") public boolean integrated()
@Cast(value="bool") public boolean canMapHostMemory()
public int maxTexture1D()
public int maxTexture1DMipmap()
public int maxTexture1DLinear()
@ByVal @Cast(value="cv::Vec2i*") public Point maxTexture2D()
@ByVal @Cast(value="cv::Vec2i*") public Point maxTexture2DMipmap()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxTexture2DLinear()
@ByVal @Cast(value="cv::Vec2i*") public Point maxTexture2DGather()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxTexture3D()
public int maxTextureCubemap()
@ByVal @Cast(value="cv::Vec2i*") public Point maxTexture1DLayered()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxTexture2DLayered()
@ByVal @Cast(value="cv::Vec2i*") public Point maxTextureCubemapLayered()
public int maxSurface1D()
@ByVal @Cast(value="cv::Vec2i*") public Point maxSurface2D()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxSurface3D()
@ByVal @Cast(value="cv::Vec2i*") public Point maxSurface1DLayered()
@ByVal @Cast(value="cv::Vec3i*") public Point3i maxSurface2DLayered()
public int maxSurfaceCubemap()
@ByVal @Cast(value="cv::Vec2i*") public Point maxSurfaceCubemapLayered()
@Cast(value="size_t") public long surfaceAlignment()
@Cast(value="bool") public boolean concurrentKernels()
public int pciBusID()
public int pciDeviceID()
public int pciDomainID()
@Cast(value="bool") public boolean tccDriver()
public int asyncEngineCount()
@Cast(value="bool") public boolean unifiedAddressing()
public int memoryClockRate()
public int memoryBusWidth()
public int l2CacheSize()
public int maxThreadsPerMultiProcessor()
public void queryMemory(@Cast(value="size_t*") @ByRef SizeTPointer totalMemory, @Cast(value="size_t*") @ByRef SizeTPointer freeMemory)
@Cast(value="bool") public boolean supports(@Cast(value="cv::cuda::FeatureSet") int feature_set)
feature_set
- Features to be checked. See cuda::FeatureSet.
This function returns true if the device has the specified CUDA feature. Otherwise, it returns false
Copyright © 2020. All rights reserved.