开源CUDA IDE

时间:2011-03-20 11:12:47

标签: open-source ide cuda

你能推荐任何可以直接使用的开源(除了eclipse)CUDA IDE(没有additioanl插件等)吗?

PS:还有任何在线云CUDA IDE吗? (我发现http://ideone.com/8lYvf,但对CUDA无效)

3 个答案:

答案 0 :(得分:4)

Here是有关如何为CUDA开发配置Netbeans的指南。

答案 1 :(得分:1)

您应该可以使用Visual C ++ Express(非开源但免费)

如果您使用的是CUDA 3.2您将需要VC ++ 2008 如果您使用的是CUDA 4.0RC,则可以使用VC ++ 2010

答案 2 :(得分:1)

你可以使用QT-Creator,它与cmake结合使用效果非常好:

cmake_minimum_required(VERSION 2.6.2)

project(GPU_PROJECT)
#set(CMAKE_BUILD_TYPE Debug)

#In case findCUDA.cmake wasn't found, download it from here
# https://gforge.sci.utah.edu/gf/project/findcuda/scmsvn/?action=browse&path=%2F*checkout*%2Ftrunk%2FFindCuda.html 
# and put it into SOURCE_DIR/CMake
#set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})

#### Cuda 
# find_package(CUDA)
find_package(CUDA 3 QUIET REQUIRED)
# find_package(CUDA 2.1)
# find_package(CUDA 2.2)
# find_package(CUDA 2.3)
# find_package(CUDA 2.1 REQUIRED)
# find_package(CUDA 2.2 REQUIRED)
# find_package(CUDA 2.3 REQUIRED)
# find_package(CUDA 2.1 EXACT)
# find_package(CUDA 2.2 EXACT)
# find_package(CUDA 2.3 EXACT)
# find_package(CUDA 2.1 EXACT REQUIRED)
# find_package(CUDA 2.2 EXACT REQUIRED)
# find_package(CUDA 2.3 EXACT REQUIRED)
# find_package(CUDA 2.2 EXACT QUIET REQUIRED)

if (CUDA_FOUND) 
message(" * CUDA ${CUDA_VERSION} was found")
else(CUDA_FOUND)
    message(" * CUDA is not found")
    message(FATAL_ERROR "Not all CUDA libraries are found")
endif(CUDA_FOUND)


set(SRCS
     src/main.cpp
     src/cuda_core.cu
)
cuda_add_executable(GPU_PROJECT ${SRCS})
target_link_libraries(GPU_PRJECT ${SOME_LIBRARY})

如果您想要其他调试功能,请在QT-Creator配置中将gdb替换为cuda-gdb。