【问题标题】:What flags does the NVIDIA OpenCL compiler support beyond the OpenCL standard ones?除了 OpenCL 标准之外,NVIDIA OpenCL 编译器还支持哪些标志?
【发布时间】:2021-07-25 07:07:44
【问题描述】:

CUDA 3.0 工具包文档listed NVIDIA 的 OpenCL 编译器接受的几个标志,作为超出 OpenCL 标准要求的扩展:

Option Description
-cl-nv-maxrregcount <N> Max number of registers a kernel (or device function?) may use); passed on to ptxas as --maxrregcount
-cl-nv-opt-level <N> Code optimization level.
-cl-nv-verbose Enable verbose mode.

但我知道还有其他人。例如,clcc 项目中提到了cl-nv-archcl-nv-cstd(实际上是针对OpenCL C 版本)。我隐约记得有一个标志,它关闭了对超出 CUDA 原生支持的网格和块大小的网格/块大小的支持。在最近的 NVIDIA OpenCL 运行时版本中,如何确定这些额外的标志?

【问题讨论】:

    标签: compilation opencl nvidia compiler-options


    【解决方案1】:

    这是由于@Tim,this answer

    Option Description
    -nv-line-info Generates information about the locations in the source files corresponding to PTX instructions; more-or-less the same as the NVCC command-line option --generate-line-info.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-17
      • 1970-01-01
      • 2021-09-27
      • 1970-01-01
      相关资源
      最近更新 更多