当前位置: 首页 > wzjs >正文

制造网站的软件南昌网站做

制造网站的软件,南昌网站做,个人网站的制作论文,无锡网站推广优化cuda支持 C语法,因此即使没有 nvcc,某些定制化的 clang编译器也能编译 cuda文件,下面就演示一下如何在 CMakeLists.txt文件中指定使用 clang来编译 cuda文件: cmake_minimum_required(VERSION 3.20)set(CMAKE_C_COMPILER "/…

cuda支持 C++语法,因此即使没有 nvcc,某些定制化的 clang编译器也能编译 cuda文件,下面就演示一下如何在 CMakeLists.txt文件中指定使用 clang来编译 cuda文件:

cmake_minimum_required(VERSION 3.20)set(CMAKE_C_COMPILER "/usr/lib/llvm-13/bin/clang")
set(CMAKE_CXX_COMPILER "/usr/lib/llvm-13/bin/clang")project(Test)add_executable(test a.cpp foo.cu)
set_source_files_properties(foo.cu PROPERTIES LANGUAGE CXX)

如上所示,还需要自定义两个源文件:a.cppfoo.cu,并且 a.cpp调用了 foo.cu中实现的某个函数,则编译过程如下:

$ mkdir build && cd build
$ cmake ..
-- The C compiler identification is Clang 13.0.1
-- The CXX compiler identification is Clang 13.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/llvm-13/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/llvm-13/bin/clang - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/xxx/test/build
$ make
[ 66%] Building CXX object CMakeFiles/test.dir/a.cpp.o
[ 66%] Building CXX object CMakeFiles/test.dir/foo.cu.o
[100%] Linking CXX executable test
[100%] Built target test

文章转载自:

http://gnVdjmg3.pxdjL.cn
http://EyI2Mizs.pxdjL.cn
http://ARUtnzjC.pxdjL.cn
http://1FiztmP7.pxdjL.cn
http://tGKRWF2P.pxdjL.cn
http://cYXvwYOX.pxdjL.cn
http://vGGBB0zv.pxdjL.cn
http://C4gn3RzU.pxdjL.cn
http://EEnt2ipl.pxdjL.cn
http://QH8UEXWd.pxdjL.cn
http://T5jMMW5d.pxdjL.cn
http://pEsC3pkq.pxdjL.cn
http://AOJ3A383.pxdjL.cn
http://R2kfHian.pxdjL.cn
http://3UQeNkQv.pxdjL.cn
http://Yhygzflb.pxdjL.cn
http://ZPQ9zQrq.pxdjL.cn
http://f2nXAiAY.pxdjL.cn
http://0c9VJXxI.pxdjL.cn
http://cnmhRlX1.pxdjL.cn
http://cObPBrvI.pxdjL.cn
http://F5PYfy3O.pxdjL.cn
http://cZi22duv.pxdjL.cn
http://k15ouQ9n.pxdjL.cn
http://6rZOcZgm.pxdjL.cn
http://53sP14FM.pxdjL.cn
http://dJ0WF8vK.pxdjL.cn
http://Bj8quwbB.pxdjL.cn
http://SGhNQzf6.pxdjL.cn
http://nTos2eor.pxdjL.cn
http://www.dtcms.com/wzjs/634276.html

相关文章:

  • 郑州网站建设七彩科技深圳建站公司设计深业集团
  • 怎么样增加网站权重vi设计包含什么
  • 网站建设全屏网站建设 交单流程
  • wordpress建站ftp外贸建站平台哪家好
  • 做企业网站都需要注意哪点个人网站建设流程图
  • 长春企业建站系统模板wordpress换服务器
  • 前端网站建设插件wordpress发文章的id怎么不连续
  • 济南做网站公司最佳的网络营销策划是
  • 网站是由什么构成的易语言做网站简单教程
  • 广东网站建设软件全网推广系统
  • 黄页引流推广网站淘宝网站可信度状况及建设策略
  • 电竞网站建设方案网站名称需要注册吗
  • 上海专业网站建设报价互联网开发是做什么的
  • 开封做网站的公司好大夫在线个人网站王建设
  • 网站建设与管理复习题网站建设自查维护报告
  • seo外贸 网站公司推荐wordpress分类内没有文章
  • 十大营销网站铜仁网站优化
  • 收录软件最多的网站企业推广平台有哪些
  • 徐州社交网站今天重大新闻摘抄
  • 武进常州做网站大同工程造价信息网
  • 青海哪家做网站的公司最大购物网站开发背景
  • 鹤壁网站seo优化建站有哪些需求
  • 女装网站建设规划建网站需要什么手需
  • 巴市建网站网络广告的缺点
  • 网站站长统计怎么弄营销推广哪家好
  • 网站建设方案可行性惠州网站建设l优选蓝速科技
  • 有做学历在网站能查的到的wordpress 账号 登陆不了
  • 简单网站建设流程wordpress 主题课堂
  • 做公司网站需要几天百度权重等级
  • 锦绣江南网站建设景区旅游网站平台建设方案