Git Product home page Git Product logo

gigist's Introduction

GIGIST

GPU Implementation of GIST

For a standard cpptraj installation, a shell script and a patch file has been supplied.

Usage:

bash patch.sh </ROUTE/TO/CPPTRAJ/DIRECTORY>

If the route to the cpptraj diorectory is not supplied, uses the cpptraj installation from AMBERHOME.

After applying the patch.sh shell script, all that remains to be done is to compile cpptraj in the usual way. Preferrably, using configure gnu -cuda -openmp and subsequently make.

If the cpptraj installation is not a standard installation, the following steps have to be taken:

  • configure
  • src/Makefile
  • src/CMakeList.txt
  • src/Command.cpp
  • src/cpptrajfiles

Here is what you need to add to the different files:

  • In configure add to the CUDA_TARGET cuda_kernel_gist/lib_cuda_gist.a
  • In the src/Makefile add a recipe for the cuda_kernel_gist/lib_cuda_gist.a, add
 cuda_kernel_gist/lib_cuda_gist.a:
      cd cuda_kernel_gist/ && $(MAKE) all
  • In the src/CMakeLists.txt add at the beginning
    • add_subdirectory(cuda_kernel_gist)
  • In the src/Command.cpp add after the two equivalent GIST statements
    • #include "Action_GIGIST.h"
    • Command::AddCmd( new Action_GIGist(), Cmd::ACT, 1, "gigist" );
  • In the src/cpptrajfiles add after the equivalent GIST statement
    • Action_GIGIST.cpp \
  • Copy the contents of the directory into your cpptraj src directory

After updating these files, you can simply compile the code via make in the root directory.

$ ./configure gnu -cuda -openmp
$ make

The author urges to actually use cuda and openmp or only cuda. Any speedup resulting from the new implementation will be lost otherwise. The code should still work (at the moment) but will not be fast.

The CUDA source code is its own directory, since it is not officially added in cpptraj yet. One can easily change that, but needs to also change the commands presented above, as well as some lines in the include statements.

The columns in the gist output file are ordered differently than in the original implementation, the density of the water oxygen and hydrogen was moved to the back. This, of course, also has a big impact on the other columns.

This code was written by Johannes Kraml and is based on the implementation present in cpptraj.

[email protected]

gigist's People

Contributors

fwaibl avatar jokr91 avatar steinmig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.