1

我是 Optix 世界的新手,我想尝试在 VS 2008 中制作新项目。

我的问题:如何在不编译 SDK 包含的所有示例的情况下使用和修改项目“教程”?

我尝试使用“教程”文件在 VS2008 中创建新项目,但不起作用:/

感谢您的帮助!

4

2 回答 2

2

I am also new in optix and got the same problem.

I have compiled sample1 which give the green screen within Parallel Nsight 2.0 visual studio 2010.

You need to do the following if you are using nvidia parallel nsight:

  1. change NVCC compilation type to PTX file in cuda c/c++ at project properties.
  2. make sure you build optix-sdk samples files using cmake.
  3. open optix-sample.sln and build the all projects.
  4. new libraries has been created like sutil.lib which you need to link to your new project.
  5. create a new cuda runtime project in my case i have used sample1 files.
  6. make sure to do step 1 and then include optix header files and sutil.h from the optix-sdk.
  7. link sutil.lib optix and opengl libraries like opengl32.lib and glut32.lib
  8. You should now be able to build your project.
  9. Finally you need optix sutil freeglut dll files to run your application.
于 2012-09-29T10:03:01.023 回答
0

只需打开 Optix-samples sol 文件,您可以在其中看到所有附加的项目,在其中找到教程,右键单击它并选择“设置为启动项目”。现在您可以单独运行和编辑教程。

于 2015-12-26T16:07:24.783 回答