使用Visual Studio F#的Microsoft Accelerator库

时间:2013-04-27 01:32:03

标签: visual-studio-2010 f# microsoft-accelerator

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

我尝试浏览引用以将加速器添加到列表中但似乎无法找到它。

我做错了什么?

编辑:

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

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 . . .

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:-1)

最简单的方法是在你的可执行文件目录中复制DLL仍然是使它工作没有问题的最佳方法,特别是避免可怕的帖子:“System.DllNotFoundException:无法加载DLL'Rumprato r.dll'“