* \returns device ID of the GPU in use at the time of the call
*/
CUDA_FUNC_QUALIFIER
-int get_current_cuda_gpu_device_id(void) CUDA_FUNC_TERM_WITH_RETURN(-1);
+int get_current_cuda_gpu_device_id() CUDA_FUNC_TERM_WITH_RETURN(-1);
/*! \brief Formats and returns a device information string for a given GPU.
*
* Note that this is implemented only for the CUDA API.
*/
CUDA_FUNC_QUALIFIER
-void startGpuProfiler(void) CUDA_FUNC_TERM;
+void startGpuProfiler() CUDA_FUNC_TERM;
/*! \brief Resets the GPU profiler if mdrun is being profiled.
* Note that this is implemented only for the CUDA API.
*/
CUDA_FUNC_QUALIFIER
-void resetGpuProfiler(void) CUDA_FUNC_TERM;
+void resetGpuProfiler() CUDA_FUNC_TERM;
/*! \brief Stops the CUDA profiler if mdrun is being profiled.
* Note that this is implemented only for the CUDA API.
*/
CUDA_FUNC_QUALIFIER
-void stopGpuProfiler(void) CUDA_FUNC_TERM;
+void stopGpuProfiler() CUDA_FUNC_TERM;
//! Tells whether the host buffer was pinned for non-blocking transfers. Only implemented for CUDA.
CUDA_FUNC_QUALIFIER
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2017,2018,2019, 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.
}
real *dummy = nullptr;
- pmalloc((void **)&dummy, 3 * sizeof(real));
+ pmalloc(reinterpret_cast<void **>(&dummy), 3 * sizeof(real));
EXPECT_TRUE(isHostMemoryPinned(dummy));
pfree(dummy);
}
} // namespace
-} // namespace
-} // namespace
+} // namespace test
+} // namespace gmx
*/
CUDA_FUNC_QUALIFIER
void nbnxnInsertNonlocalGpuDependency(const gmx_nbnxn_gpu_t gmx_unused *nb,
- const InteractionLocality gmx_unused interactionLocality) CUDA_FUNC_TERM;
+ InteractionLocality gmx_unused interactionLocality) CUDA_FUNC_TERM;
/*! \brief Set up internal flags that indicate what type of short-range work there is.
*
/*! \brief F buffer operations on GPU: adds nb format force to rvec format. */
CUDA_FUNC_QUALIFIER
-void nbnxn_gpu_add_nbat_f_to_f(const AtomLocality gmx_unused atomLocality,
+void nbnxn_gpu_add_nbat_f_to_f(AtomLocality gmx_unused atomLocality,
gmx_nbnxn_gpu_t gmx_unused *gpu_nbv,
void gmx_unused *fPmeDevicePtr,
GpuEventSynchronizer gmx_unused *pmeForcesReady,
/*! \brief Copy force buffer from CPU to GPU */
CUDA_FUNC_QUALIFIER
-void nbnxn_launch_copy_f_to_gpu(const AtomLocality gmx_unused atomLocality,
+void nbnxn_launch_copy_f_to_gpu(AtomLocality gmx_unused atomLocality,
const Nbnxm::GridSet gmx_unused &gridSet,
gmx_nbnxn_gpu_t gmx_unused *nb,
rvec gmx_unused *f) CUDA_FUNC_TERM;
/*! \brief Copy force buffer from GPU to CPU */
CUDA_FUNC_QUALIFIER
-void nbnxn_launch_copy_f_from_gpu(const AtomLocality gmx_unused atomLocality,
+void nbnxn_launch_copy_f_from_gpu(AtomLocality gmx_unused atomLocality,
const Nbnxm::GridSet gmx_unused &gridSet,
gmx_nbnxn_gpu_t gmx_unused *nb,
rvec gmx_unused *f) CUDA_FUNC_TERM;
/*! \brief Wait for GPU stream to complete */
CUDA_FUNC_QUALIFIER
-void nbnxn_wait_for_gpu_force_reduction(const AtomLocality gmx_unused atomLocality,
+void nbnxn_wait_for_gpu_force_reduction(AtomLocality gmx_unused atomLocality,
gmx_nbnxn_gpu_t gmx_unused *nb) CUDA_FUNC_TERM;