9.2
general documentation
cs_halo_hip.cpp File Reference
#include "base/cs_defs.h"
#include <assert.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_base.h"
#include "base/cs_base_accel.h"
#include "base/cs_base_hip.h"
#include "base/cs_halo.h"
#include "base/cs_halo_hip.h"
+ Include dependency graph for cs_halo_hip.cpp:

Functions

template<typename T >
static __global__ void _gather_block_hip (const cs_lnum_t send_blocks[], const cs_lnum_t ids[], const T src[], T dest[])
 
template<typename T >
static __global__ void _gather_block_strided_hip (const cs_lnum_t send_blocks[], cs_lnum_t stride, const cs_lnum_t ids[], const T src[], T dest[])
 
template<typename T >
static __global__ void _gather_full_hip (cs_lnum_t n, const cs_lnum_t ids[], const T src[], T dest[])
 
template<typename T >
static __global__ void _gather_full_strided_hip (cs_lnum_t n, cs_lnum_t stride, const cs_lnum_t ids[], const T src[], T dest[])
 
void cs_halo_hip_pack_send_buffer (const cs_halo_t *halo, hipStream_t stream, cs_halo_type_t sync_mode, cs_datatype_t data_type, cs_lnum_t stride, const void *val, void *send_buffer)
 Pack cs_real_t halo data to send into dense buffer, using HIP. More...
 

Function Documentation

◆ _gather_block_hip()

static __global__ void _gather_block_hip ( const cs_lnum_t  send_blocks[],
const cs_lnum_t  ids[],
const T  src[],
dest[] 
)
static

◆ _gather_block_strided_hip()

static __global__ void _gather_block_strided_hip ( const cs_lnum_t  send_blocks[],
cs_lnum_t  stride,
const cs_lnum_t  ids[],
const T  src[],
dest[] 
)
static

◆ _gather_full_hip()

static __global__ void _gather_full_hip ( cs_lnum_t  n,
const cs_lnum_t  ids[],
const T  src[],
dest[] 
)
static

◆ _gather_full_strided_hip()

static __global__ void _gather_full_strided_hip ( cs_lnum_t  n,
cs_lnum_t  stride,
const cs_lnum_t  ids[],
const T  src[],
dest[] 
)
static

◆ cs_halo_hip_pack_send_buffer()

void cs_halo_hip_pack_send_buffer ( const cs_halo_t halo,
hipStream_t  stream,
cs_halo_type_t  sync_mode,
cs_datatype_t  data_type,
cs_lnum_t  stride,
const void *  val,
void *  send_buffer 
)

Pack cs_real_t halo data to send into dense buffer, using HIP.

A local state and/or buffer may be provided, or the default (global) state and buffer will be used. If provided explicitely, the buffer must be of sufficient size.

Parameters
[in]halopointer to halo structure
[in]streamassociated HIP stream
[in]sync_modesynchronization mode (standard or extended)
[in]data_typedata type
[in]stridenumber of (interlaced) values by entity
[in]varpointer to value array (device)
[out]send_bufferpointer to send buffer, NULL for global buffer