Gromacs  2025.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
typecasts_runner_hip.cpp File Reference
#include "gmxpre.h"
#include "gromacs/gpu_utils/devicebuffer.h"
#include "gromacs/gpu_utils/hiputils.h"
#include "gromacs/gpu_utils/typecasts_cuda_hip.h"
#include "gromacs/utility/arrayref.h"
#include "typecasts_runner.h"
+ Include dependency graph for typecasts_runner_hip.cpp:

Description

Runners for tests of HIP types compatibility.

Author
Paul Bauer paul..nosp@m.baue.nosp@m.r.q@g.nosp@m.mail.nosp@m..com
Artem Zhmurov zhmur.nosp@m.ov@g.nosp@m.mail..nosp@m.com

Functions

void gmx::test::saveFloat3InRVecFormat (ArrayRef< gmx::RVec > rVecOutput, const float3 *float3Output, int numElements)
 
void gmx::test::convertRVecToFloat3OnHost (ArrayRef< gmx::RVec > rVecOutput, ArrayRef< const gmx::RVec > rVecInput)
 Tests the compatibility of RVec and float3 using the conversion on host. More...
 
static __global__ void gmx::test::convertRVecToFloat3OnDevice_kernel (DeviceBuffer< float3 > gm_float3Output, DeviceBuffer< RVec > gm_rVecInput, const int size)
 GPU kernel to perform type conversion on the device. More...
 
void gmx::test::convertRVecToFloat3OnDevice (ArrayRef< gmx::RVec > rVecOutput, ArrayRef< const gmx::RVec > rVecInput, const TestDevice *testDevice)
 Tests the compatibility of RVec and float3 using the conversion on device. More...
 

Variables

static constexpr int gmx::test::c_threadsPerBlock = 256
 Number of HIP threads in a block.