PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
PRT API - accelerator interface

Functions

prt_packet_tprt_vdp_packet_new_host_to_device (prt_vdp_t *vdp, size_t size, void *data)
 Creates a new packet and queues a host-to-device transfer. The size cannot be larger than INT_MAX, because all data typea are packed inside messages of type MPI_BYTE. Expects a non-NULL pointer to the data in host memory. Right now, device memory is allocated immediately. Potentially, it could also be done in the VDP's stream. More...
 
void prt_vsa_device_warmup_func_set (prt_vsa_t *vsa, void(*func)())
 Sets a device warmup function. If set, the device warmup function is called by each device right after launching and before devices are barriered and the timer is started. Allows for excluding the time for initialization procedures of libraries, such as loading of dynamic libraries, internal memory allocations, possibly time consuming pinned memory allocations, etc. A NULL function pointer can be passed to remove the device warmup function. More...
 

Detailed Description

PULSAR Runtime http://icl.utk.edu/pulsar/ Copyright (C) 2012-2015 University of Tennessee.

Function Documentation

prt_packet_t* prt_vdp_packet_new_host_to_device ( prt_vdp_t vdp,
size_t  size,
void *  data 
)

Creates a new packet and queues a host-to-device transfer. The size cannot be larger than INT_MAX, because all data typea are packed inside messages of type MPI_BYTE. Expects a non-NULL pointer to the data in host memory. Right now, device memory is allocated immediately. Potentially, it could also be done in the VDP's stream.

Parameters
vdp– The VDP creating the packet.
size– Teh size of the packet in bytes.
data– The data payload of the packet.
Returns
A new packet.

Definition at line 297 of file prt_vdp.c.

void prt_vsa_device_warmup_func_set ( prt_vsa_t vsa,
void(*)()  func 
)

Sets a device warmup function. If set, the device warmup function is called by each device right after launching and before devices are barriered and the timer is started. Allows for excluding the time for initialization procedures of libraries, such as loading of dynamic libraries, internal memory allocations, possibly time consuming pinned memory allocations, etc. A NULL function pointer can be passed to remove the device warmup function.

Parameters
vsa– The VSA to set the function for.
func– The device (GPU) warmup function.

Definition at line 679 of file prt_vsa.c.