31 #include "../common/dpa_nvqual_common_defs.h"
60 uint64_t start_cycles, end_cycles;
63 for (uint64_t op_idx = 0; op_idx <
num_ops; op_idx++) {
64 for (
size_t i = 0; i < size; i++) {
65 ((uint8_t *)dst)[i] = ((uint8_t *)
src)[i];
71 uint64_t ret_val = end_cycles - start_cycles;
94 for (uint64_t i = 0; i < num_threads; i++) {
__dpa_global__ void dpa_nvqual_kernel(void)
Kernel function of DPA nvqual thread.
__dpa_rpc__ uint64_t dpa_nvqual_entry_point(doca_dpa_dev_uintptr_t dev_notification_completions, uint64_t num_threads)
DPA nvqual entry point RPC function.
struct dpa_thread_arg __dpa_global__
static uint64_t *restrict src
#define __dpa_thread_cycles()
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_update_add(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value)
Atomically increase the counter of a DOCA Sync Event by a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_thread_reschedule(void)
Reschedule a DPA thread.
#define DOCA_DPA_DEV_LOG_DBG(...)
Generate a DOCA DPA device DEBUG log message.
DOCA_EXPERIMENTAL void doca_dpa_dev_thread_notify(doca_dpa_dev_notification_completion_t comp_handle)
Notify the completion handle and trigger the attached thread.
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_thread_get_local_storage(void)
Get DPA thread local storage.
uint64_t doca_dpa_dev_uintptr_t
DPA pointer type definition.
uint64_t doca_dpa_dev_notification_completion_t
DPA notification completion handle type definition.
doca_dpa_dev_uintptr_t dst_buf
doca_dpa_dev_uintptr_t src_buf
doca_dpa_dev_sync_event_t dev_se
doca_dpa_dev_uintptr_t thread_ret