MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CUDADeviceProperties

Class CUDADeviceProperties

tensorflow/tools/test/gpu_info_lib.py:46–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46class CUDADeviceProperties(ct.Structure):
47 # See $CUDA_HOME/include/cuda_runtime_api.h for the definition of
48 # the cudaDeviceProp struct.
49 _fields_ = [
50 ("name", ct.c_char * 256),
51 ("totalGlobalMem", ct.c_size_t),
52 ("sharedMemPerBlock", ct.c_size_t),
53 ("regsPerBlock", ct.c_int),
54 ("warpSize", ct.c_int),
55 ("memPitch", ct.c_size_t),
56 ("maxThreadsPerBlock", ct.c_int),
57 ("maxThreadsDim", ct.c_int * 3),
58 ("maxGridSize", ct.c_int * 3),
59 ("clockRate", ct.c_int),
60 ("totalConstMem", ct.c_size_t),
61 ("major", ct.c_int),
62 ("minor", ct.c_int),
63 ("textureAlignment", ct.c_size_t),
64 ("texturePitchAlignment", ct.c_size_t),
65 ("deviceOverlap", ct.c_int),
66 ("multiProcessorCount", ct.c_int),
67 ("kernelExecTimeoutEnabled", ct.c_int),
68 ("integrated", ct.c_int),
69 ("canMapHostMemory", ct.c_int),
70 ("computeMode", ct.c_int),
71 ("maxTexture1D", ct.c_int),
72 ("maxTexture1DMipmap", ct.c_int),
73 ("maxTexture1DLinear", ct.c_int),
74 ("maxTexture2D", ct.c_int * 2),
75 ("maxTexture2DMipmap", ct.c_int * 2),
76 ("maxTexture2DLinear", ct.c_int * 3),
77 ("maxTexture2DGather", ct.c_int * 2),
78 ("maxTexture3D", ct.c_int * 3),
79 ("maxTexture3DAlt", ct.c_int * 3),
80 ("maxTextureCubemap", ct.c_int),
81 ("maxTexture1DLayered", ct.c_int * 2),
82 ("maxTexture2DLayered", ct.c_int * 3),
83 ("maxTextureCubemapLayered", ct.c_int * 2),
84 ("maxSurface1D", ct.c_int),
85 ("maxSurface2D", ct.c_int * 2),
86 ("maxSurface3D", ct.c_int * 3),
87 ("maxSurface1DLayered", ct.c_int * 2),
88 ("maxSurface2DLayered", ct.c_int * 3),
89 ("maxSurfaceCubemap", ct.c_int),
90 ("maxSurfaceCubemapLayered", ct.c_int * 2),
91 ("surfaceAlignment", ct.c_size_t),
92 ("concurrentKernels", ct.c_int),
93 ("ECCEnabled", ct.c_int),
94 ("pciBusID", ct.c_int),
95 ("pciDeviceID", ct.c_int),
96 ("pciDomainID", ct.c_int),
97 ("tccDriver", ct.c_int),
98 ("asyncEngineCount", ct.c_int),
99 ("unifiedAddressing", ct.c_int),
100 ("memoryClockRate", ct.c_int),
101 ("memoryBusWidth", ct.c_int),
102 ("l2CacheSize", ct.c_int),
103 ("maxThreadsPerMultiProcessor", ct.c_int),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected