Gromacs  2021-beta3-UNCHECKED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
devicetransfers.h File Reference
+ This graph shows which files directly or indirectly include this file:

Description

Declares helper functionality for device transfers for tests for GPU host allocator.

Undefined symbols in Google Test, GROMACS use of -Wundef, and the implementation of FindCUDA.cmake and/or nvcc mean that no compilation unit should include a gtest header while being compiled by nvcc. None of -isystem, -Wno-undef, nor the pragma GCC diagnostic work.

Thus, this header isolates CUDA-specific functionality to its own translation unit. The OpenCL and no-GPU implementations do not require this separation, but do so for consistency.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Classes

class  gmx::ArrayRef< typename >
 STL-like interface to a C array of T (or part of a std container of T). More...
 

Functions

void gmx::doDeviceTransfers (const DeviceInformation &deviceInfo, ArrayRef< const char > input, ArrayRef< char > output)
 Helper function for GPU test code to be platform agnostic. More...