PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
prt_device.h File Reference

PRT device. More...

#include "prt.h"

Go to the source code of this file.

Data Structures

struct  prt_device_s
 VSA's accelerator device. Represents a hardware accelerator. Currently synonymous with an Nvidia GPU. More...
 

Typedefs

typedef struct prt_device_s prt_device_t
 VSA's accelerator device. Represents a hardware accelerator. Currently synonymous with an Nvidia GPU. More...
 

Functions

prt_device_tprt_device_new (int rank, int accelerator, int agent_rank)
 Creates a new device. More...
 
void prt_device_delete (prt_device_t *device)
 Destroys a device. More...
 
void prt_device_cycle (prt_device_t *device)
 Implements device processing cycle. More...
 

Detailed Description

PRT device.

Author
Jakub Kurzak

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

Definition in file prt_device.h.

Typedef Documentation

typedef struct prt_device_s prt_device_t

VSA's accelerator device. Represents a hardware accelerator. Currently synonymous with an Nvidia GPU.

"finished" is a one-directional synchronization variable. Therefore declered volatile, but no need for atomic access.

Function Documentation

void prt_device_cycle ( prt_device_t device)

Implements device processing cycle.

Parameters
device– The device to cycle.

Definition at line 67 of file prt_device.c.

void prt_device_delete ( prt_device_t device)

Destroys a device.

Parameters
device– The device to destroy.

Definition at line 49 of file prt_device.c.

prt_device_t* prt_device_new ( int  rank,
int  accelerator,
int  agent_rank 
)

Creates a new device.

Parameters
rank– The local rank of the device.
accelerator– The global rank of the device.
agent_rank– The rank of the communication agent.
Returns
A new device object.

Definition at line 23 of file prt_device.c.