美文网首页
2018-07-27

2018-07-27

作者: hustliaohh | 来源:发表于2018-07-27 16:21 被阅读0次

    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).

    相关文章

      网友评论

          本文标题:2018-07-27

          本文链接:https://www.haomeiwen.com/subject/vijgmftx.html