2018-07-27

Which PTX and binary code gets embedded in a CUDA C application is controlled by the -arch and -code compiler options or the -gencode compiler option as detailed in the nvcc user manual. For example,


nvcc x.cu

        -gencode arch=compute_35,code=sm_35

        -gencode arch=compute_50,code=sm_50

        -gencode arch=compute_60,code=\'compute_60,sm_60\'


embeds binary code compatible with compute capability 3.5 and 5.0 (first and second -gencode options) and PTX and binary code compatible with compute capability 6.0 (third -gencode option).

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一男生在地摊上买了本《孙子兵法》,翻开一看,扉页上赫然写着: 首先,你需要一个爷爷。
    有涵养的段子手阅读 290评论 0 0
  • 提高自己将来工作的稳定度,让公司相信能留住你。 内部面试:不用包装、不要说自己后台不好,要说对前台感兴趣 外部面试...
    蛋炒饭_By阅读 310评论 0 1
  • 概述: View Animation 可以使视图执行补间动画。即给定两个关键帧,然后中间部分按照一定的算法自动计算...
    一字节溢出阅读 497评论 0 0