如何使用Alea GPU设置项目 [英] How to setup project using Alea GPU

查看:123
本文介绍了如何使用Alea GPU设置项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(很抱歉,如果这确实很明显,我对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"(您丢失了吗?using指令还是程序集引用?)".

"The type or namespace name 'Alea' could not be found (are you missing a using directive or an assembly reference?)".

在创建新项目时,我应该如何包括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设置项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆