Copyright | [2009..2014] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Common device functions
- data Compute = Compute !Int !Int
- data ComputeMode
- data DeviceProperties = DeviceProperties {
- deviceName :: !String
- computeCapability :: !Compute
- totalGlobalMem :: !Int64
- totalConstMem :: !Int64
- sharedMemPerBlock :: !Int64
- regsPerBlock :: !Int
- warpSize :: !Int
- maxThreadsPerBlock :: !Int
- maxThreadsPerMultiProcessor :: !Int
- maxBlockSize :: !(Int, Int, Int)
- maxGridSize :: !(Int, Int, Int)
- maxTextureDim1D :: !Int
- maxTextureDim2D :: !(Int, Int)
- maxTextureDim3D :: !(Int, Int, Int)
- clockRate :: !Int
- multiProcessorCount :: !Int
- memPitch :: !Int64
- memBusWidth :: !Int
- memClockRate :: !Int
- textureAlignment :: !Int64
- computeMode :: !ComputeMode
- deviceOverlap :: !Bool
- concurrentKernels :: !Bool
- eccEnabled :: !Bool
- asyncEngineCount :: !Int
- cacheMemL2 :: !Int
- tccDriverEnabled :: !Bool
- pciInfo :: !PCI
- kernelExecTimeoutEnabled :: !Bool
- integrated :: !Bool
- canMapHostMemory :: !Bool
- unifiedAddressing :: !Bool
- data DeviceResources = DeviceResources {
- threadsPerWarp :: !Int
- threadsPerMP :: !Int
- threadBlocksPerMP :: !Int
- warpsPerMP :: !Int
- coresPerMP :: !Int
- sharedMemPerMP :: !Int
- sharedMemAllocUnit :: !Int
- regFileSize :: !Int
- regAllocUnit :: !Int
- regAllocWarp :: !Int
- regPerThread :: !Int
- allocation :: !Allocation
- data Allocation
- data PCI = PCI {}
- deviceResources :: DeviceProperties -> DeviceResources
Documentation
data ComputeMode Source
The compute mode the device is currently in
Enum ComputeMode Source | GPU compute capability, major and minor revision number respectively. |
Eq ComputeMode Source | |
Show ComputeMode Source |
data DeviceProperties Source
The properties of a compute device
DeviceProperties | |
|
data DeviceResources Source
DeviceResources | |
|
data Allocation Source
deviceResources :: DeviceProperties -> DeviceResources Source
Extract some additional hardware resource limitations for a given device.