.. include:: ../substitutions

.. oe:namespace:: OEConfGen

.. meta::
   :keywords: OEOmegaIsGPUReady

..  _OEConfGen_OEOmegaIsGPUReady:

.. oe:function:: OEOmegaIsGPUReady

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

      .. oe:api::

         bool OEOmegaIsGPUReady()

   .. oe:language:: python

      .. oe:api:: python

         OEOmegaIsGPUReady() -> bool

   Determines whether a GPU is present and available for use on the current system.

   This can be used to determine if conformer generation using the torsion driving
   method will be accelerated by a GPU.

  .. caution::
    This function causes GPU context creation and so is only safe to use from within
    a process when using a multithreaded environment such as Python's multiprocessing.

   .. seealso::

      * :ref:`chapter_omegagpuomega` chapter in the *OEOmega TK* documentation.

