#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... | |
|
static |
|
static |
|
static |
|
static |
| 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.
| [in] | halo | pointer to halo structure |
| [in] | stream | associated HIP stream |
| [in] | sync_mode | synchronization mode (standard or extended) |
| [in] | data_type | data type |
| [in] | stride | number of (interlaced) values by entity |
| [in] | var | pointer to value array (device) |
| [out] | send_buffer | pointer to send buffer, NULL for global buffer |