Copyright | David Johnson (c) 2019-2020 |
---|---|
License | BSD 3 |
Maintainer | David Johnson <djohnson.m@gmail.com> |
Stability | Experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Set and get available ArrayFire Backend
s.
module Main where import ArrayFire main :: IO () main = print =<< getAvailableBackends
[CPU,OpenCL]
Synopsis
- setBackend :: Backend -> IO ()
- getBackendCount :: IO Int
- getAvailableBackends :: IO [Backend]
- getBackend :: Array a -> Backend
- getActiveBackend :: IO Backend
- getDeviceID :: Array a -> Int
Documentation
Set specific Backend
to use
>>>
setBackend OpenCL
()
getBackendCount :: IO Int Source #
Retrieve count of Backends available
>>>
getBackendCount
2
getAvailableBackends :: IO [Backend] Source #
Retrieve available Backend
s
>>>
mapM_ print =<< getAvailableBackends
CPU OpenCL
getBackend :: Array a -> Backend Source #