File: clIcdGetPlatformIDsKHR.c

package info (click to toggle)
pocl 7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 29,768 kB
  • sloc: lisp: 151,669; ansic: 135,425; cpp: 65,801; python: 1,846; sh: 1,084; ruby: 255; pascal: 231; tcl: 180; makefile: 174; asm: 81; java: 72; xml: 49
file content (20 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <assert.h>
#include <string.h>
#include "pocl_cl.h"

/*
 * GetPlatformIDs that support ICD.
 * This function is required by the ICD specification.
 */ 

#ifdef BUILD_ICD
POCL_EXPORT CL_API_ENTRY cl_int CL_API_CALL
POname(clIcdGetPlatformIDsKHR)(cl_uint           num_entries,
                       cl_platform_id *  platforms,
                       cl_uint *         num_platforms) CL_API_SUFFIX__VERSION_1_0
{	
  return POname(clGetPlatformIDs)( num_entries, platforms, num_platforms );
}
POsymICD(clIcdGetPlatformIDsKHR)
#endif