Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which IDE you used? #54

Open
robot-nano opened this issue Feb 7, 2020 · 2 comments
Open

Which IDE you used? #54

robot-nano opened this issue Feb 7, 2020 · 2 comments

Comments

@robot-nano
Copy link

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.

@funmonty
Copy link

funmonty commented Feb 7, 2020

For windows, Visual Studio is sufficient. For linux, even terminal + vim would do the job.

@robot-nano
Copy link
Author

robot-nano commented Feb 7, 2020

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}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants