cublas 0.4.0.1 → 0.5.0.0
raw patch · 4 files changed
+32/−4 lines, 4 files
Files
- CHANGELOG.md +6/−0
- Foreign/CUDA/BLAS/Context.chs +5/−0
- Foreign/CUDA/BLAS/Level3.chs +17/−0
- cublas.cabal +4/−4
CHANGELOG.md view
@@ -7,6 +7,11 @@ Policy (PVP)](https://pvp.haskell.org) +## [0.5.0.0] - 2018-10-02+### Added+ * `gemm[Strided]BatchedEx` from CUDA-9.1++ ## [0.4.0.1] - 2018-03-12 ### Fixed * Build fix for Cabal-2.2 (ghc-8.4)@@ -24,6 +29,7 @@ * First version; replaces [bmsherman/cublas](https://github.com/bmsherman/cublas). Released on an unsuspecting world. +[0.5.0.0]: https://github.com/tmcdonell/cublas/compare/release/0.4.0.1...v0.5.0.0 [0.4.0.1]: https://github.com/tmcdonell/cublas/compare/release/0.4.0.0...0.4.0.1 [0.4.0.0]: https://github.com/tmcdonell/cublas/compare/release/0.3.0.0...0.4.0.0
Foreign/CUDA/BLAS/Context.chs view
@@ -163,3 +163,8 @@ -> `()' checkStatus*- #} #endif +-- TODO: since CUDA-10.0+-- cublasLoggerConfigure+-- cublas[Get,Set]LoggerCallback+--+
Foreign/CUDA/BLAS/Level3.chs view
@@ -133,6 +133,8 @@ dotEx, dotcEx, scalEx,+ gemmBatchedEx,+ gemmStridedBatchedEx, ) where @@ -555,4 +557,19 @@ scalEx :: Handle -> Int -> Ptr () -> Type -> DevicePtr () -> Type -> Int -> Type -> IO () scalEx _ _ _ _ _ _ _ _ = cublasError "'scalEx' requires at least cuda-8.0"+#endif+#if CUDA_VERSION >= 9100++{-# INLINEABLE gemmBatchedEx #-}+{# fun unsafe cublasGemmBatchedEx as gemmBatchedEx { useHandle `Handle', cFromEnum `Operation', cFromEnum `Operation', `Int', `Int', `Int', castPtr `Ptr ()', useDevP `DevicePtr (DevicePtr ())', cFromEnum `Type', `Int', useDevP `DevicePtr ()', cFromEnum `Type', `Int', castPtr `Ptr ()', useDevP `DevicePtr ()', cFromEnum `Type', `Int', `Int', cFromEnum `Type', cFromEnum `GemmAlgorithm' } -> `()' checkStatus* #}++{-# INLINEABLE gemmStridedBatchedEx #-}+{# fun unsafe cublasGemmStridedBatchedEx as gemmStridedBatchedEx { useHandle `Handle', cFromEnum `Operation', cFromEnum `Operation', `Int', `Int', `Int', castPtr `Ptr ()', useDevP `DevicePtr ()', cFromEnum `Type', `Int', `Int64', useDevP `DevicePtr ()', cFromEnum `Type', `Int', `Int64', castPtr `Ptr ()', useDevP `DevicePtr ()', cFromEnum `Type', `Int', `Int64', `Int', cFromEnum `Type', cFromEnum `GemmAlgorithm' } -> `()' checkStatus* #}+#else++gemmBatchedEx :: Handle -> Operation -> Operation -> Int -> Int -> Int -> Ptr () -> DevicePtr (DevicePtr ()) -> Type -> Int -> DevicePtr () -> Type -> Int -> Ptr () -> DevicePtr () -> Type -> Int -> Int -> Type -> GemmAlgorithm -> IO ()+gemmBatchedEx _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ = cublasError "'gemmBatchedEx' requires at least cuda-9.1"++gemmStridedBatchedEx :: Handle -> Operation -> Operation -> Int -> Int -> Int -> Ptr () -> DevicePtr () -> Type -> Int -> Int64 -> DevicePtr () -> Type -> Int -> Int64 -> Ptr () -> DevicePtr () -> Type -> Int -> Int64 -> Int -> Type -> GemmAlgorithm -> IO ()+gemmStridedBatchedEx _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ = cublasError "'gemmStridedBatchedEx' requires at least cuda-9.1" #endif
cublas.cabal view
@@ -1,5 +1,5 @@ name: cublas-version: 0.4.0.1+version: 0.5.0.0 synopsis: FFI bindings to the CUDA BLAS library description: The cuBLAS library is an implementation of BLAS (Basic Linear Algebra@@ -15,8 +15,8 @@ license: BSD3 license-file: LICENSE author: Trevor L. McDonell, Ben Sherman-maintainer: Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>-copyright: Copyright (c) [2012..2017]. Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>, Ben Sherman <benmsherman@gmail.com>+maintainer: Trevor L. McDonell <trevor.mcdonell@gmail.com>+copyright: Copyright (c) [2012..2017]. Trevor L. McDonell <trevor.mcdonell@gmail.com>, Ben Sherman <benmsherman@gmail.com> category: Foreign cabal-version: >=1.24 @@ -79,6 +79,6 @@ source-repository this type: git location: https://github.com/tmcdonell/cublas- tag: 0.4.0.1+ tag: v0.5.0.0 -- vim: nospell