我已经按照手册中的说明下载并安装了微软加速器,但是当我尝试创建一个使用open Microsoft.ParallelArrays的项目时,仍然没有定义ParallelArrays。
我试图通过参考资料将Accelerator添加到列表中,但似乎找不到它。
我做错了什么?
编辑:
我在另一个位置找到了一个可以正常工作的文件,但是当我编译并运行我的测试程序时,它抛出了错误
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 . . .发布于 2013-07-11 23:15:30
将dll 'Accelerator.dll‘添加到您的项目中。右键单击项目,添加/现有项。然后将此文件的“复制到输出”属性设置为“始终复制”。
发布于 2013-04-28 03:25:07
最简单的方法是将DLL复制到您的可执行目录中,这仍然是使其正常工作的最佳方法,尤其是要避免可怕的post:"System.DllNotFoundException: Unable to load DLL 'Accelerato r.dll'“
https://stackoverflow.com/questions/16247395
复制相似问题