带有Visual Studio F#的Microsoft Accelerator库 [英] Microsoft Accelerator library with Visual Studio F#

查看:115
本文介绍了带有Visual Studio F#的Microsoft Accelerator库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照手册中的说明下载并安装了Microsoft Accelerator,但是当我尝试创建使用open Microsoft.ParallelArrays的项目时,仍然没有定义ParallelArrays.

I've downloaded and installed Microsoft Accelerator as stated in the manual, but when I try to create a project that uses open Microsoft.ParallelArrays, ParallelArrays is still not defined.

我尝试通过参考将Accelerator添加到列表中,但似乎找不到它.

I tried going through the References to add Accelerator to the list but could not seem to find it.

我在做什么错了?

我在另一个可以工作的位置找到了一个文件,但是当我编译并运行测试程序时会抛出错误

I have found a file in another location that does work, but when I compile and run my test program it throws the error

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'Accelerato
r.dll': The specified module could not be found. (Exception from HRESULT: 0x8007
007E)
   at Microsoft.ParallelArrays.FloatParallelArray.AcceleratorNative.Create_FPA_F
A1D(Single[] values, IntPtr Length)
   at Microsoft.ParallelArrays.FloatParallelArray..ctor(Single[] values)
   at Program.Test1() in c:\users\misao\documents\visual studio 2012\Projects\ac
celeratortest\acceleratortest\Program.fs:line 10
   at <StartupCode$acceleratortest>.$Program.main@() in c:\users\misao\documents
\visual studio 2012\Projects\acceleratortest\acceleratortest\Program.fs:line 97
Press any key to continue . . .

推荐答案

将dll"Accelerator.dll"添加到您的项目中. 右键单击项目,添加/现有项目. 然后将此文件的复制到输出"属性设置为始终复制".

Add the dll 'Accelerator.dll' to your project. Right click on the project, Add / Existing Item. Then set this files 'Copy To Output' property to Copy Always.

这篇关于带有Visual Studio F#的Microsoft Accelerator库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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