.. oe:namespace:: OEFastROCS

.. meta::
   :keywords: OEFastROCSIsGPUReady 

.. oe:function:: OEFastROCSIsGPUReady

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEFastROCSIsGPUReady()

   .. oe:language:: python

      .. oe:api:: python

         OEFastROCSIsGPUReady() -> bool

   Returns True if :ref:`OEShapeDatabase <OEFastROCS_OEShapeDatabase>` can successfully execute queries. Useful for checking whether
   the machine has an accelerator properly setup and ready to accept FastROCS queries. It is guaranteed that if this function
   returns 'True' that all subsequent :ref:`OEShapeDatabase <OEFastROCS_OEShapeDatabase>` object can successfully execute queries. That
   means that this function will effectively initialize an underlying context that is re-used by
   :ref:`OEShapeDatabase <OEFastROCS_OEShapeDatabase>` objects, possibly grabbing an "exclusive process" lock:
   http://docs.nvidia.com/cuda/cuda-c-programming-guide/#compute-modes
