Download and Installation new: Difference between revisions

From OxDNA
Jump to navigation Jump to search
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
In this section, we outline the procedure for compiling oxDNA.
In this section, we outline the procedure for dowloading and compiling oxDNA.


==Requirements==
==Requirements==
Line 20: Line 20:
''via'' a [http://subversion.apache.org/ subversion] repository, accessible [http://sourceforge.net/p/oxdna/code/HEAD/tree/ here].
''via'' a [http://subversion.apache.org/ subversion] repository, accessible [http://sourceforge.net/p/oxdna/code/HEAD/tree/ here].


==Installation==
==Compilation==
To install the program enter the oxDNA directory. We recommend using an out-of-source build. A standard out-of-source build is as follows
We recommend using an out-of-source build to compile oxDNA. A standard out-of-source build is as follows


<pre>
<pre>
Line 27: Line 27:
mkdir build
mkdir build
cd build
cd build
cmake ..          # add cmake options, more on this later
cmake ..          # cmake options go here, more on this later
make -j4          # use 4 threads for compilation, sensibly shortening compiling time
make -j4          # use 4 threads for compilation, sensibly shortening compiling time
</pre>
</pre>
===Compile options===
The following parameters can be passed to cmake:
*'''-DDebug=1''' oxDNA will be compiled with debug flags (both for nvcc and gcc).
*'''-DG=1''' oxDNA will be compiled with both debug and optimization flags.
*'''-DINTEL=1''' oxDNA will be compiled using the Intel icpc compiler.
*'''-DCUDA=1''' oxDNA will be compiled with CUDA support. This requires a CUDA runtime version >= 3.2.
*'''-DMPI=1''' oxDNA will be compilted with MPI support. This is currently an '''unsupported''' feature and it should be used by developers only.


The compilation process will generate three executables in the build/bin folder: <tt>oxDNA</tt>, <tt>DNAnalysis</tt> and <tt>confGenerator</tt>.
The compilation process will generate three executables in the build/bin folder: <tt>oxDNA</tt>, <tt>DNAnalysis</tt> and <tt>confGenerator</tt>.
Their usage is as follows:


<pre>
<pre>
oxDNA <input>
oxDNA <input>
DNAnalysis <input>
confGenerator <input> <box_size/density> # the second argument will be interpreted as a density if it is less than 2.0
</pre>
</pre>


The complete list of supported input options can be found [[Documentation#Input_file|here]]. If you want some hands-on examples, there are some in the [[Examples|EXAMPLES]] directory.
If you want some oxDNA hands-on examples, there are some in the [[Examples|EXAMPLES]] directory.
 
A useful analysis tool that prints out all the interactions for a configuration is in the <tt>UTILS/process_data/</tt> directory. To compile it, one needs to go into that directory and type <tt>make</tt>. The program will be called <tt>output_bonds</tt> and its usage is described in the [[Documentation#Analysis_of_configurations|Documentation]].

Latest revision as of 15:25, 17 March 2014

In this section, we outline the procedure for dowloading and compiling oxDNA.

Requirements

Compiler

The recommended compiler is gcc 4.6.x. oxDNA compilation has been thoroughly tested with gcc >= 4.1.x and icpc >= 10. Note that compiling with gcc 4.6.x rather than with gcc 4.1.x results in a significant increase in performances. Since oxDNA is writtern in standard c++, it should be also compatible with other compilers. Optionally, oxDNA can be compiled to run on NVIDIA GPUs by enabling CUDA support at compile time.

Operating system

oxDNA has been tested on Linux (kernel >= 2.6.x) and Mac OS X. Since it is written in ANSI c++, it should also work out-of-the-box on other OSes.

Dependencies

The pre-compilation stage requires cmake, while compilation is carried out with GNU Make.

The CPU-only oxDNA does not depend on any external library apart from the standard c++ library.

The GPU-enabled oxDNA requires CUDA >= 3.2.

Download

There are currently no available binary packages for oxDNA. The last stable source package can be downloaded here, while bleeding edge (possibly unstable) versions are available via a subversion repository, accessible here.

Compilation

We recommend using an out-of-source build to compile oxDNA. A standard out-of-source build is as follows

cd oxDNA
mkdir build
cd build
cmake ..           # cmake options go here, more on this later
make -j4           # use 4 threads for compilation, sensibly shortening compiling time

Compile options

The following parameters can be passed to cmake:

  • -DDebug=1 oxDNA will be compiled with debug flags (both for nvcc and gcc).
  • -DG=1 oxDNA will be compiled with both debug and optimization flags.
  • -DINTEL=1 oxDNA will be compiled using the Intel icpc compiler.
  • -DCUDA=1 oxDNA will be compiled with CUDA support. This requires a CUDA runtime version >= 3.2.
  • -DMPI=1 oxDNA will be compilted with MPI support. This is currently an unsupported feature and it should be used by developers only.

The compilation process will generate three executables in the build/bin folder: oxDNA, DNAnalysis and confGenerator. Their usage is as follows:

oxDNA <input>
DNAnalysis <input>
confGenerator <input> <box_size/density> # the second argument will be interpreted as a density if it is less than 2.0

If you want some oxDNA hands-on examples, there are some in the EXAMPLES directory.