Separate out device information functions

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
Stuart Brady
2019-08-08 15:22:57 +01:00
committed by Kévin Petit
parent f15178ca91
commit 4d891b67bd
5 changed files with 120 additions and 63 deletions

View File

@@ -37,6 +37,8 @@
#include <CL/opencl.h>
#endif
#include "deviceInfo.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@@ -131,9 +133,6 @@ extern int get_max_allowed_work_group_size( cl_context context, cl_kernel kernel
/* Helper to obtain the biggest allowed 1D work group size on a given device */
extern int get_max_allowed_1d_work_group_size_on_device( cl_device_id device, cl_kernel kernel, size_t *outSize );
/* Helper to determine if an extension is supported by a device */
extern int is_extension_available( cl_device_id device, const char *extensionName );
/* Helper to determine if a device supports an image format */
extern int is_image_format_supported( cl_context context, cl_mem_flags flags, cl_mem_object_type image_type, const cl_image_format *fmt );