OpenCL™规范 5.8.6.5. 控制OpenCL C版本的选项

5.8.6.5. Options Controlling the OpenCL C Version
5.8.6.5. 控制OpenCL C版本的选项

The following option controls the version of OpenCL C that the compiler accepts. These options are ignored for programs created with IL.

以下选项控制编译器接受的OpenCL C版本。对于使用IL创建的程序,这些选项将被忽略。

-cl-std=

Determine the OpenCL C language version to use. A value for this option must be provided. Valid values are:

确定要使用的OpenCL C语言版本。必须提供此选项的值。有效值为:

  • CL1.1: Support OpenCL C 1.1 language features defined in section 6 of the OpenCL 1.1 specification or in the unified OpenCL C specification.

  • CL1.1:支持OpenCL 1.1规范第6节或统一OpenCL C规范中定义的OpenCL C 1.1语言特性。

  • CL1.2: Support OpenCL C 1.2 language features defined in section 6 of the OpenCL 1.2 specification or in the unified OpenCL C specification.

  • CL1.2:支持OpenCL 1.2规范第6节或统一OpenCL C规范中定义的OpenCL C 1.2语言特性。

  • CL2.0: Support OpenCL C 2.0 language features defined in the OpenCL C 2.0 specification or in the unified OpenCL C specification.

  • CL2.0:支持OpenCL C 2.0规范或统一OpenCL C规范中定义的OpenCL C 2.0语言特性。

  • CL3.0: Support OpenCL C 3.0 language features defined in the unified OpenCL C specification.

  • CL3.0:支持统一OpenCL C规范中定义的OpenCL C 3.0语言特性。

Calls to clBuildProgram or clCompileProgram with the -cl-std=CL1.1 option will fail to compile the program for any devices with CL_DEVICE_OPENCL_C_VERSION equal to OpenCL C 1.0 and when CL_DEVICE_OPENCL_C_ALL_VERSIONS does not include OpenCL C 1.1.

​使用-cl std=CL1.1选项调用clBuildProgram或clCompileProgram将无法为CLD_OPENCL_C_VERSION等于OPENCL C 1.0的任何设备编译程序,并且当CLD_OPENCLE_C_ALL_VERSION不包括OPENCL C 1.1时。

Calls to clBuildProgram or clCompileProgram with the -cl-std=CL1.2 option will fail to compile the program for any devices with CL_DEVICE_OPENCL_C_VERSION equal to OpenCL C 1.1 or earlier and when CL_DEVICE_OPENCL_C_ALL_VERSIONS does not include OpenCL C 1.2.

​使用-cl std=CL1.2选项调用clBuildProgram或clCompileProgram将无法为CLD_OPENCL_C_VERSION等于OPENCL C 1.1或更低版本的任何设备编译程序,并且CLD_OPENCL_CALL_VERSION不包括OPENCL C 1.2。

Calls to clBuildProgram or clCompileProgram with the -cl-std=CL2.0 option will fail to compile the program for any devices with CL_DEVICE_OPENCL_C_VERSION equal to OpenCL C 1.2 or earlier and when CL_DEVICE_OPENCL_C_ALL_VERSIONS does not include OpenCL C 2.0.

​使用-cl std=CL2.0选项调用clBuildProgram或clCompileProgram将无法为CLD_OPENCL_C_VERSION等于OPENCL C 1.2或更低版本的任何设备编译程序,并且CLD_OPENCL_CALL_VERSION不包括OPENCL C 2.0。

Calls to clBuildProgram or clCompileProgram with the -cl-std=CL3.0 option will fail to compile the program for any devices with CL_DEVICE_OPENCL_C_VERSION equal to OpenCL C 2.0 or earlier and when CL_DEVICE_OPENCL_C_ALL_VERSIONS does not include OpenCL C 3.0.

​使用-cl std=CL3.0选项调用clBuildProgram或clCompileProgram将无法为CLD_OPENCL_C_VERSION等于OPENCL C 2.0或更低版本的任何设备编译程序,并且CLD_OPENCL_CALL_VERSION不包括OPENCL C 3.0。

If the -cl-std build option is not specified, the highest OpenCL C 1.x language version supported by each device is used when compiling the program for each device. Applications are required to specify the -cl-std=CL2.0 build option to compile or build programs with OpenCL C 2.0 and the -cl-std=CL3.0 build option to compile or build programs with OpenCL C 3.0.

如果未指定-cl-std build选项,则在为每个设备编译程序时,将使用每个设备支持的最高OpenCL C 1.x语言版本。应用程序需要指定-cl-std=CL2.0构建选项以使用OpenCL C 2.0编译或构建程序,并指定-cl-std=CL3.0构建选项以用OpenCL C 3.0编译或生成程序。

内容概要:本文《2025年全球AI Coding市场洞察研究报告》由亿欧智库发布,深入分析了AI编程工具的市场现状和发展趋势。报告指出,AI编程工具在2024年进入爆发式增长阶段,成为软件开发领域的重要趋势。AI编程工具不仅简化了代码生成、调试到项目构建等环节,还推动编程方式从人工编码向“人机协同”模式转变。报告详细评估了主流AI编程工具的表现,探讨了其商业模式、市场潜力及未来发展方向。特别提到AI Agent技术的发展,使得AI编程工具从辅助型向自主型跃迁,提升了任务执行的智能化和全面性。报告还分析了AI编程工具在不同行业和用户群体中的应用,强调了其在提高开发效率、减少重复工作和错误修复方面的显著效果。最后,报告预测2025年AI编程工具将在精准化和垂直化上进一步深化,推动软件开发行业进入“人机共融”的新阶段。 适合人群:具备一定编程基础,尤其是对AI编程工具有兴趣的研发人员、企业开发团队及非技术人员。 使用场景及目标:①了解AI编程工具的市场现状和发展趋势;②评估主流AI编程工具的性能和应用场景;③探索AI编程工具在不同行业中的具体应用,如互联网、金融、游戏等;④掌握AI编程工具的商业模式和盈利空间,为企业决策提供参考。 其他说明:报告基于亿欧智库的专业研究和市场调研,提供了详尽的数据支持和前瞻性洞察。报告不仅适用于技术从业者,也适合企业管理者和政策制定者,帮助他们在技术和商业决策中更好地理解AI编程工具的价值和潜力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值