{-# LANGUAGE ForeignFunctionInterface #-} module Torch.FFI.THC.Half.Storage where import Foreign import Foreign.C.Types import Data.Word import Data.Int import Torch.Types.TH import Torch.Types.THC -- | c_data : state -> real * foreign import ccall "THCStorage.h THCudaHalfStorage_data" c_data :: Ptr C'THCState -> Ptr C'THCHalfStorage -> IO (Ptr CTHHalf) -- | c_size : state -> ptrdiff_t foreign import ccall "THCStorage.h THCudaHalfStorage_size" c_size :: Ptr C'THCState -> Ptr C'THCHalfStorage -> IO CPtrdiff -- | c_set : state -> void foreign import ccall "THCStorage.h THCudaHalfStorage_set" c_set :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> CTHHalf -> IO () -- | c_get : state -> real foreign import ccall "THCStorage.h THCudaHalfStorage_get" c_get :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> IO CTHHalf -- | c_new : state -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_new" c_new :: Ptr C'THCState -> IO (Ptr C'THCHalfStorage) -- | c_newWithSize : state size -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithSize" c_newWithSize :: Ptr C'THCState -> CPtrdiff -> IO (Ptr C'THCHalfStorage) -- | c_newWithSize1 : state -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithSize1" c_newWithSize1 :: Ptr C'THCState -> CTHHalf -> IO (Ptr C'THCHalfStorage) -- | c_newWithSize2 : state -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithSize2" c_newWithSize2 :: Ptr C'THCState -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage) -- | c_newWithSize3 : state -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithSize3" c_newWithSize3 :: Ptr C'THCState -> CTHHalf -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage) -- | c_newWithSize4 : state -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithSize4" c_newWithSize4 :: Ptr C'THCState -> CTHHalf -> CTHHalf -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage) -- | c_newWithMapping : state filename size shared -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithMapping" c_newWithMapping :: Ptr C'THCState -> Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THCHalfStorage) -- | c_newWithData : state data size -> THCStorage * foreign import ccall "THCStorage.h THCudaHalfStorage_newWithData" c_newWithData :: Ptr C'THCState -> Ptr CTHHalf -> CPtrdiff -> IO (Ptr C'THCHalfStorage) -- | c_setFlag : state storage flag -> void foreign import ccall "THCStorage.h THCudaHalfStorage_setFlag" c_setFlag :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CChar -> IO () -- | c_clearFlag : state storage flag -> void foreign import ccall "THCStorage.h THCudaHalfStorage_clearFlag" c_clearFlag :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CChar -> IO () -- | c_retain : state storage -> void foreign import ccall "THCStorage.h THCudaHalfStorage_retain" c_retain :: Ptr C'THCState -> Ptr C'THCHalfStorage -> IO () -- | c_free : state storage -> void foreign import ccall "THCStorage.h THCudaHalfStorage_free" c_free :: Ptr C'THCState -> Ptr C'THCHalfStorage -> IO () -- | c_resize : state storage size -> void foreign import ccall "THCStorage.h THCudaHalfStorage_resize" c_resize :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> IO () -- | c_fill : state storage value -> void foreign import ccall "THCStorage.h THCudaHalfStorage_fill" c_fill :: Ptr C'THCState -> Ptr C'THCHalfStorage -> CTHHalf -> IO () -- | c_getDevice : state storage -> int foreign import ccall "THCStorage.h THCudaHalfStorage_getDevice" c_getDevice :: Ptr C'THCState -> Ptr C'THCHalfStorage -> IO CInt -- | p_data : Pointer to function : state -> real * foreign import ccall "THCStorage.h &THCudaHalfStorage_data" p_data :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> IO (Ptr CTHHalf)) -- | p_size : Pointer to function : state -> ptrdiff_t foreign import ccall "THCStorage.h &THCudaHalfStorage_size" p_size :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> IO CPtrdiff) -- | p_set : Pointer to function : state -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_set" p_set :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> CTHHalf -> IO ()) -- | p_get : Pointer to function : state -> real foreign import ccall "THCStorage.h &THCudaHalfStorage_get" p_get :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> IO CTHHalf) -- | p_new : Pointer to function : state -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_new" p_new :: FunPtr (Ptr C'THCState -> IO (Ptr C'THCHalfStorage)) -- | p_newWithSize : Pointer to function : state size -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithSize" p_newWithSize :: FunPtr (Ptr C'THCState -> CPtrdiff -> IO (Ptr C'THCHalfStorage)) -- | p_newWithSize1 : Pointer to function : state -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithSize1" p_newWithSize1 :: FunPtr (Ptr C'THCState -> CTHHalf -> IO (Ptr C'THCHalfStorage)) -- | p_newWithSize2 : Pointer to function : state -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithSize2" p_newWithSize2 :: FunPtr (Ptr C'THCState -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage)) -- | p_newWithSize3 : Pointer to function : state -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithSize3" p_newWithSize3 :: FunPtr (Ptr C'THCState -> CTHHalf -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage)) -- | p_newWithSize4 : Pointer to function : state -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithSize4" p_newWithSize4 :: FunPtr (Ptr C'THCState -> CTHHalf -> CTHHalf -> CTHHalf -> CTHHalf -> IO (Ptr C'THCHalfStorage)) -- | p_newWithMapping : Pointer to function : state filename size shared -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithMapping" p_newWithMapping :: FunPtr (Ptr C'THCState -> Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THCHalfStorage)) -- | p_newWithData : Pointer to function : state data size -> THCStorage * foreign import ccall "THCStorage.h &THCudaHalfStorage_newWithData" p_newWithData :: FunPtr (Ptr C'THCState -> Ptr CTHHalf -> CPtrdiff -> IO (Ptr C'THCHalfStorage)) -- | p_setFlag : Pointer to function : state storage flag -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_setFlag" p_setFlag :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CChar -> IO ()) -- | p_clearFlag : Pointer to function : state storage flag -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_clearFlag" p_clearFlag :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CChar -> IO ()) -- | p_retain : Pointer to function : state storage -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_retain" p_retain :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> IO ()) -- | p_free : Pointer to function : state storage -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_free" p_free :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> IO ()) -- | p_resize : Pointer to function : state storage size -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_resize" p_resize :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CPtrdiff -> IO ()) -- | p_fill : Pointer to function : state storage value -> void foreign import ccall "THCStorage.h &THCudaHalfStorage_fill" p_fill :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> CTHHalf -> IO ()) -- | p_getDevice : Pointer to function : state storage -> int foreign import ccall "THCStorage.h &THCudaHalfStorage_getDevice" p_getDevice :: FunPtr (Ptr C'THCState -> Ptr C'THCHalfStorage -> IO CInt)