1The cl_offline_compiler program used for offline compilation must 2implement the following interface. 3 4 usage: cl_offline_compiler --source FILE --output FILE 5 --cl-device-info FILE --mode MODE 6 -- [BUILD_OPTIONS [BUILD_OPTIONS ...]] 7 8 positional arguments: 9 BUILD_OPTIONS additional options to pass to the compiler 10 11 optional arguments: 12 --source FILE OpenCL C source file to compile 13 --output FILE SPIR-V or binary file to create 14 --cl-device-info FILE OpenCL device info file 15 --mode compilation mode (spir-v or binary) 16 17The --cl-device-info file is a list of KEY=VALUE pairs containing device 18information relevant to the mode of offline compilation in question. 19It is of the following form: 20 21 # OpenCL device info affecting <SPIR-V|binary> offline compilation: 22 CL_DEVICE_ADDRESS_BITS=<32|64> 23 CL_DEVICE_EXTENSIONS="<space separated list of CL extensions>" 24 CL_DEVICE_IL_VERSION="<space separated list of IL versions>" 25 CL_DEVICE_VERSION="OpenCL <version> <vendor info>" 26 CL_DEVICE_IMAGE_SUPPORT=<0|1> 27 CL_DEVICE_NAME="device name" 28