ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenCL/h_extract
Revision: 1.1
Committed: Sun Nov 20 01:09:48 2011 UTC (12 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-0_92, rel-0_91, rel-0_59
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/bin/sh
2    
3     # extracts various bits of data form OpenCL heder files, which are expected to
4     # be in CL/
5    
6     # constants
7     cat CL/cl.h CL/cl_ext.h |
8     perl -ne 'print "const_iv($1)\n" if /^#define CL_(\S+)/' >constiv.h
9    
10     # constants that look like enum values
11     <CL/cl.h perl -ne 'print "const_iv($1)\n" if /^#define CL_(\S+)\s+0x[0-9a-fA-F]{4}/' >enumstr.h
12    
13     # *glGet*Info
14     <CL/cl.hpp perl -ne 'print "$1\n" if /^\s*F\((.*)\)\s*\\?\s*$/' >getinfo.txt
15     # DEVICE_DOUBLE_FP_CONFIG
16     # DEVICE_HALF_FP_CONFIG
17     # PLATFORM_ICD_SUFFIX_KHR
18     # PLATFORM_NOT_FOUND_KHR
19     # DEVICE_COMPUTE_CAPABILITY_MAJOR_NV
20     # DEVICE_COMPUTE_CAPABILITY_MINOR_NV
21     # DEVICE_REGISTERS_PER_BLOCK_NV
22     # DEVICE_WARP_SIZE_NV
23     # DEVICE_GPU_OVERLAP_NV
24     # DEVICE_KERNEL_EXEC_TIMEOUT_NV
25     # DEVICE_INTEGRATED_MEMORY_NV
26     # DEVICE_PROFILING_TIMER_OFFSET_AMD
27