Enable parallel tests.
[hoomd-blue.git] / libhoomd / utils / HOOMDVersion.cc
blob9df82a3fd1744582ae3a95e2bec96dd30286b97a
1 /*
2 Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
3 (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of
4 the University of Michigan All rights reserved.
6 HOOMD-blue may contain modifications ("Contributions") provided, and to which
7 copyright is held, by various Contributors who have granted The Regents of the
8 University of Michigan the right to modify and/or distribute such Contributions.
10 You may redistribute, use, and create derivate works of HOOMD-blue, in source
11 and binary forms, provided you abide by the following conditions:
13 * Redistributions of source code must retain the above copyright notice, this
14 list of conditions, and the following disclaimer both in the code and
15 prominently in any materials provided with the distribution.
17 * Redistributions in binary form must reproduce the above copyright notice, this
18 list of conditions, and the following disclaimer in the documentation and/or
19 other materials provided with the distribution.
21 * All publications and presentations based on HOOMD-blue, including any reports
22 or published results obtained, in whole or in part, with HOOMD-blue, will
23 acknowledge its use according to the terms posted at the time of submission on:
24 http://codeblue.umich.edu/hoomd-blue/citations.html
26 * Any electronic documents citing HOOMD-Blue will link to the HOOMD-Blue website:
27 http://codeblue.umich.edu/hoomd-blue/
29 * Apart from the above required attributions, neither the name of the copyright
30 holder nor the names of HOOMD-blue's contributors may be used to endorse or
31 promote products derived from this software without specific prior written
32 permission.
34 Disclaimer
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' AND
37 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR ANY
39 WARRANTIES THAT THIS SOFTWARE IS FREE OF INFRINGEMENT ARE DISCLAIMED.
41 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
42 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
43 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
44 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
45 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
46 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
47 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 // Maintainer: joaander
52 #include <iostream>
53 #include <string>
55 using namespace std;
57 #include "HOOMDVersion.h"
58 /*! \file HOOMDVersion.cc
59 \brief Defines functions for writing compile time version information to the screen.
61 \ingroup utils
64 void output_version_info(bool verbose)
66 #ifdef ENABLE_MPI
67 // only print this on rank zero
68 if (ExecutionConfiguration::getRankGlobal() != 0)
69 return;
70 #endif
72 // output the version info that comes from CMake
73 cout << "HOOMD-blue " << HOOMD_VERSION_LONG;
75 #ifdef ENABLE_CUDA
76 cout << " CUDA";
77 #endif
79 #ifdef SINGLE_PRECISION
80 cout << " SINGLE";
81 #else
82 cout << " DOUBLE";
83 #endif
85 #ifdef ENABLE_MPI
86 cout << " MPI";
87 #endif
89 #ifdef ENABLE_MPI_CUDA
90 cout << " MPI_CUDA";
91 #endif
93 #ifdef __SSE__
94 cout << " SSE";
95 #endif
97 #ifdef __AVX__
98 cout << " AVX";
99 #endif
101 cout << endl;
103 // output the compiled date and copyright information
104 cout << "Compiled: " << COMPILE_DATE << endl;
105 cout << "Copyright 2009-2014 The Regents of the University of Michigan."
106 << endl;
108 // output the paper citation information
109 cout << "-----" << endl;
110 cout << "All publications and presentations based on HOOMD-blue, including any reports" << endl;
111 cout << "or published results obtained, in whole or in part, with HOOMD-blue, will" << endl;
112 cout << "acknowledge its use according to the terms posted at the time of submission on:" << endl;
113 cout << "http://codeblue.umich.edu/hoomd-blue/citations.html" << endl;
114 cout << endl;
115 cout << "At a minimum, this includes citations of:" << endl;
116 cout << "* http://codeblue.umich.edu/hoomd-blue/" << endl;
117 cout << "and:" << endl;
118 cout << "* Joshua A. Anderson, Chris D. Lorenz, and Alex Travesset - 'General" << endl;
119 cout << " Purpose Molecular Dynamics Fully Implemented on Graphics Processing" << endl;
120 cout << " Units', Journal of Computational Physics 227 (2008) 5342-5359" << endl;
121 cout << "-----" << endl;
123 // warn the user if they are running a debug or GPU emulation build
124 #ifndef NDEBUG
125 cout << "WARNING: This is a DEBUG build, expect slow performance." << endl;
126 #endif
128 #ifdef ENABLE_CUDA
129 #ifdef _DEVICEEMU
130 cout << "WARNING: This is a GPU emulation build, expect extremely slow performance." << endl;
131 #endif
132 #endif