OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

指定したGPUのプロパティを照会する機能を提供するクラス。 続き...

#include <opencv2/core/cuda.hpp>

Collaboration diagram for cv::cuda::DeviceInfo:

公開型

enum  ComputeMode {
  ComputeModeDefault ,
  ComputeModeExclusive ,
  ComputeModeProhibited ,
  ComputeModeExclusiveProcess
}
 

公開メンバ関数

 DeviceInfo ()
 現在のGPU用の DeviceInfo オブジェクトを生成する
 
 DeviceInfo (int device_id)
 コンストラクタ。
 
int asyncEngineCount () const
 非同期エンジンの数
 
bool canMapHostMemory () const
 デバイスは cudaHostAlloc/cudaHostGetDevicePointer を用いてホストメモリをマップできる
 
int clockRate () const
 クロック周波数(キロヘルツ単位)
 
DeviceInfo::ComputeMode computeMode () const
 計算モード
 
bool concurrentKernels () const
 デバイスは複数のカーネルを並行して実行できる可能性がある
 
int deviceID () const
 0から始まるCUDAデバイスのシステムインデックスを返す。
 
bool ECCEnabled () const
 デバイスはECCサポートが有効になっている
 
size_t freeMemory () const
 
bool integrated () const
 デバイスはディスクリートではなく統合型である
 
bool isCompatible () const
 CUDAモジュールとデバイスの互換性を確認する。
 
bool kernelExecTimeoutEnabled () const
 カーネルに実行時間制限があるかどうかを指定する
 
int l2CacheSize () const
 L2 キャッシュのサイズ(バイト単位)
 
int majorVersion () const
 メジャーコンピュートケイパビリティ
 
Vec3i maxGridSize () const
 グリッドの各次元の最大サイズ
 
int maxSurface1D () const
 1Dサーフェスの最大サイズ
 
Vec2i maxSurface1DLayered () const
 1Dレイヤードサーフェスの最大次元
 
Vec2i maxSurface2D () const
 2Dサーフェスの最大次元
 
Vec3i maxSurface2DLayered () const
 2Dレイヤードサーフェスの最大次元
 
Vec3i maxSurface3D () const
 3Dサーフェスの最大次元
 
int maxSurfaceCubemap () const
 キューブマップサーフェスの最大次元
 
Vec2i maxSurfaceCubemapLayered () const
 キューブマップレイヤードサーフェスの最大次元
 
int maxTexture1D () const
 1Dテクスチャの最大サイズ
 
Vec2i maxTexture1DLayered () const
 1Dレイヤードテクスチャの最大次元
 
int maxTexture1DLinear () const
 リニアメモリにバインドされた1Dテクスチャの最大サイズ
 
int maxTexture1DMipmap () const
 1Dミップマップテクスチャの最大サイズ
 
Vec2i maxTexture2D () const
 2Dテクスチャの最大次元
 
Vec2i maxTexture2DGather () const
 テクスチャギャザー操作を実行する場合の2Dテクスチャの最大次元
 
Vec3i maxTexture2DLayered () const
 2Dレイヤードテクスチャの最大次元
 
Vec3i maxTexture2DLinear () const
 ピッチメモリにバインドされた2Dテクスチャの最大次元(幅、高さ、ピッチ)
 
Vec2i maxTexture2DMipmap () const
 2Dミップマップテクスチャの最大次元
 
Vec3i maxTexture3D () const
 3Dテクスチャの最大次元
 
int maxTextureCubemap () const
 キューブマップテクスチャの最大次元
 
Vec2i maxTextureCubemapLayered () const
 キューブマップレイヤードテクスチャの最大次元
 
Vec3i maxThreadsDim () const
 ブロックの各次元の最大サイズ
 
int maxThreadsPerBlock () const
 ブロックあたりの最大スレッド数
 
int maxThreadsPerMultiProcessor () const
 マルチプロセッサあたりの常駐スレッドの最大数
 
int memoryBusWidth () const
 グローバルメモリバス幅(ビット単位)
 
int memoryClockRate () const
 メモリクロック周波数のピーク値(キロヘルツ単位)
 
size_t memPitch () const
 メモリコピーで許容される最大ピッチ(バイト単位)
 
int minorVersion () const
 マイナーコンピュートケイパビリティ
 
int multiProcessorCount () const
 デバイス上のマルチプロセッサ数
 
const char * name () const
 デバイスを識別するASCII文字列。
 
int pciBusID () const
 デバイスのPCIバスID。
 
int pciDeviceID () const
 デバイスのPCIデバイスID。
 
int pciDomainID () const
 デバイスのPCIドメインID。
 
void queryMemory (size_t &totalMemory, size_t &freeMemory) const
 空き容量とデバイスメモリの総容量を取得する
 
int regsPerBlock () const
 ブロックあたりで利用可能な32ビットレジスタ数
 
size_t sharedMemPerBlock () const
 ブロックあたりで利用可能な共有メモリ(バイト単位)
 
bool supports (FeatureSet feature_set) const
 CUDA機能のサポート状況に関する情報を提供する。
 
size_t surfaceAlignment () const
 サーフェスのアラインメント要件
 
bool tccDriver () const
 デバイスがTCCドライバを使用するTeslaデバイスの場合はtrue、そうでなければfalse
 
size_t textureAlignment () const
 テクスチャのアラインメント要件
 
size_t texturePitchAlignment () const
 ピッチメモリにバインドされたテクスチャ参照のピッチアラインメント要件
 
size_t totalConstMem () const
 デバイス上で利用可能な定数メモリ(バイト単位)
 
size_t totalGlobalMem () const
 デバイス上で利用可能なグローバルメモリ(バイト単位)
 
size_t totalMemory () const
 
bool unifiedAddressing () const
 デバイスがホストと統一アドレス空間を共有する
 
int warpSize () const
 ワープサイズ(スレッド数)
 

詳細説明

指定したGPUのプロパティを照会する機能を提供するクラス。

列挙型メンバ詳解

◆ ComputeMode

列挙値
ComputeModeDefault 

デフォルトの計算モード(このデバイスでは複数のスレッドが cudaSetDevice を使用できる)

ComputeModeExclusive 

compute-exclusive-thread モード(このデバイスでは1プロセス内の1スレッドのみが cudaSetDevice を使用できる)

ComputeModeProhibited 

compute-prohibited モード(このデバイスでは cudaSetDevice をどのスレッドも使用できない)

ComputeModeExclusiveProcess 

compute-exclusive-process モード(このデバイスでは1プロセス内の多数のスレッドが cudaSetDevice を使用できる)

構築子と解体子の詳解

◆ DeviceInfo() [1/2]

cv::cuda::DeviceInfo::DeviceInfo ( )
Python:
cv.cuda.DeviceInfo() -> <cuda_DeviceInfo object>
cv.cuda.DeviceInfo(device_id) -> <cuda_DeviceInfo object>

現在のGPU用の DeviceInfo オブジェクトを作成する

◆ DeviceInfo() [2/2]

cv::cuda::DeviceInfo::DeviceInfo ( int device_id)
Python:
cv.cuda.DeviceInfo() -> <cuda_DeviceInfo object>
cv.cuda.DeviceInfo(device_id) -> <cuda_DeviceInfo object>

コンストラクタ。

引数
device_id0から始まるCUDAデバイスのシステムインデックス。

指定したデバイス用の DeviceInfo オブジェクトを構築する。device_id 引数が省略された場合は、現在のデバイス用のオブジェクトを構築する。

メンバ関数詳解

◆ asyncEngineCount()

int cv::cuda::DeviceInfo::asyncEngineCount ( ) const
Python:
cv.cuda.DeviceInfo.asyncEngineCount() -> retval

非同期エンジンの数

◆ canMapHostMemory()

bool cv::cuda::DeviceInfo::canMapHostMemory ( ) const
Python:
cv.cuda.DeviceInfo.canMapHostMemory() -> retval

デバイスはcudaHostAlloc/cudaHostGetDevicePointerでホストメモリをマップできる

◆ clockRate()

int cv::cuda::DeviceInfo::clockRate ( ) const
Python:
cv.cuda.DeviceInfo.clockRate() -> retval

クロック周波数(キロヘルツ単位)

◆ computeMode()

DeviceInfo::ComputeMode cv::cuda::DeviceInfo::computeMode ( ) const
Python:
cv.cuda.DeviceInfo.computeMode() -> retval

コンピュートモード

◆ concurrentKernels()

bool cv::cuda::DeviceInfo::concurrentKernels ( ) const
Python:
cv.cuda.DeviceInfo.concurrentKernels() -> retval

デバイスは複数のカーネルを同時に実行できる可能性がある

◆ deviceID()

int cv::cuda::DeviceInfo::deviceID ( ) const
Python:
cv.cuda.DeviceInfo.deviceID() -> retval

0から始まるCUDAデバイスのシステムインデックスを返す。

◆ ECCEnabled()

bool cv::cuda::DeviceInfo::ECCEnabled ( ) const
Python:
cv.cuda.DeviceInfo.ECCEnabled() -> retval

デバイスはECCサポートが有効になっている

◆ freeMemory()

size_t cv::cuda::DeviceInfo::freeMemory ( ) const
Python:
cv.cuda.DeviceInfo.freeMemory() -> retval

◆ integrated()

bool cv::cuda::DeviceInfo::integrated ( ) const
Python:
cv.cuda.DeviceInfo.integrated() -> retval

デバイスはディスクリート型ではなく統合型である

◆ isCompatible()

bool cv::cuda::DeviceInfo::isCompatible ( ) const
Python:
cv.cuda.DeviceInfo.isCompatible() -> retval

CUDAモジュールとデバイスの互換性をチェックする。

この関数は、CUDAモジュールが指定したデバイス上で実行できる場合にtrueを返す。そうでない場合はfalseを返す。

◆ kernelExecTimeoutEnabled()

bool cv::cuda::DeviceInfo::kernelExecTimeoutEnabled ( ) const
Python:
cv.cuda.DeviceInfo.kernelExecTimeoutEnabled() -> retval

カーネルに実行時間制限があるかどうかを示す

◆ l2CacheSize()

int cv::cuda::DeviceInfo::l2CacheSize ( ) const
Python:
cv.cuda.DeviceInfo.l2CacheSize() -> retval

L2 キャッシュのサイズ(バイト単位)

◆ majorVersion()

int cv::cuda::DeviceInfo::majorVersion ( ) const
Python:
cv.cuda.DeviceInfo.majorVersion() -> retval

メジャーコンピュートケイパビリティ

◆ maxGridSize()

Vec3i cv::cuda::DeviceInfo::maxGridSize ( ) const
Python:
cv.cuda.DeviceInfo.maxGridSize() -> retval

グリッドの各次元の最大サイズ

◆ maxSurface1D()

int cv::cuda::DeviceInfo::maxSurface1D ( ) const
Python:
cv.cuda.DeviceInfo.maxSurface1D() -> retval

1Dサーフェスの最大サイズ

◆ maxSurface1DLayered()

Vec2i cv::cuda::DeviceInfo::maxSurface1DLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxSurface1DLayered() -> retval

1Dレイヤードサーフェスの最大次元

◆ maxSurface2D()

Vec2i cv::cuda::DeviceInfo::maxSurface2D ( ) const
Python:
cv.cuda.DeviceInfo.maxSurface2D() -> retval

2Dサーフェスの最大次元

◆ maxSurface2DLayered()

Vec3i cv::cuda::DeviceInfo::maxSurface2DLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxSurface2DLayered() -> retval

2Dレイヤードサーフェスの最大次元

◆ maxSurface3D()

Vec3i cv::cuda::DeviceInfo::maxSurface3D ( ) const
Python:
cv.cuda.DeviceInfo.maxSurface3D() -> retval

3Dサーフェスの最大次元

◆ maxSurfaceCubemap()

int cv::cuda::DeviceInfo::maxSurfaceCubemap ( ) const
Python:
cv.cuda.DeviceInfo.maxSurfaceCubemap() -> retval

キューブマップサーフェスの最大次元

◆ maxSurfaceCubemapLayered()

Vec2i cv::cuda::DeviceInfo::maxSurfaceCubemapLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxSurfaceCubemapLayered() -> retval

キューブマップレイヤードサーフェスの最大次元

◆ maxTexture1D()

int cv::cuda::DeviceInfo::maxTexture1D ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture1D() -> retval

1Dテクスチャの最大サイズ

◆ maxTexture1DLayered()

Vec2i cv::cuda::DeviceInfo::maxTexture1DLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture1DLayered() -> retval

1Dレイヤードテクスチャの最大次元

◆ maxTexture1DLinear()

int cv::cuda::DeviceInfo::maxTexture1DLinear ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture1DLinear() -> retval

リニアメモリにバインドされた1Dテクスチャの最大サイズ

◆ maxTexture1DMipmap()

int cv::cuda::DeviceInfo::maxTexture1DMipmap ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture1DMipmap() -> retval

1Dミップマップテクスチャの最大サイズ

◆ maxTexture2D()

Vec2i cv::cuda::DeviceInfo::maxTexture2D ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture2D() -> retval

2Dテクスチャの最大次元

◆ maxTexture2DGather()

Vec2i cv::cuda::DeviceInfo::maxTexture2DGather ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture2DGather() -> retval

テクスチャギャザー操作を実行する場合の2Dテクスチャの最大次元

◆ maxTexture2DLayered()

Vec3i cv::cuda::DeviceInfo::maxTexture2DLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture2DLayered() -> retval

2Dレイヤードテクスチャの最大次元

◆ maxTexture2DLinear()

Vec3i cv::cuda::DeviceInfo::maxTexture2DLinear ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture2DLinear() -> retval

ピッチメモリにバインドされた2Dテクスチャの最大次元 (幅, 高さ, ピッチ)

◆ maxTexture2DMipmap()

Vec2i cv::cuda::DeviceInfo::maxTexture2DMipmap ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture2DMipmap() -> retval

2Dミップマップテクスチャの最大次元

◆ maxTexture3D()

Vec3i cv::cuda::DeviceInfo::maxTexture3D ( ) const
Python:
cv.cuda.DeviceInfo.maxTexture3D() -> retval

3Dテクスチャの最大次元

◆ maxTextureCubemap()

int cv::cuda::DeviceInfo::maxTextureCubemap ( ) const
Python:
cv.cuda.DeviceInfo.maxTextureCubemap() -> retval

キューブマップテクスチャの最大次元

◆ maxTextureCubemapLayered()

Vec2i cv::cuda::DeviceInfo::maxTextureCubemapLayered ( ) const
Python:
cv.cuda.DeviceInfo.maxTextureCubemapLayered() -> retval

キューブマップレイヤードテクスチャの最大次元

◆ maxThreadsDim()

Vec3i cv::cuda::DeviceInfo::maxThreadsDim ( ) const
Python:
cv.cuda.DeviceInfo.maxThreadsDim() -> retval

ブロックの各次元の最大サイズ

◆ maxThreadsPerBlock()

int cv::cuda::DeviceInfo::maxThreadsPerBlock ( ) const
Python:
cv.cuda.DeviceInfo.maxThreadsPerBlock() -> retval

ブロックあたりのスレッド数の最大値

◆ maxThreadsPerMultiProcessor()

int cv::cuda::DeviceInfo::maxThreadsPerMultiProcessor ( ) const
Python:
cv.cuda.DeviceInfo.maxThreadsPerMultiProcessor() -> retval

マルチプロセッサあたりに常駐できるスレッドの最大数

◆ memoryBusWidth()

int cv::cuda::DeviceInfo::memoryBusWidth ( ) const
Python:
cv.cuda.DeviceInfo.memoryBusWidth() -> retval

グローバルメモリのバス幅 (ビット単位)

◆ memoryClockRate()

int cv::cuda::DeviceInfo::memoryClockRate ( ) const
Python:
cv.cuda.DeviceInfo.memoryClockRate() -> retval

メモリクロック周波数のピーク値 (キロヘルツ単位)

◆ memPitch()

size_t cv::cuda::DeviceInfo::memPitch ( ) const
Python:
cv.cuda.DeviceInfo.memPitch() -> retval

メモリコピーで許容される最大ピッチ (バイト単位)

◆ minorVersion()

int cv::cuda::DeviceInfo::minorVersion ( ) const
Python:
cv.cuda.DeviceInfo.minorVersion() -> retval

compute capability のマイナーバージョン

◆ multiProcessorCount()

int cv::cuda::DeviceInfo::multiProcessorCount ( ) const
Python:
cv.cuda.DeviceInfo.multiProcessorCount() -> retval

デバイス上のマルチプロセッサ数

◆ name()

const char * cv::cuda::DeviceInfo::name ( ) const

デバイスを識別するASCII文字列。

◆ pciBusID()

int cv::cuda::DeviceInfo::pciBusID ( ) const
Python:
cv.cuda.DeviceInfo.pciBusID() -> retval

デバイスのPCIバスID。

◆ pciDeviceID()

int cv::cuda::DeviceInfo::pciDeviceID ( ) const
Python:
cv.cuda.DeviceInfo.pciDeviceID() -> retval

デバイスのPCIデバイスID。

◆ pciDomainID()

int cv::cuda::DeviceInfo::pciDomainID ( ) const
Python:
cv.cuda.DeviceInfo.pciDomainID() -> retval

デバイスのPCIドメインID。

◆ queryMemory()

void cv::cuda::DeviceInfo::queryMemory ( size_t & totalMemory,
size_t & freeMemory ) const
Python:
cv.cuda.DeviceInfo.queryMemory(totalMemory, freeMemory) -> None

空きデバイスメモリと総デバイスメモリを取得する

◆ regsPerBlock()

int cv::cuda::DeviceInfo::regsPerBlock ( ) const
Python:
cv.cuda.DeviceInfo.regsPerBlock() -> retval

ブロックあたりで利用可能な32ビットレジスタ数

◆ sharedMemPerBlock()

size_t cv::cuda::DeviceInfo::sharedMemPerBlock ( ) const
Python:
cv.cuda.DeviceInfo.sharedMemPerBlock() -> retval

ブロックあたりで利用可能な共有メモリ (バイト単位)

◆ supports()

bool cv::cuda::DeviceInfo::supports ( FeatureSet feature_set) const

CUDA機能のサポート状況に関する情報を提供する。

引数
feature_set検査する機能。cuda::FeatureSet を参照。

デバイスが指定したCUDA機能を持つ場合はtrueを返す。そうでない場合はfalseを返す

◆ surfaceAlignment()

size_t cv::cuda::DeviceInfo::surfaceAlignment ( ) const
Python:
cv.cuda.DeviceInfo.surfaceAlignment() -> retval

サーフェスのアラインメント要件

◆ tccDriver()

bool cv::cuda::DeviceInfo::tccDriver ( ) const
Python:
cv.cuda.DeviceInfo.tccDriver() -> retval

デバイスがTCCドライバを使用するTeslaデバイスである場合はtrue、そうでない場合はfalse

◆ textureAlignment()

size_t cv::cuda::DeviceInfo::textureAlignment ( ) const
Python:
cv.cuda.DeviceInfo.textureAlignment() -> retval

テクスチャのアラインメント要件

◆ texturePitchAlignment()

size_t cv::cuda::DeviceInfo::texturePitchAlignment ( ) const
Python:
cv.cuda.DeviceInfo.texturePitchAlignment() -> retval

ピッチメモリにバインドされたテクスチャ参照のピッチアラインメント要件

◆ totalConstMem()

size_t cv::cuda::DeviceInfo::totalConstMem ( ) const
Python:
cv.cuda.DeviceInfo.totalConstMem() -> retval

デバイス上で利用可能な定数メモリ (バイト単位)

◆ totalGlobalMem()

size_t cv::cuda::DeviceInfo::totalGlobalMem ( ) const
Python:
cv.cuda.DeviceInfo.totalGlobalMem() -> retval

デバイス上で利用可能なグローバルメモリ (バイト単位)

◆ totalMemory()

size_t cv::cuda::DeviceInfo::totalMemory ( ) const
Python:
cv.cuda.DeviceInfo.totalMemory() -> retval

◆ unifiedAddressing()

bool cv::cuda::DeviceInfo::unifiedAddressing ( ) const
Python:
cv.cuda.DeviceInfo.unifiedAddressing() -> retval

デバイスがホストと統一アドレス空間を共有しているか

◆ warpSize()

int cv::cuda::DeviceInfo::warpSize ( ) const
Python:
cv.cuda.DeviceInfo.warpSize() -> retval

ワープサイズ (スレッド単位)


このクラス詳解は次のファイルから抽出されました: