private static void SayHello(Cluster cluster)
{
var dset = new DSet<int> { Name = Guid.NewGuid().ToString("D"), Cluster = cluster };
var descriptions =
dset
.Distribute(Enumerable.Range(0, cluster.NumNodes))
.Select(i =>
{
var gpuId = Int32.Parse(ConfigurationManager.AppSettings["GpuId"]);
var machineName = System.Environment.MachineName;
var process = System.Diagnostics.Process.GetCurrentProcess();
var gpu = Gpu.Get(gpuId);
return $"Hello from {machineName} {gpu} taskId={i} processId={process.Id} threadId={Thread.CurrentThread.ManagedThreadId}";
})
.ToIEnumerable()
.ToArray();
foreach (var description in descriptions)
{
Console.WriteLine(description);
}
}
XiangCluster,1082
localhost,1082
Also, if I use real IP, it also works (I launch the application from the same machine):
XiangCluster,1082
192.168.1.110,1082
XiangCluster,1082
192.168.1.110,1082
192.168.1.108,1082
Then it DOESN'T WORK anymore.
============== New Log File =======================
160222_020627.133310,1,Info,PrajnaMachineId is 290efbd143477d11
160222_020627.173490,1,Info,Initialize network stack with initial buffers: 128 max buffers: 33554 buffer size: 128000 network threads: 2
160222_020627.215722,1,Info,Start PrajnaClient at port 1082 (1100-1150)...................... Mode x64, 1 MB
160222_020627.218012,1,Info,Minimum threads: 16, Minimum I/O completion threads: 4
160222_020627.218622,1,Info,Maximum threads: 32767, Maximum I/O completion threads: 1000
160222_020627.219319,1,Info,Available threads: 32767, Available I/O completion threads: 1000
160222_020627.220786,1,Info,Start Parameters [||]
160222_020627.228628,1,Info,All command parsed ==== true
160222_020627.261606,1,Info,Authentication parameters: pwd=empty keyfile= keyfilepwd=empty
160222_020709.983452,18,Info,GetDriveSpace, fail to retrieve remote storage information for machine 192.168.1.108, with exception System.Management.ManagementException: Access denied
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementObjectSearcher.Initialize()
at System.Management.ManagementObjectSearcher.Get()
at Prajna.Core.RemoteConfig.GetDriveSpace(String machineName)
160222_020744.693316,16,Error,Prajna.Core.Task.ErrorInSeparateApp : (Close,Job) Failed to find Job Action object for Job a6dfc439-1db5-41f5-9843-569a50737867, error has happened before?
BTW, when I use the Prajna from the NuGet package, it works.