       canMapHostMemory                  = hm
     }
 
-
+#if CUDA_VERSION < 5000
+-- Deprecated as of CUDA-5.0
 {-# INLINE cuDeviceGetProperties #-}
 {# fun unsafe cuDeviceGetProperties
   { alloca-   `CUDevProp' peek*
   , useDevice `Device'          } -> `Status' cToEnum #}
-
-
--- |
--- Total memory available on the device (bytes)
+#endif
+
+
+-- |
+-- The total memory available on the device (bytes).
+--
+-- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__DEVICE.html#group__CUDA__DEVICE_1gc6a0d6551335a3780f9f3c967a0fde5d>
 --
 {-# INLINEABLE totalMem #-}
 totalMem :: Device -> IO Int64



-- |
-- Name of the device
--
{-# INLINEABLE name #-}
name :: Device -> IO String

{# pointer *CUdevprop as ^ foreign -> CUDevProp nocode #}


#if CUDA_VERSION < 5000
--
-- Properties of the compute device (internal helper).
-- Replaced by cuDeviceGetAttribute in CUDA-5.0 and later.
--
data CUDevProp = CUDevProp
  {
