.. oe:namespace:: OESiteHopper

..  _OESiteHopper_OESiteHopperIsGPUReady:

.. oe:function:: OESiteHopperIsGPUReady

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

      .. oe:api::

         bool OESiteHopperIsGPUReady()

   .. oe:language:: python

      .. oe:api:: python

         OESiteHopperIsGPUReady() -> bool

   Returns true if :oe:cls:`OESiteHopper::OESiteHopperSearch::Search` can
   successfully use the GPU for prescreen search. Useful for checking whether
   the machine has an accelerator properly setup. It is guaranteed that if this
   function returns 'true' that all subsequent
   :oe:cls:`OESiteHopper::OESiteHopperSearch::Search` method can successfully
   execute queries. That means that this function will effectively initialize an
   underlying context that is re-used by
   :ref:`OESiteHopperSearch <OESiteHopper_OESiteHopperSearch>` objects, possibly grabbing an
   "exclusive process" lock:
   http://docs.nvidia.com/cuda/cuda-c-programming-guide/#compute-modes
