Alternative VE Offloading  2.7.6
VEO HMEM API

VE heterogeneous memory API functions. More...

Functions

int veo_is_ve_addr (const void *addr)
 check the address More...
 
void * veo_get_hmem_addr (void *addr)
 get a virtual address of VE or VH memory without identifier allocated by veo_alloc_hmem(). More...
 

Detailed Description

VE heterogeneous memory API functions.

Include "ve_offload.h" header from VH program. Specify -lveo when you link VH program. Include "veo_hmem.h" header from VH program. Specify -lveohmem when you link VE program.

Function Documentation

int veo_is_ve_addr ( const void *  addr)

check the address

This function determines if the address is allocated by veo_alloc_hmem().

Parameters
addra pointer to virtual address
Returns
one when addr was allocated by veo_alloc_hmem(); zero when addr was not allocated by veo_alloc_hmem().
void* veo_get_hmem_addr ( void *  addr)

get a virtual address of VE or VH memory without identifier allocated by veo_alloc_hmem().

Parameters
addra pointer to virtual address of VE or VH memory
Returns
a virtual address without identifier
Examples:
examples/VE/libmpive.c.