*
* Does not throw. */
GPU_FUNC_QUALIFIER
-bool isGpuDetectionFunctional(std::string *GPU_FUNC_ARGUMENT(errorMessage)) GPU_FUNC_TERM_WITH_RETURN(false);
+bool isGpuDetectionFunctional(std::string* GPU_FUNC_ARGUMENT(errorMessage))
+ GPU_FUNC_TERM_WITH_RETURN(false);
/*! \brief Find all GPUs in the system.
*
* the call to canDetectGpus() should always prevent this occuring)
*/
GPU_FUNC_QUALIFIER
-void findGpus(gmx_gpu_info_t *GPU_FUNC_ARGUMENT(gpu_info)) GPU_FUNC_TERM;
+void findGpus(gmx_gpu_info_t* GPU_FUNC_ARGUMENT(gpu_info)) GPU_FUNC_TERM;
/*! \brief Return a container of the detected GPUs that are compatible.
*
*
* \param[in] gpu_info Information detected about GPUs, including compatibility.
* \return vector of IDs of GPUs already recorded as compatible */
-std::vector<int> getCompatibleGpus(const gmx_gpu_info_t &gpu_info);
+std::vector<int> getCompatibleGpus(const gmx_gpu_info_t& gpu_info);
/*! \brief Return a string describing how compatible the GPU with given \c index is.
*
* \param[in] index index of GPU to ask about
* \returns A null-terminated C string describing the compatibility status, useful for error messages.
*/
-const char *getGpuCompatibilityDescription(const gmx_gpu_info_t &gpu_info,
- int index);
+const char* getGpuCompatibilityDescription(const gmx_gpu_info_t& gpu_info, int index);
/*! \brief Frees the gpu_dev and dev_use array fields of \p gpu_info.
*
* \param[in] gpu_info pointer to structure holding GPU information
*/
-void free_gpu_info(const gmx_gpu_info_t *gpu_info);
+void free_gpu_info(const gmx_gpu_info_t* gpu_info);
/*! \brief Initializes the GPU described by \c deviceInfo.
*
* initialization.
*/
GPU_FUNC_QUALIFIER
-void init_gpu(const gmx_device_info_t *GPU_FUNC_ARGUMENT(deviceInfo)) GPU_FUNC_TERM;
+void init_gpu(const gmx_device_info_t* GPU_FUNC_ARGUMENT(deviceInfo)) GPU_FUNC_TERM;
/*! \brief Frees up the CUDA GPU used by the active context at the time of calling.
*
* \returns true if no error occurs during the freeing.
*/
CUDA_FUNC_QUALIFIER
-void free_gpu(const gmx_device_info_t *CUDA_FUNC_ARGUMENT(deviceInfo)) CUDA_FUNC_TERM;
+void free_gpu(const gmx_device_info_t* CUDA_FUNC_ARGUMENT(deviceInfo)) CUDA_FUNC_TERM;
/*! \brief Return a pointer to the device info for \c deviceId
*
* \returns Pointer to the device info for \c deviceId.
*/
GPU_FUNC_QUALIFIER
-gmx_device_info_t *getDeviceInfo(const gmx_gpu_info_t &GPU_FUNC_ARGUMENT(gpu_info),
+gmx_device_info_t* getDeviceInfo(const gmx_gpu_info_t& GPU_FUNC_ARGUMENT(gpu_info),
int GPU_FUNC_ARGUMENT(deviceId)) GPU_FUNC_TERM_WITH_RETURN(nullptr);
/*! \brief Returns the device ID of the CUDA GPU currently in use.
* \param[in] index an index *directly* into the array of available GPUs
*/
GPU_FUNC_QUALIFIER
-void get_gpu_device_info_string(char *GPU_FUNC_ARGUMENT(s),
- const gmx_gpu_info_t &GPU_FUNC_ARGUMENT(gpu_info),
- int GPU_FUNC_ARGUMENT(index)) GPU_FUNC_TERM;
+void get_gpu_device_info_string(char* GPU_FUNC_ARGUMENT(s),
+ const gmx_gpu_info_t& GPU_FUNC_ARGUMENT(gpu_info),
+ int GPU_FUNC_ARGUMENT(index)) GPU_FUNC_TERM;
/*! \brief Returns the size of the gpu_dev_info struct.
size_t sizeof_gpu_dev_info() GPU_FUNC_TERM_WITH_RETURN(0);
//! Get status of device with specified index
-int gpu_info_get_stat(const gmx_gpu_info_t &info, int index);
+int gpu_info_get_stat(const gmx_gpu_info_t& info, int index);
/*! \brief Check if GROMACS has been built with GPU support.
*
* \param[in] error Pointer to error string or nullptr.
* \todo Move this to NB module once it exists.
*/
-bool buildSupportsNonbondedOnGpu(std::string *error);
+bool buildSupportsNonbondedOnGpu(std::string* error);
/*! \brief Starts the GPU profiler if mdrun is being profiled.
*
//! Tells whether the host buffer was pinned for non-blocking transfers. Only implemented for CUDA.
CUDA_FUNC_QUALIFIER
-bool isHostMemoryPinned(const void *CUDA_FUNC_ARGUMENT(h_ptr)) CUDA_FUNC_TERM_WITH_RETURN(false);
+bool isHostMemoryPinned(const void* CUDA_FUNC_ARGUMENT(h_ptr)) CUDA_FUNC_TERM_WITH_RETURN(false);
/*! \brief Enable peer access between GPUs where supported
* \param[in] gpuIdsToUse List of GPU IDs in use
* \param[in] mdlog Logger object
*/
CUDA_FUNC_QUALIFIER
-void setupGpuDevicePeerAccess(const std::vector<int> &CUDA_FUNC_ARGUMENT(gpuIdsToUse),
- const gmx::MDLogger &CUDA_FUNC_ARGUMENT(mdlog)) CUDA_FUNC_TERM;
+void setupGpuDevicePeerAccess(const std::vector<int>& CUDA_FUNC_ARGUMENT(gpuIdsToUse),
+ const gmx::MDLogger& CUDA_FUNC_ARGUMENT(mdlog)) CUDA_FUNC_TERM;
#endif