@Namespace(value="cv::cuda")
@NoOffset
public static class opencv_core.DeviceInfo
extends org.bytedeco.javacpp.Pointer
| 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(long size)
Native array allocator.
|
DeviceInfo(org.bytedeco.javacpp.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
|
opencv_core.Point3i |
maxGridSize()
maximum size of each dimension of a grid
|
int |
maxSurface1D()
maximum 1D surface size
|
opencv_core.Point |
maxSurface1DLayered()
maximum 1D layered surface dimensions
|
opencv_core.Point |
maxSurface2D()
maximum 2D surface dimensions
|
opencv_core.Point3i |
maxSurface2DLayered()
maximum 2D layered surface dimensions
|
opencv_core.Point3i |
maxSurface3D()
maximum 3D surface dimensions
|
int |
maxSurfaceCubemap()
maximum Cubemap surface dimensions
|
opencv_core.Point |
maxSurfaceCubemapLayered()
maximum Cubemap layered surface dimensions
|
int |
maxTexture1D()
maximum 1D texture size
|
opencv_core.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
|
opencv_core.Point |
maxTexture2D()
maximum 2D texture dimensions
|
opencv_core.Point |
maxTexture2DGather()
maximum 2D texture dimensions if texture gather operations have to be performed
|
opencv_core.Point3i |
maxTexture2DLayered()
maximum 2D layered texture dimensions
|
opencv_core.Point3i |
maxTexture2DLinear()
maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory
|
opencv_core.Point |
maxTexture2DMipmap()
maximum 2D mipmapped texture dimensions
|
opencv_core.Point3i |
maxTexture3D()
maximum 3D texture dimensions
|
int |
maxTextureCubemap()
maximum Cubemap texture dimensions
|
opencv_core.Point |
maxTextureCubemapLayered()
maximum Cubemap layered texture dimensions
|
opencv_core.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
|
org.bytedeco.javacpp.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
|
opencv_core.DeviceInfo |
position(long position) |
void |
queryMemory(org.bytedeco.javacpp.SizeTPointer totalMemory,
org.bytedeco.javacpp.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, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int ComputeModeDefault
public static final int ComputeModeExclusive
public static final int ComputeModeProhibited
public static final int ComputeModeExclusiveProcess
public DeviceInfo(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public DeviceInfo(long size)
Pointer.position(long).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 opencv_core.DeviceInfo position(long position)
position in class org.bytedeco.javacpp.Pointerpublic int deviceID()
@Cast(value="const char*") public org.bytedeco.javacpp.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 public opencv_core.Point3i maxThreadsDim()
@ByVal public opencv_core.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()
@Cast(value="cv::cuda::DeviceInfo::ComputeMode") public int computeMode()
public int maxTexture1D()
public int maxTexture1DMipmap()
public int maxTexture1DLinear()
@ByVal public opencv_core.Point maxTexture2D()
@ByVal public opencv_core.Point maxTexture2DMipmap()
@ByVal public opencv_core.Point3i maxTexture2DLinear()
@ByVal public opencv_core.Point maxTexture2DGather()
@ByVal public opencv_core.Point3i maxTexture3D()
public int maxTextureCubemap()
@ByVal public opencv_core.Point maxTexture1DLayered()
@ByVal public opencv_core.Point3i maxTexture2DLayered()
@ByVal public opencv_core.Point maxTextureCubemapLayered()
public int maxSurface1D()
@ByVal public opencv_core.Point maxSurface2D()
@ByVal public opencv_core.Point3i maxSurface3D()
@ByVal public opencv_core.Point maxSurface1DLayered()
@ByVal public opencv_core.Point3i maxSurface2DLayered()
public int maxSurfaceCubemap()
@ByVal public opencv_core.Point maxSurfaceCubemapLayered()
@Cast(value="size_t") public long surfaceAlignment()
@Cast(value="bool") public boolean concurrentKernels()
@Cast(value="bool") public boolean ECCEnabled()
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
org.bytedeco.javacpp.SizeTPointer totalMemory,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer freeMemory)
@Cast(value="size_t") public long freeMemory()
@Cast(value="size_t") public long totalMemory()
@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
@Cast(value="bool") public boolean isCompatible()
This function returns true if the CUDA module can be run on the specified device. Otherwise, it returns false .
Copyright © 2018. All rights reserved.