cuda-0.13.0.0: FFI binding to the CUDA driver interface for programming NVIDIA GPUs
Copyright[2009..2023] Trevor L. McDonell
LicenseBSD
Safe HaskellSafe-Inferred
LanguageHaskell98

Foreign.CUDA.Analysis.Device

Description

Common device functions

Synopsis

Documentation

data Compute Source #

GPU compute capability, major and minor revision number respectively.

Constructors

Compute !Int !Int 

Instances

Instances details
Show Compute Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

Eq Compute Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

Methods

(==) :: Compute -> Compute -> Bool #

(/=) :: Compute -> Compute -> Bool #

Ord Compute Source # 
Instance details

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

Instances details
Show DeviceProperties Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

data DeviceResources Source #

Constructors

DeviceResources 

Fields

Instances

Instances details
Show DeviceResources Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

data Allocation Source #

Constructors

Warp 
Block 

Instances

Instances details
Show Allocation Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

data PCI Source #

Constructors

PCI 

Fields

Instances

Instances details
Show PCI Source # 
Instance details

Defined in Foreign.CUDA.Analysis.Device

Methods

showsPrec :: Int -> PCI -> ShowS #

show :: PCI -> String #

showList :: [PCI] -> ShowS #

deviceResources :: DeviceProperties -> DeviceResources Source #

Extract some additional hardware resource limitations for a given device.