.. _oegraphsim_chapter_gpu_prereq:

********************************************************************************
Prerequisites
********************************************************************************

Fast fingerprint searching in **Graphsim TK** is GPU-enabled. In order to run
searches on a GPU please refer to the guidelines below:

..  _graphsim_prereq_for_gpu:

.. include:: ../../common/gpu_prereq.rst

********************************************************************************
Usage
********************************************************************************

An example of how to perform fast fingerprint searches can be found at :ref:`section_examples_summary_searchfastfp`.
To run using a GPU the :oe:constns:`OEGraphSim::OEFastFPDatabaseMemoryType::CUDA` constant
is used to construct the :ref:`OEFastFPDatabase <OEGraphSim_OEFastFPDatabase>` object.
If using the example script aforementioned, simply run the script with ``-memorytype CUDA``.

.. seealso::

   * :oe:constns:`OEGraphSim::OEFastFPDatabaseMemoryType` namespace
   * :ref:`OEFastFPDatabase <OEGraphSim_OEFastFPDatabase>` class
   * :ref:`OEFPDatabaseOptions <OEGraphSim_OEFPDatabaseOptions>` class
