【发布时间】:2020-09-21 10:41:54
【问题描述】:
我正在尝试使用 MPI.Net 包运行我的简单 .Net 控制台应用程序。我有以下例外:
"Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MPI, Version=1.4.0.0, Culture=neutral, PublicKeyToken=29b4a045737654fe' or one of its dependencies. The system cannot find the file specified.
File name: 'MPI, Version=1.4.0.0, Culture=neutral, PublicKeyToken=29b4a045737654fe'
at MPIProject.Program.Main(String[] args)"
我在每个启动的进程中都有这个
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MPI;
namespace MPIProject
{
class Program
{
static void Main(string[] args)
{
using (new MPI.Environment(ref args))
{
if (MPI.Environment.Finalized)
{
Console.WriteLine(Communicator.world.Rank);
}
}
}
}
}
【问题讨论】:
-
错误很明显。缺少一个库。 Have you followed the instructions? 是什么。你想做什么呢? .NET 为数据并行(Parallel、PLINQ)、代理和消息传递(TPL 数据流、通道)、异步操作(async/await)和低级并发操作与任务提供内置库