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
17void FLASH_Queue_init_gpu( void );
18void FLASH_Queue_finalize_gpu( void );
19
23
24
25// --- helper functions -------------------------------------------------------
26
29
31FLA_Error FLASH_Queue_alloc_gpu( dim_t size, FLA_Datatype datatype, void** buffer_gpu );
32FLA_Error FLASH_Queue_free_gpu( void* buffer_gpu );
33FLA_Error FLASH_Queue_write_gpu( FLA_Obj obj, void* buffer_gpu );
34FLA_Error FLASH_Queue_read_gpu( FLA_Obj obj, void* buffer_gpu );
35
36void 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
FLA_Error FLASH_Queue_bind_gpu(int thread)
Definition FLASH_Queue_gpu.c:133
FLA_Bool FLASH_Queue_get_enabled_gpu(void)
Definition FLASH_Queue_gpu.c:91
FLA_Error FLASH_Queue_free_gpu(void *buffer_gpu)
Definition FLASH_Queue_gpu.c:171
dim_t FLASH_Queue_get_gpu_num_blocks(void)
Definition FLASH_Queue_gpu.c:119
FLA_Error FLASH_Queue_alloc_gpu(dim_t size, FLA_Datatype datatype, void **buffer_gpu)
Definition FLASH_Queue_gpu.c:147
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_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
void FLASH_Queue_finalize_gpu(void)
Definition FLASH_Queue_gpu.c:36
FLA_Error FLASH_Queue_enable_gpu(void)
Definition FLASH_Queue_gpu.c:49
void FLASH_Queue_set_gpu_num_blocks(dim_t n_blocks)
Definition FLASH_Queue_gpu.c:106
FLA_Error FLASH_Queue_read_gpu(FLA_Obj obj, void *buffer_gpu)
Definition FLASH_Queue_gpu.c:205
void FLASH_Queue_init_gpu(void)
Definition FLASH_Queue_gpu.c:23
int FLA_Error
Definition FLA_type_defs.h:47
int FLA_Datatype
Definition FLA_type_defs.h:49
unsigned long dim_t
Definition FLA_type_defs.h:71
int FLA_Bool
Definition FLA_type_defs.h:46
Definition FLA_type_defs.h:184
Definition FLA_type_defs.h:159