NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
dpa_ping_pong_common_defs.h File Reference
#include <stdint.h>
Include dependency graph for dpa_ping_pong_common_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dpa_ping_pong_tls
 DPA Thread local storage struct. More...
 
struct  dpa_thread_arg
 DPA thread device argument struct. More...
 

Macros

#define EXPECTED_NUM_RECEIVES   (100)
 Number of expected receive completions on each DPA Thread. More...
 

Functions

struct dpa_ping_pong_tls __attribute__ ((__packed__, aligned(8)))
 

Variables

uint64_t received_values_arr_ptr
 
uint32_t num_receives
 
uint32_t is_ping_thread
 
struct dpa_thread_arg __dpa_global__
 

Macro Definition Documentation

◆ EXPECTED_NUM_RECEIVES

#define EXPECTED_NUM_RECEIVES   (100)

Number of expected receive completions on each DPA Thread.

Definition at line 38 of file dpa_ping_pong_common_defs.h.

Function Documentation

◆ __attribute__()

struct dpa_ping_pong_tls __attribute__ ( (__packed__, aligned(8))  )

Variable Documentation

◆ __dpa_global__

struct dpa_thread_arg __dpa_global__

◆ is_ping_thread

uint32_t is_ping_thread

Set if it's ping thread, zero if it's pong thread

Definition at line 2 of file dpa_ping_pong_common_defs.h.

◆ num_receives

uint32_t num_receives

Number of receive completions

Definition at line 1 of file dpa_ping_pong_common_defs.h.

◆ received_values_arr_ptr

uint64_t received_values_arr_ptr

Device memory pointer for receive values array

Definition at line 0 of file dpa_ping_pong_common_defs.h.