View Source Evision.CUDA.DeviceInfo (Evision v0.1.38)

Summary

Types

t()

Type that represents an CUDA.DeviceInfo struct.

Functions

asyncEngineCount

canMapHostMemory

clockRate

computeMode

concurrentKernels

Returns system index of the CUDA device starting with 0.

DeviceInfo

The constructors.

ECCEnabled

freeMemory

integrated

Checks the CUDA module and device compatibility.

kernelExecTimeoutEnabled

l2CacheSize

majorVersion

maxGridSize

maxSurface1D

maxSurface1DLayered

maxSurface2D

maxSurface2DLayered

maxSurface3D

maxSurfaceCubemap

maxSurfaceCubemapLayered

maxTexture1D

maxTexture1DLayered

maxTexture1DLinear

maxTexture1DMipmap

maxTexture2D

maxTexture2DGather

maxTexture2DLayered

maxTexture2DLinear

maxTexture2DMipmap

maxTexture3D

maxTextureCubemap

maxTextureCubemapLayered

maxThreadsDim

maxThreadsPerBlock

maxThreadsPerMultiProcessor

memoryBusWidth

memoryClockRate

memPitch

minorVersion

multiProcessorCount

pciBusID

pciDeviceID

pciDomainID

regsPerBlock

sharedMemPerBlock

surfaceAlignment

tccDriver

textureAlignment

texturePitchAlignment

totalConstMem

totalGlobalMem

totalMemory

unifiedAddressing

warpSize

Types

@type t() :: %Evision.CUDA.DeviceInfo{ref: reference()}

Type that represents an CUDA.DeviceInfo struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec asyncEngineCount(t()) :: integer() | {:error, String.t()}

asyncEngineCount

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

asyncEngineCount() -> retval
@spec canMapHostMemory(t()) :: boolean() | {:error, String.t()}

canMapHostMemory

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

canMapHostMemory() -> retval
@spec clockRate(t()) :: integer() | {:error, String.t()}

clockRate

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

clockRate() -> retval
@spec computeMode(t()) :: integer() | {:error, String.t()}

computeMode

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: DeviceInfo::ComputeMode

Python prototype (for reference only):

computeMode() -> retval
@spec concurrentKernels(t()) :: boolean() | {:error, String.t()}

concurrentKernels

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

concurrentKernels() -> retval
@spec deviceID(t()) :: integer() | {:error, String.t()}

Returns system index of the CUDA device starting with 0.

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

deviceID() -> retval
@spec deviceInfo() :: t() | {:error, String.t()}

DeviceInfo

Return
  • self: Evision.CUDA.DeviceInfo.t()

Python prototype (for reference only):

DeviceInfo() -> <cuda_DeviceInfo object>
@spec deviceInfo(integer()) :: t() | {:error, String.t()}

The constructors.

Positional Arguments
  • device_id: int.

    System index of the CUDA device starting with 0.

Return
  • self: Evision.CUDA.DeviceInfo.t()

Constructs the DeviceInfo object for the specified device. If device_id parameter is missed, it constructs an object for the current device.

Python prototype (for reference only):

DeviceInfo(device_id) -> <cuda_DeviceInfo object>
@spec eccEnabled(t()) :: boolean() | {:error, String.t()}

ECCEnabled

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

ECCEnabled() -> retval
@spec freeMemory(t()) :: integer() | {:error, String.t()}

freeMemory

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

freeMemory() -> retval
@spec integrated(t()) :: boolean() | {:error, String.t()}

integrated

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

integrated() -> retval
@spec isCompatible(t()) :: boolean() | {:error, String.t()}

Checks the CUDA module and device compatibility.

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

This function returns true if the CUDA module can be run on the specified device. Otherwise, it returns false .

Python prototype (for reference only):

isCompatible() -> retval
Link to this function

kernelExecTimeoutEnabled(self)

View Source
@spec kernelExecTimeoutEnabled(t()) :: boolean() | {:error, String.t()}

kernelExecTimeoutEnabled

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

kernelExecTimeoutEnabled() -> retval
@spec l2CacheSize(t()) :: integer() | {:error, String.t()}

l2CacheSize

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

l2CacheSize() -> retval
@spec majorVersion(t()) :: integer() | {:error, String.t()}

majorVersion

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

majorVersion() -> retval
@spec maxGridSize(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxGridSize

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxGridSize() -> retval
@spec maxSurface1D(t()) :: integer() | {:error, String.t()}

maxSurface1D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxSurface1D() -> retval
Link to this function

maxSurface1DLayered(self)

View Source
@spec maxSurface1DLayered(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxSurface1DLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxSurface1DLayered() -> retval
@spec maxSurface2D(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxSurface2D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxSurface2D() -> retval
Link to this function

maxSurface2DLayered(self)

View Source
@spec maxSurface2DLayered(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxSurface2DLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxSurface2DLayered() -> retval
@spec maxSurface3D(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxSurface3D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxSurface3D() -> retval
@spec maxSurfaceCubemap(t()) :: integer() | {:error, String.t()}

maxSurfaceCubemap

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxSurfaceCubemap() -> retval
Link to this function

maxSurfaceCubemapLayered(self)

View Source
@spec maxSurfaceCubemapLayered(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxSurfaceCubemapLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxSurfaceCubemapLayered() -> retval
@spec maxTexture1D(t()) :: integer() | {:error, String.t()}

maxTexture1D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxTexture1D() -> retval
Link to this function

maxTexture1DLayered(self)

View Source
@spec maxTexture1DLayered(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxTexture1DLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxTexture1DLayered() -> retval
Link to this function

maxTexture1DLinear(self)

View Source
@spec maxTexture1DLinear(t()) :: integer() | {:error, String.t()}

maxTexture1DLinear

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxTexture1DLinear() -> retval
Link to this function

maxTexture1DMipmap(self)

View Source
@spec maxTexture1DMipmap(t()) :: integer() | {:error, String.t()}

maxTexture1DMipmap

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxTexture1DMipmap() -> retval
@spec maxTexture2D(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxTexture2D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxTexture2D() -> retval
Link to this function

maxTexture2DGather(self)

View Source
@spec maxTexture2DGather(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxTexture2DGather

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxTexture2DGather() -> retval
Link to this function

maxTexture2DLayered(self)

View Source
@spec maxTexture2DLayered(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxTexture2DLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxTexture2DLayered() -> retval
Link to this function

maxTexture2DLinear(self)

View Source
@spec maxTexture2DLinear(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxTexture2DLinear

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxTexture2DLinear() -> retval
Link to this function

maxTexture2DMipmap(self)

View Source
@spec maxTexture2DMipmap(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxTexture2DMipmap

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxTexture2DMipmap() -> retval
@spec maxTexture3D(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxTexture3D

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxTexture3D() -> retval
@spec maxTextureCubemap(t()) :: integer() | {:error, String.t()}

maxTextureCubemap

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxTextureCubemap() -> retval
Link to this function

maxTextureCubemapLayered(self)

View Source
@spec maxTextureCubemapLayered(t()) :: Evision.CUDA.Vec2i.t() | {:error, String.t()}

maxTextureCubemapLayered

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec2i

Python prototype (for reference only):

maxTextureCubemapLayered() -> retval
@spec maxThreadsDim(t()) :: Evision.CUDA.Vec3i.t() | {:error, String.t()}

maxThreadsDim

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: Vec3i

Python prototype (for reference only):

maxThreadsDim() -> retval
Link to this function

maxThreadsPerBlock(self)

View Source
@spec maxThreadsPerBlock(t()) :: integer() | {:error, String.t()}

maxThreadsPerBlock

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxThreadsPerBlock() -> retval
Link to this function

maxThreadsPerMultiProcessor(self)

View Source
@spec maxThreadsPerMultiProcessor(t()) :: integer() | {:error, String.t()}

maxThreadsPerMultiProcessor

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

maxThreadsPerMultiProcessor() -> retval
@spec memoryBusWidth(t()) :: integer() | {:error, String.t()}

memoryBusWidth

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

memoryBusWidth() -> retval
@spec memoryClockRate(t()) :: integer() | {:error, String.t()}

memoryClockRate

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

memoryClockRate() -> retval
@spec memPitch(t()) :: integer() | {:error, String.t()}

memPitch

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

memPitch() -> retval
@spec minorVersion(t()) :: integer() | {:error, String.t()}

minorVersion

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

minorVersion() -> retval
Link to this function

multiProcessorCount(self)

View Source
@spec multiProcessorCount(t()) :: integer() | {:error, String.t()}

multiProcessorCount

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

multiProcessorCount() -> retval
@spec pciBusID(t()) :: integer() | {:error, String.t()}

pciBusID

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

pciBusID() -> retval
@spec pciDeviceID(t()) :: integer() | {:error, String.t()}

pciDeviceID

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

pciDeviceID() -> retval
@spec pciDomainID(t()) :: integer() | {:error, String.t()}

pciDomainID

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

pciDomainID() -> retval
Link to this function

queryMemory(self, totalMemory, freeMemory)

View Source
@spec queryMemory(t(), integer(), integer()) :: t() | {:error, String.t()}

queryMemory

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
  • totalMemory: size_t
  • freeMemory: size_t

Python prototype (for reference only):

queryMemory(totalMemory, freeMemory) -> None
@spec regsPerBlock(t()) :: integer() | {:error, String.t()}

regsPerBlock

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

regsPerBlock() -> retval
@spec sharedMemPerBlock(t()) :: integer() | {:error, String.t()}

sharedMemPerBlock

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

sharedMemPerBlock() -> retval
@spec surfaceAlignment(t()) :: integer() | {:error, String.t()}

surfaceAlignment

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

surfaceAlignment() -> retval
@spec tccDriver(t()) :: boolean() | {:error, String.t()}

tccDriver

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

tccDriver() -> retval
@spec textureAlignment(t()) :: integer() | {:error, String.t()}

textureAlignment

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

textureAlignment() -> retval
Link to this function

texturePitchAlignment(self)

View Source
@spec texturePitchAlignment(t()) :: integer() | {:error, String.t()}

texturePitchAlignment

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

texturePitchAlignment() -> retval
@spec totalConstMem(t()) :: integer() | {:error, String.t()}

totalConstMem

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

totalConstMem() -> retval
@spec totalGlobalMem(t()) :: integer() | {:error, String.t()}

totalGlobalMem

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

totalGlobalMem() -> retval
@spec totalMemory(t()) :: integer() | {:error, String.t()}

totalMemory

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: size_t

Python prototype (for reference only):

totalMemory() -> retval
@spec unifiedAddressing(t()) :: boolean() | {:error, String.t()}

unifiedAddressing

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: bool

Python prototype (for reference only):

unifiedAddressing() -> retval
@spec warpSize(t()) :: integer() | {:error, String.t()}

warpSize

Positional Arguments
  • self: Evision.CUDA.DeviceInfo.t()
Return
  • retval: int

Python prototype (for reference only):

warpSize() -> retval