问题描述
(很抱歉,如果这确实很明显,我对GPU编程是完全陌生的.)我已经安装了Alea GPU的所有依赖项,并且示例正在按需进行编译和运行.但是,我不确定如何设置新的控制台或Windows窗体项目以包括Alea GPU库.如果我只是尝试包含以下文件:
(Sorry if this is really obvious, I'm completely new to GPU programming.) I have installed all of the dependencies for Alea GPU and the samples are compiling and running as they should. However, I'm not sure how to setup a new console or windows forms project to include the Alea GPU libraries. If I just try to include the files as follows:
using Alea;
using Alea.Parallel;
我得到了错误:
在创建新项目时,我应该如何包括Alea GPU库?(我正在使用Visual Studio 2015)
How am I supposed to include the Alea GPU libraries when creating a new project? (I'm using Visual Studio 2015)
推荐答案
在使用"using"语句之前,您需要添加指向该项目的引用,该引用指向Alea库,以便Visual Studio知道在哪里寻找它们
Before the "using" statements will work, you need to add a reference to the project that points to the Alea library so Visual Studio knows where to look for them.
这篇关于如何使用Alea GPU设置项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!