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)
网友评论