NewMadeleine

Documentation

« back to PM2 home.
nm_gpu.h File Reference

Functions dedicated to interactions with GPU. More...

#include "nm_private_config.h"
Include dependency graph for nm_gpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int nm_data_is_gpu (const struct nm_data_properties_s *p_props)
 
void nm_data_memcpy (void *p_ptr_dest, const void *p_ptr_from, const nm_len_t len)
 memcpy without knowing whether memory is on GPU or not; assume unified addressing
 
static void nm_pw_gpu_fill (struct nm_pkt_wrap_s *p_pw, const struct nm_data_properties_s *p_props)
 fill the GPU flags of a pw.
 

Detailed Description

Functions dedicated to interactions with GPU.

Definition in file nm_gpu.h.

Function Documentation

◆ nm_data_is_gpu()

static int nm_data_is_gpu ( const struct nm_data_properties_s p_props)
inlinestatic

Definition at line 40 of file nm_gpu.h.

◆ nm_data_memcpy()

void nm_data_memcpy ( void *  p_ptr_dest,
const void *  p_ptr_from,
const nm_len_t  len 
)

memcpy without knowing whether memory is on GPU or not; assume unified addressing

◆ nm_pw_gpu_fill()

static void nm_pw_gpu_fill ( struct nm_pkt_wrap_s p_pw,
const struct nm_data_properties_s p_props 
)
inlinestatic

fill the GPU flags of a pw.

Definition at line 59 of file nm_gpu.h.

References nm_pkt_wrap_s::flags, NM_PW_DATA_IS_CUDA, and NM_PW_DATA_IS_HIP.