美文网首页
CUDA程序的CMakeList文件编写

CUDA程序的CMakeList文件编写

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

    cmake_minimum_required(VERSION 3.9)

    project(deviceQuery)

    set(CMAKE_CXX_STANDARD 11)

    find_package(CUDA QUIET REQUIRED)

    #include_directories(/usr/local/cuda-9.0/include)

    include_directories(/home/liaohh/NVIDIA_CUDA-9.0_Samples/common/inc)

    #link_libraries(/usr/local/cuda-9.0/lib64)

    link_libraries(/home/liaohh/NVIDIA_CUDA-9.0_Samples/common/lib)

    #add_executable(deviceQuery deviceQuery.cpp)

    cuda_add_executable(deviceQuery deviceQuery.cpp)

    相关文章

      网友评论

          本文标题:CUDA程序的CMakeList文件编写

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