GPUart  1.01
Prototype of GPUart, an application-based limited preemptive GPU scheduler for embedded real-time systems
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
GPUart_Impl_Abstr_IF.h File Reference
#include "../GPUart_Common/GPUart_Common.h"
#include "../GPUart_Config/GPUart_Config.h"
Include dependency graph for GPUart_Impl_Abstr_IF.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GPUart_Retval gpuI_memcpyHost2Device (void *variable_p, device_global_memory_id_e id_p)
 Copy data from host memory to device memory. More...
 
GPUart_Retval gpuI_memcpyDevice2Host (void *variable_p, device_global_memory_id_e id_p)
 Copy data from device memory to host memory. More...
 
GPUart_Retval gpuI_memcpyConstantMemory (void *variable_p, device_constant_memory_id_e id_p)
 Copy data from host memory to constant device memory. More...
 

Function Documentation

GPUart_Retval gpuI_memcpyConstantMemory ( void *  variable_p,
device_constant_memory_id_e  id_p 
)

Copy data from host memory to constant device memory.

The copy is only possible if persistent GPUart kernel GPUart_Persistent_Kernel is not running, since a constant memory data is immutable during kernel execution and its value is inherited from parent to child kernel.

Parameters
[in]void* variable_p -> The host variable to be copied
[in]device_constant_memory_id_eid_p -> The ID of the constant memory buffer
Returns
GPUART_SUCCESS if memory copy operation has been successfully.
GPUART_ERROR_INVALID_ARGUMENT if id_p is an invalid ID.
GPUart_Retval gpuI_memcpyDevice2Host ( void *  variable_p,
device_global_memory_id_e  id_p 
)

Copy data from device memory to host memory.

Device memory may be shared physical memory or discrete device memory. The device driver API call may depend on the type of device memory (global or texture memory).

Parameters
[out]void* variable_p -> The host variable to be written
[in]device_global_memory_id_eid_p -> The ID of the global memory variable
Returns
GPUART_SUCCESS if memory copy operation has been successfully.
GPUART_ERROR_INVALID_ARGUMENT if id_p is an invalid ID.

Here is the caller graph for this function:

GPUart_Retval gpuI_memcpyHost2Device ( void *  variable_p,
device_global_memory_id_e  id_p 
)

Copy data from host memory to device memory.

Device memory may be shared physical memory or discrete device memory. The device driver API call may depend on the type of device memory (global or texture memory).

Parameters
[in]void* variable_p -> The host variable to be copied
[in]device_global_memory_id_eid_p -> The ID of the global memory variable
Returns
GPUART_SUCCESS if memory copy operation has been successfully.
GPUART_ERROR_INVALID_ARGUMENT if id_p is an invalid ID.

Here is the caller graph for this function: