You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now i'm using Clion + cmake. It's work very well after configure empty common files.
cmake_minimum_required(VERSION 3.10)
project(CUDA_SAMPLE)
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda-9.0)
find_package(CUDA REQUIRED)
# add public empty common file (I don't know why! But after add this two empty soure file# it work!!! Magic!)file(GLOB COMMON common.h common.cpp)
file(GLOB CU main.cu)
include_directories(${CUDA_INCLUDE_DIRS})
CUDA_ADD_EXECUTABLE(First-Demo # target名${CU}${COMMON}
)
Hello!
I'm trying to develop cuda with CMakeLists.txt! Which Ide you recommend? I have try Clion and eclipse, but they are difficult to use.
The text was updated successfully, but these errors were encountered: