【问题标题】:Nsight Eclipse Edition 7.5 add compile command to link libraryNsight Eclipse Edition 7.5 添加编译命令到链接库
【发布时间】:2016-11-07 02:28:54
【问题描述】:

我想使用 -lcusparse 为 Nsight 中的 nvcc 编译器链接 cusparse 库,即类似这样的东西 nvcc test_sparse.cu -lcusparse -o test_CUSPARSE.

在 Nsight 7.5 中我究竟可以在哪里添加这个,我只找到了旧版本的解释。

【问题讨论】:

    标签: cuda nvcc nsight


    【解决方案1】:

    如果你不使用 makefile 项目,你可以在这里找到它。

    项目属性 -> 构建 -> 设置 -> 工具设置 -> NVCC 链接器 -> 库

    【讨论】:

    • 我将现有项目导入工作区,但我找不到您推荐的设置。有没有办法将它包含在 CMakeLists.txt 文件中?
    • @SemtexB "如果你没有使用 makefile 项目"
    猜你喜欢
    • 2013-04-15
    • 2012-05-16
    • 2014-07-10
    • 2017-11-19
    • 2018-04-21
    • 2011-03-23
    • 2016-11-26
    • 2016-12-17
    • 2020-03-09
    相关资源
    最近更新 更多