| Copyright | [2009..2023] Trevor L. McDonell |
|---|---|
| License | BSD |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Foreign.CUDA.Analysis.Device
Description
Common device functions
Synopsis
- 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
- pciInfo :: !PCI
- tccDriverEnabled :: !Bool
- kernelExecTimeoutEnabled :: !Bool
- integrated :: !Bool
- canMapHostMemory :: !Bool
- unifiedAddressing :: !Bool
- streamPriorities :: !Bool
- globalL1Cache :: !Bool
- localL1Cache :: !Bool
- managedMemory :: !Bool
- multiGPUBoard :: !Bool
- multiGPUBoardGroupID :: !Int
- preemption :: !Bool
- singleToDoublePerfRatio :: !Int
- cooperativeLaunch :: !Bool
- cooperativeLaunchMultiDevice :: !Bool
- data DeviceResources = DeviceResources {
- threadsPerWarp :: !Int
- coresPerMP :: !Int
- warpsPerMP :: !Int
- threadsPerMP :: !Int
- threadBlocksPerMP :: !Int
- sharedMemPerMP :: !Int
- maxSharedMemPerBlock :: !Int
- regFileSizePerMP :: !Int
- maxRegPerBlock :: !Int
- regAllocUnit :: !Int
- regAllocationStyle :: !Allocation
- maxRegPerThread :: !Int
- sharedMemAllocUnit :: !Int
- warpAllocUnit :: !Int
- warpRegAllocUnit :: !Int
- maxGridsPerDevice :: !Int
- data Allocation
- data PCI = PCI {}
- deviceResources :: DeviceProperties -> DeviceResources
- describe :: Describe a => a -> String
Documentation
GPU compute capability, major and minor revision number respectively.
data ComputeMode Source #
The compute mode the device is currently in
Constructors
| Default | |
| Prohibited | |
| ExclusiveProcess |
Instances
| Enum ComputeMode Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods succ :: ComputeMode -> ComputeMode # pred :: ComputeMode -> ComputeMode # toEnum :: Int -> ComputeMode # fromEnum :: ComputeMode -> Int # enumFrom :: ComputeMode -> [ComputeMode] # enumFromThen :: ComputeMode -> ComputeMode -> [ComputeMode] # enumFromTo :: ComputeMode -> ComputeMode -> [ComputeMode] # enumFromThenTo :: ComputeMode -> ComputeMode -> ComputeMode -> [ComputeMode] # | |
| Show ComputeMode Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods showsPrec :: Int -> ComputeMode -> ShowS # show :: ComputeMode -> String # showList :: [ComputeMode] -> ShowS # | |
| Describe ComputeMode Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods describe :: ComputeMode -> String Source # | |
| Eq ComputeMode Source # | |
Defined in Foreign.CUDA.Analysis.Device | |
data DeviceProperties Source #
Some properties of a compute device. Originally, this mirrored
struct cudaDeviceProp in CUDA, but since CUDA 13 some fields have been
removed from that struct, and this data type keeps them for backwards
compatibility.
There are more device "properties" than those listed in this data type; use
attribute to query them.
Constructors
| DeviceProperties | |
Fields
| |
Instances
| Show DeviceProperties Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods showsPrec :: Int -> DeviceProperties -> ShowS # show :: DeviceProperties -> String # showList :: [DeviceProperties] -> ShowS # | |
data DeviceResources Source #
Constructors
| DeviceResources | |
Fields
| |
Instances
| Show DeviceResources Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods showsPrec :: Int -> DeviceResources -> ShowS # show :: DeviceResources -> String # showList :: [DeviceResources] -> ShowS # | |
data Allocation Source #
Instances
| Show Allocation Source # | |
Defined in Foreign.CUDA.Analysis.Device Methods showsPrec :: Int -> Allocation -> ShowS # show :: Allocation -> String # showList :: [Allocation] -> ShowS # | |
Constructors
| PCI | |
deviceResources :: DeviceProperties -> DeviceResources Source #
Extract some additional hardware resource limitations for a given device.