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

Description

Packed (Fast) float3 implementation for AMD targets.

Author
Andrey Alekseenko al42a.nosp@m.nd@g.nosp@m.mail..nosp@m.com
Paul Bauer paul..nosp@m.baue.nosp@m.r.q@g.nosp@m.mail.nosp@m..com

Classes

struct  AmdPackedFloat3
 Special packed Float3 flavor to help compiler optimizations on AMD CDNA2 devices. More...
 

Macros

#define GMX_FUNC_ATTRIBUTE   GMX_HOSTDEVICE_ATTRIBUTE __attribute__((always_inline))
 

Functions

GMX_HOSTDEVICE_ATTRIBUTE __attribute__ ((always_inline)) static AmdPackedFloat3 operator*(const AmdPackedFloat3 &v
 

Variables

GMX_HOSTDEVICE_ATTRIBUTE const
float & 
s
 
GMX_HOSTDEVICE_ATTRIBUTE const
AmdPackedFloat3
v
 

Variable Documentation

GMX_HOSTDEVICE_ATTRIBUTE const float& s
Initial value:
{
return { v.xy() * s, v.z() * s }
GMX_HOSTDEVICE_ATTRIBUTE const AmdPackedFloat3& v
Initial value:
{
return { v.xy() * s, v.z() * s }