Gromacs
2019-beta2
|
#include "gmxpre.h"
#include "gpu_utils.h"
#include "config.h"
#include <cassert>
#include "gromacs/hardware/gpu_hw_info.h"
#include "gromacs/utility/smalloc.h"
Function definitions for non-GPU builds.
Functions | |
void | gpu_set_host_malloc_and_free (bool, gmx_host_alloc_t **nb_alloc, gmx_host_free_t **nb_free) |
Set allocation functions used by the GPU host. More... | |
int | gpu_info_get_stat (const gmx_gpu_info_t &, int) |
Get status of device with specified index. | |
void | free_gpu_info (const gmx_gpu_info_t *gpu_info) |
Frees the gpu_dev and dev_use array fields of gpu_info . More... | |
std::vector< int > | getCompatibleGpus (const gmx_gpu_info_t &gpu_info) |
Return a container of the detected GPUs that are compatible. More... | |
const char * | getGpuCompatibilityDescription (const gmx_gpu_info_t &gpu_info, int index) |
Return a string describing how compatible the GPU with given index is. More... | |
void free_gpu_info | ( | const gmx_gpu_info_t * | gpu_info | ) |
Frees the gpu_dev and dev_use array fields of gpu_info
.
[in] | gpu_info | pointer to structure holding GPU information |
std::vector<int> getCompatibleGpus | ( | const gmx_gpu_info_t & | gpu_info | ) |
Return a container of the detected GPUs that are compatible.
This function filters the result of the detection for compatible GPUs, based on the previously run compatibility tests.
[in] | gpu_info | Information detected about GPUs, including compatibility. |
const char* getGpuCompatibilityDescription | ( | const gmx_gpu_info_t & | gpu_info, |
int | index | ||
) |
Return a string describing how compatible the GPU with given index
is.
[in] | gpu_info | Information about detected GPUs |
[in] | index | index of GPU to ask about |
void gpu_set_host_malloc_and_free | ( | bool | , |
gmx_host_alloc_t ** | nb_alloc, | ||
gmx_host_free_t ** | nb_free | ||
) |
Set allocation functions used by the GPU host.
Set page-locked memory allocation functions used by the GPU host.
Since GPU support is not configured, there is no host memory to allocate.