'release-with-assert': Option.simple,
'release-with-debug-info': Option.simple,
'asan': Option.simple,
+ 'tng' : Option.bool,
'mkl': Option.simple,
'fftpack': Option.simple,
'double': Option.simple,
cmake_opts['GMX_MPI'] = 'ON'
if context.opts.openmp is False:
cmake_opts['GMX_OPENMP'] = 'OFF'
+ if context.opts.tng is False:
+ cmake_opts['GMX_USE_TNG'] = 'OFF'
if context.opts.mkl:
cmake_opts['GMX_FFT_LIBRARY'] = 'mkl'
icc-17 simd=avx_256 npme=1 nranks=2 no-openmp double fftpack release
# Test CUDA build on a slave with no CUDA devices
-gcc-4.9 gpu cuda-7.0 openmp release-with-assert
+# Test without TNG support
+gcc-4.9 gpu cuda-7.0 openmp no-tng release-with-assert
# Test non-default GMX_PREFER_STATIC_LIBS behavior
# TODO enable this
# Add SIMD + OpenMP + CUDA asan build
# Add OpenMP + CUDA + device sharing TSAN build
# Re-enable Phi build (FIXME: do we still care?)
-# Test without TNG support
+# Test without hwloc support
# Test with NVML support
# Test statically linked hwloc support (if/when it can work well)
# Test 3D DD (2D is partially covered in regressiontests)
#include "gromacs/utility/sysinfo.h"
#include "gromacs/utility/unique_cptr.h"
+#if !GMX_USE_TNG
+using tng_trajectory_t = void *;
+#endif
+
/*! \brief Gromacs Wrapper around tng datatype
*
* This could in principle hold any GROMACS-specific requirements not yet
int lambdaOutputInterval; //!< Number of steps between the output of lambdas
};
+#if GMX_USE_TNG
static const char *modeToVerb(char mode)
{
const char *p;
}
return p;
}
+#endif
void gmx_tng_open(const char *filename,
char mode,
close_xtc(xd);
}
+#if GMX_USE_TNG
+
/*! \brief Callback used by list_tng_for_gmx_dump. */
static void list_tng_inner(const char *fn,
gmx_bool bFirstFrame,
pr_reals_of_dim(stdout, indent, block_name, values, n_atoms, n_values_per_frame);
}
+#endif
+
static void list_tng(const char gmx_unused *fn)
{
-#ifdef GMX_USE_TNG
+#if GMX_USE_TNG
gmx_tng_trajectory_t tng;
int64_t nframe = 0;
int64_t i, *block_ids = nullptr, step, ndatablocks;
writer->writeLine(formatString("SIMD instructions: %s", GMX_SIMD_STRING));
writer->writeLine(formatString("FFT library: %s", getFftDescriptionString()));
writer->writeLine(formatString("RDTSCP usage: %s", HAVE_RDTSCP ? "enabled" : "disabled"));
-#ifdef GMX_USE_TNG
+#if GMX_USE_TNG
writer->writeLine("TNG support: enabled");
#else
writer->writeLine("TNG support: disabled");
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2018, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
{
// TODO configure these tests so they test all formats for mdrun trajectory writing
-#ifdef GMX_USE_TNG
+#if GMX_USE_TNG
//! Test fixture for mdrun trajectory writing
class TrajectoryWritingTest :