libflame  revision_anchor
FLASH_Queue_gpu.h
Go to the documentation of this file.
1 /*
2 
3  Copyright (C) 2014, The University of Texas at Austin
4 
5  This file is part of libflame and is available under the 3-Clause
6  BSD license, which can be found in the LICENSE file at the top-level
7  directory, or at http://opensource.org/licenses/BSD-3-Clause
8 
9 */
10 
11 #ifndef FLASH_QUEUE_GPU_H
12 #define FLASH_QUEUE_GPU_H
13 
14 #ifdef FLA_ENABLE_GPU
15 
16 
17 void FLASH_Queue_init_gpu( void );
18 void FLASH_Queue_finalize_gpu( void );
19 
23 
24 
25 // --- helper functions -------------------------------------------------------
26 
27 void FLASH_Queue_set_gpu_num_blocks( dim_t n_blocks );
29 
30 FLA_Error FLASH_Queue_bind_gpu( int thread );
31 FLA_Error FLASH_Queue_alloc_gpu( dim_t size, FLA_Datatype datatype, void** buffer_gpu );
32 FLA_Error FLASH_Queue_free_gpu( void* buffer_gpu );
33 FLA_Error FLASH_Queue_write_gpu( FLA_Obj obj, void* buffer_gpu );
34 FLA_Error FLASH_Queue_read_gpu( FLA_Obj obj, void* buffer_gpu );
35 
36 void FLASH_Queue_exec_task_gpu( FLASH_Task* t, void** input_arg, void** output_arg );
37 
38 
39 #endif
40 
41 #endif // FLASH_QUEUE_GPU_H
void FLASH_Queue_set_gpu_num_blocks(dim_t n_blocks)
Definition: FLASH_Queue_gpu.c:106
unsigned long dim_t
Definition: FLA_type_defs.h:71
FLA_Error FLASH_Queue_enable_gpu(void)
Definition: FLASH_Queue_gpu.c:49
FLA_Error FLASH_Queue_write_gpu(FLA_Obj obj, void *buffer_gpu)
Definition: FLASH_Queue_gpu.c:185
FLA_Error FLASH_Queue_disable_gpu(void)
Definition: FLASH_Queue_gpu.c:70
FLA_Bool FLASH_Queue_get_enabled_gpu(void)
Definition: FLASH_Queue_gpu.c:91
int FLA_Error
Definition: FLA_type_defs.h:47
Definition: FLA_type_defs.h:183
FLA_Error FLASH_Queue_free_gpu(void *buffer_gpu)
Definition: FLASH_Queue_gpu.c:171
FLA_Error FLASH_Queue_read_gpu(FLA_Obj obj, void *buffer_gpu)
Definition: FLASH_Queue_gpu.c:205
Definition: FLA_type_defs.h:158
void FLASH_Queue_finalize_gpu(void)
Definition: FLASH_Queue_gpu.c:36
dim_t FLASH_Queue_get_gpu_num_blocks(void)
Definition: FLASH_Queue_gpu.c:119
FLA_Error FLASH_Queue_bind_gpu(int thread)
Definition: FLASH_Queue_gpu.c:133
int FLA_Datatype
Definition: FLA_type_defs.h:49
int FLA_Bool
Definition: FLA_type_defs.h:46
void FLASH_Queue_exec_task_gpu(FLASH_Task *t, void **input_arg, void **output_arg)
Definition: FLASH_Queue_gpu.c:225
FLA_Error FLASH_Queue_alloc_gpu(dim_t size, FLA_Datatype datatype, void **buffer_gpu)
Definition: FLASH_Queue_gpu.c:147
void FLASH_Queue_init_gpu(void)
Definition: FLASH_Queue_gpu.c:23