| Copyright | David Johnson (c) 2019-2026 |
|---|---|
| License | BSD3 |
| Maintainer | David Johnson <code@dmj.io> |
| Stability | Experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
ArrayFire.Device
Description
Information about ArrayFire API and devices
>>>infoArrayFire v3.6.4 (OpenCL, 64-bit Mac OSX, build 1b8030c5) [0] APPLE: AMD Radeon Pro 555X Compute Engine, 4096 MB -1- APPLE: Intel(R) UHD Graphics 630, 1536 MB
Documentation
afNotifyShutdown :: IO () Source #
withArrayFire :: IO a -> IO a Source #
Bracket for ArrayFire usage. Wrap your main (or top-level IO action)
with this to ensure the safe-finalizer shutdown flag is set before GHC's
finalizer thread runs, preventing a "double free or corruption" abort when
GC-managed array handles outlive ArrayFire's C++ allocator teardown.
main :: IO () main = withArrayFire $ do ...
Retrieve info from ArrayFire API
ArrayFire v3.6.4 (OpenCL, 64-bit Mac OSX, build 1b8030c5) [0] APPLE: AMD Radeon Pro 555X Compute Engine, 4096 MB -1- APPLE: Intel(R) UHD Graphics 630, 1536 MB
getInfoString :: IO String Source #
getDeviceCount :: IO Int Source #
Retrieves count of devices
>>>getDeviceCount2