CUDA 和计算视觉分析器新手

发布于 2024-12-22 05:29:12 字数 407 浏览 4 评论 0原文

我正在阅读《Cuda by Example》这本书,在开始一个新项目、编写、编译、执行和分析一些代码时遇到困难。我发现这个博客帖子:

http://blog.cuvilib.com/2010/10/28/profiling-cuda-applications-on-windows-with-nvidia-compute-visual-profiler/

但它使用了 NVIDIA 的示例地点。我想从头开始自己的项目是什么?在会话设置窗口中,我不知道该输入什么。

I am reading this book "Cuda by Example" and i am having difficulties starting a new project, writing, compiling, executing and profiling some code. I found this blug post:

http://blog.cuvilib.com/2010/10/28/profiling-cuda-applications-on-windows-with-nvidia-compute-visual-profiler/

but it uses an example from NVIDIA site. What is I want to start my own project from scratch? In the session settings window I don't know what to enter there.

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

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

发布评论

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

评论(2

蓬勃野心 2024-12-29 05:29:12

如果你想创建一个新项目并自己编写 CUDA 代码,你应该打开 Visual Studio,按“新建”来创建新项目,如果你安装了 CUDA Toolkit 和 Parallel NSight,你会看到“Nvidia- >CUDA”并选择您想要的运行时版本。 在此处输入图像描述

如果您没有 Visual Studio,那么您可以在任何编辑器中编写代码并编译它从 cmd.exe/terminal 写入“nvcc name_of_your_file.cu”

NVIDIA Compute Visual Profiler 只是一个工具,可让您了解应用程序的性能并帮助您了解如何使代码运行得更快。

If you want to make a new project and write CUDA code on your own, you should open Visual Studio, push "New" to make new project, and there, if you have CUDA Toolkit and Parallel NSight installed, you will see "Nvidia->CUDA" and choose whichever runtime version you want. enter image description here

If you don't have Visual Studio, then you can just write a code in any editor and compile it from cmd.exe/terminal by writing "nvcc name_of_your_file.cu"

NVIDIA Compute Visual Profiler is just a tool to make you understand the performance in your application and to help you to find out how to make your code run faster.

久光 2024-12-29 05:29:12

您可以阅读 NVidia 文档:
http://developer.nvidia.com/nvidia-gpu-computing-documentation
有一个非常有用的特定文档“入门指南”,它解释了所有的第一步。
Cuda by Example 是一本很棒的入门书,但我建议您也阅读《编程指南》。

PS:我使用Eclipse作为Ide,但带有插件。

You can read the NVidia documentation:
http://developer.nvidia.com/nvidia-gpu-computing-documentation
with a specific document "Getting Started Guide" that is very useful and explain all the first steps.
Cuda by Example is a fantastic book to start, but I recommend you to read also the Programming Guide.

Ps: I have used Eclipse as Ide, but with a plugin.

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