开源 CUDA IDE

发布于 2024-10-24 23:17:22 字数 1539 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

我还不会笑 2024-10-31 23:17:22

此处是有关如何配置 Netbeans 进行 CUDA 开发的指南。

Here is a guide on how to configure Netbeans for CUDA development.

长梦不多时 2024-10-31 23:17:22

您可以使用 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。

You can use QT-Creator, it works quite well in combination with 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})

If you want to have additional debug functionalities, replace gdb with cuda-gdb in the QT-Creator config.

情丝乱 2024-10-31 23:17:22

您应该能够使用 Visual C++ Express(不是开源但免费)

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

You should be able to use Visual C++ Express (Not Open Source but Free)

If you are using CUDA 3.2 You will need VC++ 2008
If you are using CUDA 4.0RC You can use VC++ 2010

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文