3 * This source code is part of
7 * GROningen MAchine for Chemical Simulations
10 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
11 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
12 * Copyright (c) 2001-2004, The GROMACS development team,
13 * check out http://www.gromacs.org for more information.
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * If you want to redistribute modifications, please consider that
21 * scientific software is very special. Version control is crucial -
22 * bugs must be traceable. We will be happy to consider code for
23 * inclusion in the official distribution, but derived work must not
24 * be called official GROMACS. Details are found in the README & COPYING
25 * files - if they are missing, get the official version at www.gromacs.org.
27 * To help us fund GROMACS development, we humbly ask that you cite
28 * the papers on the package - you can find them in the top README file.
30 * For more info, check our website at http://www.gromacs.org
33 * GROningen Mixture of Alchemy and Childrens' Stories
50 /* This file is completely threadsafe - keep it that way! */
52 #include "gromacs/fileio/futil.h"
53 #include "gromacs/legacyheaders/macros.h"
54 #include "gromacs/legacyheaders/random.h"
55 #include "gromacs/legacyheaders/smalloc.h"
56 #include "gromacs/legacyheaders/statutil.h"
57 #include "gromacs/legacyheaders/strdb.h"
58 #include "gromacs/legacyheaders/string2.h"
59 #include "gromacs/legacyheaders/vec.h"
61 #include "gromacs/fft/fft.h"
62 #include "gromacs/utility/exceptions.h"
63 #include "gromacs/utility/gmxassert.h"
64 #include "gromacs/utility/programinfo.h"
66 #include "buildinfo.h"
68 static gmx_bool be_cool(void)
70 /* Yes, it is bad to check the environment variable every call,
71 * but we dont call this routine often, and it avoids using
72 * a mutex for locking the variable...
74 #ifdef GMX_COOL_QUOTES
75 return (getenv("GMX_NO_QUOTES") == NULL);
82 static void pukeit(const char *db, const char *defstring, char *retstring,
83 int retsize, int *cqnum)
90 if (be_cool() && ((fp = low_libopen(db, FALSE)) != NULL))
92 nhlp = fget_lines(fp, &help);
93 /* for libraries we can use the low-level close routines */
96 *cqnum = static_cast<int>(nhlp*rando(&seed));
97 if (strlen(help[*cqnum]) >= STRLEN)
99 help[*cqnum][STRLEN-1] = '\0';
101 strncpy(retstring, help[*cqnum], retsize);
102 for (i = 0; (i < nhlp); i++)
111 strncpy(retstring, defstring, retsize);
115 void bromacs(char *retstring, int retsize)
119 pukeit("bromacs.dat",
120 "Groningen Machine for Chemical Simulation",
121 retstring, retsize, &dum);
124 void cool_quote(char *retstring, int retsize, int *cqnum)
139 /* protect audience from explicit lyrics */
140 snew(tmpstr, retsize+1);
141 pukeit("gurgle.dat", "Thanx for Using GROMACS - Have a Nice Day",
142 tmpstr, retsize-2, p);
144 if ((ptr = strchr(tmpstr, '_')) != NULL)
148 sprintf(retstring, "\"%s\" %s", tmpstr, ptr);
152 strcpy(retstring, tmpstr);
157 static void printCopyright(FILE *fp)
159 static const char * const CopyrightText[] = {
160 "GROMACS is written by:",
161 "Emile Apol, Rossen Apostolov, Herman J.C. Berendsen,",
162 "Aldert van Buuren, Pär Bjelkmar, Rudi van Drunen, Anton Feenstra,",
163 "Gerrit Groenhof, Christoph Junghans, Peter Kasson, Carsten Kutzner",
164 "Per Larsson, Magnus Lundborg, Pieter Meulenhoff, Teemu Murtola,",
165 "Szilard Pall, Sander Pronk, Roland Schulz,",
166 "Michael Shirts, Alfons Sijbers, Peter Tieleman,\n",
167 "Christian Wennberg, Mark Abraham\n",
168 "Berk Hess, David van der Spoel, and Erik Lindahl.\n",
169 "Copyright (c) 1991-2000, University of Groningen, The Netherlands.",
170 "Copyright (c) 2001-2013, The GROMACS development team at",
171 "Uppsala University & The Royal Institute of Technology, Sweden.",
172 "check out http://www.gromacs.org for more information."
175 static const char * const LicenseText[] = {
176 "GROMACS is free software; you can redistribute it and/or modify it",
177 "under the terms of the GNU Lesser General Public License",
178 "as published by the Free Software Foundation; either version 2.1",
179 "of the License, or (at your option) any later version."
182 #define NCR (int)asize(CopyrightText)
183 // FAH has an exception permission from LGPL to allow digital signatures in Gromacs.
187 #define NLICENSE (int)asize(LicenseText)
190 for (int i = 0; i < NCR; ++i)
192 fprintf(fp, "%s\n", CopyrightText[i]);
195 for (int i = 0; i < NLICENSE; ++i)
197 fprintf(fp, "%s\n", LicenseText[i]);
202 void gmx_thanx(FILE *fp)
207 /* protect the audience from suggestive discussions */
208 cool_quote(cq, 1023, &cqnum);
212 fprintf(fp, "\ngcq#%d: %s\n\n", cqnum, cq);
216 fprintf(fp, "\n%s\n\n", cq);
229 void please_cite(FILE *fp, const char *key)
231 static const t_citerec citedb[] = {
233 "M. P. Allen and D. J. Tildesley",
234 "Computer simulation of liquids",
235 "Oxford Science Publications",
238 "H. J. C. Berendsen, D. van der Spoel and R. van Drunen",
239 "GROMACS: A message-passing parallel molecular dynamics implementation",
243 "H. J. C. Berendsen, J. P. M. Postma, A. DiNola and J. R. Haak",
244 "Molecular dynamics with coupling to an external bath",
246 81, 1984, "3684-3690" },
248 "J. P. Ryckaert and G. Ciccotti and H. J. C. Berendsen",
249 "Numerical Integration of the Cartesian Equations of Motion of a System with Constraints; Molecular Dynamics of n-Alkanes",
251 23, 1977, "327-341" },
253 "S. Miyamoto and P. A. Kollman",
254 "SETTLE: An Analytical Version of the SHAKE and RATTLE Algorithms for Rigid Water Models",
256 13, 1992, "952-962" },
258 "D. T. Cromer & J. B. Mann",
259 "X-ray scattering factors computed from numerical Hartree-Fock wave functions",
263 "E. Barth and K. Kuczera and B. Leimkuhler and R. D. Skeel",
264 "Algorithms for Constrained Molecular Dynamics",
266 16, 1995, "1192-1209" },
268 "U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee and L. G. Pedersen ",
269 "A smooth particle mesh Ewald method",
271 103, 1995, "8577-8592" },
273 "A. E. Torda and R. M. Scheek and W. F. van Gunsteren",
274 "Time-dependent distance restraints in molecular dynamics simulations",
276 157, 1989, "289-294" },
278 "I. G. Tironi and R. Sperb and P. E. Smith and W. F. van Gunsteren",
279 "Generalized reaction field method for molecular dynamics simulations",
281 102, 1995, "5451-5459" },
283 "B. Hess and H. Bekker and H. J. C. Berendsen and J. G. E. M. Fraaije",
284 "LINCS: A Linear Constraint Solver for molecular simulations",
286 18, 1997, "1463-1472" },
289 "P-LINCS: A Parallel Linear Constraint Solver for molecular simulation",
290 "J. Chem. Theory Comput.",
291 4, 2008, "116-122" },
293 "B. Hess and C. Kutzner and D. van der Spoel and E. Lindahl",
294 "GROMACS 4: Algorithms for highly efficient, load-balanced, and scalable molecular simulation",
295 "J. Chem. Theory Comput.",
296 4, 2008, "435-447" },
298 "J. S. Hub, B. L. de Groot and D. van der Spoel",
299 "g_wham - A free weighted histogram analysis implementation including robust error and autocorrelation estimates",
300 "J. Chem. Theory Comput.",
301 6, 2010, "3713-3720"},
303 "Y. In-Chul and M. L. Berkowitz",
304 "Ewald summation for systems with slab geometry",
306 111, 1999, "3155-3162" },
308 "B. L. de Groot and D. M. F. van Aalten and R. M. Scheek and A. Amadei and G. Vriend and H. J. C. Berendsen",
309 "Prediction of Protein Conformational Freedom From Distance Constrains",
311 29, 1997, "240-251" },
313 "D. van der Spoel and P. J. van Maaren and H. J. C. Berendsen",
314 "A systematic study of water models for molecular simulation. Derivation of models optimized for use with a reaction-field.",
316 108, 1998, "10220-10230" },
318 "D. S. Wishart and A. M. Nip",
319 "Protein Chemical Shift Analysis: A Practical Guide",
320 "Biochem. Cell Biol.",
321 76, 1998, "153-163" },
323 "V. N. Maiorov and G. M. Crippen",
324 "Size-Independent Comparison of Protein Three-Dimensional Structures",
325 "PROTEINS: Struct. Funct. Gen.",
326 22, 1995, "273-283" },
328 "K. A. Feenstra and B. Hess and H. J. C. Berendsen",
329 "Improving Efficiency of Large Time-scale Molecular Dynamics Simulations of Hydrogen-rich Systems",
331 20, 1999, "786-798" },
333 "Tuanan C. Lourenco and Mariny F. C. Coelho and Teodorico C. Ramalho and David van der Spoel and Luciano T. Costa",
334 "Insights on the Solubility of CO2 in 1-Ethyl-3-methylimidazolium Bis(trifluoromethylsulfonyl)imide from the Microscopic Point of View",
335 "Environ. Sci. Technol.",
336 47, 2013, "7421-7429" },
338 "N. Timneanu and C. Caleman and J. Hajdu and D. van der Spoel",
339 "Auger Electron Cascades in Water and Ice",
341 299, 2004, "277-283" },
343 "T. A. Pascal and S. T. Lin and W. A. Goddard III",
344 "Thermodynamics of liquids: standard molar entropies and heat capacities of common solvents from 2PT molecular dynamics",
345 "Phys. Chem. Chem. Phys.",
346 13, 2011, "169-181" },
348 "C. Caleman and P. J. van Maaren and M. Hong and J. S. Hub and L. T. da Costa and D. van der Spoel",
349 "Force Field Benchmark of Organic Liquids: Density, Enthalpy of Vaporization, Heat Capacities, Surface Tension, Isothermal Compressibility, Volumetric Expansion Coefficient, and Dielectric Constant",
350 "J. Chem. Theo. Comp.",
353 "E. Lindahl and B. Hess and D. van der Spoel",
354 "GROMACS 3.0: A package for molecular simulation and trajectory analysis",
356 7, 2001, "306-317" },
358 "J. Wang and W. Wang and S. Huo and M. Lee and P. A. Kollman",
359 "Solvation model based on weighted solvent accessible surface area",
361 105, 2001, "5055-5067" },
363 "D. Eisenberg and A. D. McLachlan",
364 "Solvation energy in protein folding and binding",
366 319, 1986, "199-203" },
369 "van der Waals Volumes and Radii",
371 68, 1964, "441-451" },
373 "Frank Eisenhaber and Philip Lijnzaad and Patrick Argos and Chris Sander and Michael Scharf",
374 "The Double Cube Lattice Method: Efficient Approaches to Numerical Integration of Surface Area and Volume and to Dot Surface Contouring of Molecular Assemblies",
376 16, 1995, "273-284" },
378 "B. Hess, H. Saint-Martin and H.J.C. Berendsen",
379 "Flexible constraints: an adiabatic treatment of quantum degrees of freedom, with application to the flexible and polarizable MCDHO model for water",
381 116, 2002, "9602-9610" },
383 "Csaba Hetenyi and David van der Spoel",
384 "Efficient docking of peptides to proteins without prior knowledge of the binding site.",
386 11, 2002, "1729-1737" },
388 "B. Hess and R.M. Scheek",
389 "Orientation restraints in molecular dynamics simulations using time and ensemble averaging",
391 164, 2003, "19-27" },
393 "A. K. Rappe and W. A. Goddard III",
394 "Charge Equillibration for Molecular Dynamics Simulations",
396 95, 1991, "3358-3363" },
398 "Y. Mu, P. H. Nguyen and G. Stock",
399 "Energy landscape of a small peptide revelaed by dihedral angle principal component analysis",
400 "Prot. Struct. Funct. Bioinf.",
403 "T. Okabe and M. Kawata and Y. Okamoto and M. Mikami",
404 "Replica-exchange {M}onte {C}arlo method for the isobaric-isothermal ensemble",
406 335, 2001, "435-439" },
408 "K. Hukushima and K. Nemoto",
409 "Exchange Monte Carlo Method and Application to Spin Glass Simulations",
410 "J. Phys. Soc. Jpn.",
411 65, 1996, "1604-1608" },
414 "Dipolar Relaxation and Nuclear Overhauser effects in nonrigid molecules: The effect of fluctuating internuclear distances",
416 72, 1980, "6035-6043" },
418 "P. Bultinck and W. Langenaeker and P. Lahorte and F. De Proft and P. Geerlings and M. Waroquier and J. P. Tollenaere",
419 "The electronegativity equalization method I: Parametrization and validation for atomic charge calculations",
421 106, 2002, "7887-7894" },
423 "Q. Y. Yang and K. A. Sharp",
424 "Atomic charge parameters for the finite difference Poisson-Boltzmann method using electronegativity neutralization",
425 "J. Chem. Theory Comput.",
426 2, 2006, "1152-1167" },
428 "D. van der Spoel, E. Lindahl, B. Hess, G. Groenhof, A. E. Mark and H. J. C. Berendsen",
429 "GROMACS: Fast, Flexible and Free",
431 26, 2005, "1701-1719" },
433 "D. van der Spoel, P. J. van Maaren, P. Larsson and N. Timneanu",
434 "Thermodynamics of hydrogen bonding in hydrophilic and hydrophobic media",
436 110, 2006, "4393-4398" },
438 "D. van der Spoel and M. M. Seibert",
439 "Protein folding kinetics and thermodynamics from atomistic simulations",
440 "Phys. Rev. Letters",
441 96, 2006, "238102" },
444 "Transverse-current autocorrelation-function calculations of the shear viscosity for molecular liquids",
446 49, 1994, "359-366" },
448 "G. Bussi, D. Donadio and M. Parrinello",
449 "Canonical sampling through velocity rescaling",
451 126, 2007, "014101" },
453 "J. S. Hub and B. L. de Groot",
454 "Does CO2 permeate through Aquaporin-1?",
456 91, 2006, "842-848" },
458 "J. S. Hub and B. L. de Groot",
459 "Mechanism of selectivity in aquaporins and aquaglyceroporins",
461 105, 2008, "1198-1203" },
463 "M. S. Friedrichs, P. Eastman, V. Vaidyanathan, M. Houston, S. LeGrand, A. L. Beberg, D. L. Ensign, C. M. Bruns, and V. S. Pande",
464 "Accelerating Molecular Dynamic Simulation on Graphics Processing Units",
466 30, 2009, "864-872" },
468 "O. Engin, A. Villa, M. Sayar and B. Hess",
469 "Driving Forces for Adsorption of Amphiphilic Peptides to Air-Water Interface",
471 114, 2010, "11093" },
473 "S. Fritsch, C. Junghans and K. Kremer",
474 "Adaptive molecular simulation study on structure formation of toluene around C60 using Gromacs",
475 "J. Chem. Theo. Comp.",
478 "C. Junghans and S. Poblete",
479 "A reference implementation of the adaptive resolution scheme in ESPResSo",
483 "H. Wang, F. Dommert, C.Holm",
484 "Optimizing working parameters of the smooth particle mesh Ewald algorithm in terms of accuracy and efficiency",
486 133, 2010, "034117" },
488 "Y. Sugita, Y. Okamoto",
489 "Replica-exchange molecular dynamics method for protein folding",
491 314, 1999, "141-151" },
493 "C. Kutzner and J. Czub and H. Grubmuller",
494 "Keep it Flexible: Driving Macromolecular Rotary Motions in Atomistic Simulations with GROMACS",
495 "J. Chem. Theory Comput.",
496 7, 2011, "1381-1393" },
498 "M. Hoefling, N. Lima, D. Haenni, C.A.M. Seidel, B. Schuler, H. Grubmuller",
499 "Structural Heterogeneity and Quantitative FRET Efficiency Distributions of Polyprolines through a Hybrid Atomistic Simulation and Monte Carlo Approach",
503 "R. W. Hockney and J. W. Eastwood",
504 "Computer simulation using particles",
508 "V. Ballenegger, J.J. Cerda, and C. Holm",
509 "How to Convert SPME to P3M: Influence Functions and Error Estimates",
510 "J. Chem. Theory Comput.",
511 8, 2012, "936-947" },
513 "Garmay Yu, Shvetsov A, Karelov D, Lebedev D, Radulescu A, Petukhov M, Isaev-Ivanov V",
514 "Correlated motion of protein subdomains and large-scale conformational flexibility of RecA protein filament",
515 "Journal of Physics: Conference Series",
516 340, 2012, "012094" }
518 #define NSTR (int)asize(citedb)
523 #define LINE_WIDTH 79
530 for (index = 0; (index < NSTR) && (strcmp(citedb[index].key, key) != 0); index++)
535 fprintf(fp, "\n++++ PLEASE READ AND CITE THE FOLLOWING REFERENCE ++++\n");
538 /* Insert newlines */
539 author = wrap_lines(citedb[index].author, LINE_WIDTH, 0, FALSE);
540 title = wrap_lines(citedb[index].title, LINE_WIDTH, 0, FALSE);
541 fprintf(fp, "%s\n%s\n%s %d (%d) pp. %s\n",
542 author, title, citedb[index].journal,
543 citedb[index].volume, citedb[index].year,
544 citedb[index].pages);
550 fprintf(fp, "Entry %s not found in citation database\n", key);
552 fprintf(fp, "-------- -------- --- Thank You --- -------- --------\n\n");
556 #ifdef GMX_GIT_VERSION_INFO
557 /* Version information generated at compile time. */
558 #include "gromacs/utility/gitversion.h"
560 /* Fall back to statically defined version. */
561 static const char _gmx_ver_string[] = "VERSION " VERSION;
564 const char *GromacsVersion()
566 return _gmx_ver_string;
569 const char *ShortProgram(void)
573 // TODO: Use the display name once it doesn't break anything.
574 return gmx::ProgramInfo::getInstance().programName().c_str();
576 GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR;
579 const char *Program(void)
583 return gmx::ProgramInfo::getInstance().fullBinaryPath().c_str();
585 GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR;
589 extern void gmx_print_version_info_gpu(FILE *fp);
591 static void gmx_print_version_info(FILE *fp)
593 fprintf(fp, "Gromacs version: %s\n", _gmx_ver_string);
594 #ifdef GMX_GIT_VERSION_INFO
595 fprintf(fp, "GIT SHA1 hash: %s\n", _gmx_full_git_hash);
596 /* Only print out the branch information if present.
597 * The generating script checks whether the branch point actually
598 * coincides with the hash reported above, and produces an empty string
600 if (_gmx_central_base_hash[0] != 0)
602 fprintf(fp, "Branched from: %s\n", _gmx_central_base_hash);
607 fprintf(fp, "Precision: double\n");
609 fprintf(fp, "Precision: single\n");
611 fprintf(fp, "Memory model: %lu bit\n", 8*sizeof(void *));
613 #ifdef GMX_THREAD_MPI
614 fprintf(fp, "MPI library: thread_mpi\n");
615 #elif defined(GMX_MPI)
616 fprintf(fp, "MPI library: MPI\n");
618 fprintf(fp, "MPI library: none\n");
621 fprintf(fp, "OpenMP support: enabled\n");
623 fprintf(fp, "OpenMP support: disabled\n");
626 fprintf(fp, "GPU support: enabled\n");
628 fprintf(fp, "GPU support: disabled\n");
630 /* A preprocessor trick to avoid duplicating logic from vec.h */
631 #define gmx_stringify2(x) #x
632 #define gmx_stringify(x) gmx_stringify2(x)
633 fprintf(fp, "invsqrt routine: %s\n", gmx_stringify(gmx_invsqrt(x)));
634 fprintf(fp, "CPU acceleration: %s\n", GMX_CPU_ACCELERATION_STRING);
636 fprintf(fp, "FFT library: %s\n", gmx_fft_get_version_info());
637 #ifdef GMX_LARGEFILES
638 fprintf(fp, "Large file support: enabled\n");
640 fprintf(fp, "Large file support: disabled\n");
643 fprintf(fp, "RDTSCP usage: enabled\n");
645 fprintf(fp, "RDTSCP usage: disabled\n");
648 fprintf(fp, "Built on: %s\n", BUILD_TIME);
649 fprintf(fp, "Built by: %s\n", BUILD_USER);
650 fprintf(fp, "Build OS/arch: %s\n", BUILD_HOST);
651 fprintf(fp, "Build CPU vendor: %s\n", BUILD_CPU_VENDOR);
652 fprintf(fp, "Build CPU brand: %s\n", BUILD_CPU_BRAND);
653 fprintf(fp, "Build CPU family: %d Model: %d Stepping: %d\n",
654 BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);
655 /* TODO: The below strings can be quite long, so it would be nice to wrap
656 * them. Can wait for later, as the master branch has ready code to do all
658 fprintf(fp, "Build CPU features: %s\n", BUILD_CPU_FEATURES);
659 fprintf(fp, "C compiler: %s\n", BUILD_C_COMPILER);
660 fprintf(fp, "C compiler flags: %s\n", BUILD_CFLAGS);
661 fprintf(fp, "C++ compiler: %s\n", BUILD_CXX_COMPILER);
662 fprintf(fp, "C++ compiler flags: %s\n", BUILD_CXXFLAGS);
664 /* MKL might be used for LAPACK/BLAS even if FFTs use FFTW, so keep it separate */
665 fprintf(fp, "Linked with Intel MKL version %d.%d.%d.\n",
666 __INTEL_MKL__, __INTEL_MKL_MINOR__, __INTEL_MKL_UPDATE__);
669 gmx_print_version_info_gpu(fp);
676 BinaryInformationSettings::BinaryInformationSettings()
677 : bExtendedInfo_(false), bCopyright_(false),
678 bGeneratedByHeader_(false), prefix_(""), suffix_("")
682 void printBinaryInformation(FILE *fp, const ProgramInfo &programInfo)
684 printBinaryInformation(fp, programInfo, BinaryInformationSettings());
687 void printBinaryInformation(FILE *fp, const ProgramInfo &programInfo,
688 const BinaryInformationSettings &settings)
690 const char *prefix = settings.prefix_;
691 const char *suffix = settings.suffix_;
692 const char *precisionString = "";
694 precisionString = " (double precision)";
696 const std::string &name = programInfo.displayName();
697 if (settings.bGeneratedByHeader_)
699 fprintf(fp, "%sCreated by:%s\n", prefix, suffix);
701 if (settings.bCopyright_)
703 GMX_RELEASE_ASSERT(prefix[0] == '\0' && suffix[0] == '\0',
704 "Prefix/suffix not supported with copyright");
705 // This line is printed again after the copyright notice to make it
706 // appear together with all the other information, so that it is not
707 // necessary to read stuff above the copyright notice.
708 // The line above the copyright notice puts the copyright notice is
710 // TODO: It would be nice to know here whether we are really running a
711 // Gromacs binary or some other binary that is calling Gromacs; we
712 // could then print "%s is part of GROMACS" or some alternative text.
713 fprintf(fp, "%sGROMACS: %s, %s%s%s\n", prefix, name.c_str(),
714 GromacsVersion(), precisionString, suffix);
719 fprintf(fp, "%sGROMACS: %s, %s%s%s\n", prefix, name.c_str(),
720 GromacsVersion(), precisionString, suffix);
721 fprintf(fp, "%sExecutable: %s%s\n", prefix,
722 programInfo.fullBinaryPath().c_str(), suffix);
723 fprintf(fp, "%sCommand line:%s\n%s %s%s\n",
724 prefix, suffix, prefix, programInfo.commandLine().c_str(), suffix);
725 if (settings.bExtendedInfo_)
727 GMX_RELEASE_ASSERT(prefix[0] == '\0' && suffix[0] == '\0',
728 "Prefix/suffix not supported with extended info");
730 gmx_print_version_info(fp);