Gromacs  2026.0-dev-20250717-03cef5f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions
gputraits.h File Reference
#include "config.h"
+ Include dependency graph for gputraits.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares the GPU type traits for non-GPU builds.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Artem Zhmurov zhmur.nosp@m.ov@g.nosp@m.mail..nosp@m.com

Macros

#define GMX_HOST_ATTRIBUTE
 
#define GMX_DEVICE_ATTRIBUTE
 
#define GMX_ALWAYS_INLINE_ATTRIBUTE   __attribute__((always_inline))
 
#define GMX_FUNC_ATTRIBUTE   GMX_HOSTDEVICE_ATTRIBUTE GMX_ALWAYS_INLINE_ATTRIBUTE
 
#define GMX_DEVICE_FUNC_ATTRIBUTE   GMX_DEVICE_ATTRIBUTE GMX_ALWAYS_INLINE_ATTRIBUTE
 

Typedefs

using DeviceTexture = void *
 
using CommandEvent = void *
 Single GPU call timing event.
 

Functions

template<typename T >
static Float3gmx::asGenericFloat3Pointer (T *in)
 Reinterpret-cast any pointer in to Float3, checking the type compatibility.
 
template<typename T >
static const Float3gmx::asGenericFloat3Pointer (const T *in)
 Reinterpret-cast any const pointer in to Float3, checking the type compatibility.
 
template<typename C >
static Float3gmx::asGenericFloat3Pointer (C &in)
 Reinterpret-cast any container in to Float3, checking the type compatibility.
 
template<typename C >
static const Float3gmx::asGenericFloat3Pointer (const C &in)
 Reinterpret-cast any const container in to Float3, checking the type compatibility.