The program is as follow:
HpcLinqConfiguration config = new
HpcLinqConfiguration("gcchead");
config.JobFriendlyName = "zljtest4";
HpcLinqContext context = new
HpcLinqContext(config);
var lengths =
context.FromDsc<LineRecord>("zljTestFile")
.Select(r
=> r.Line.Length);
Console.WriteLine("The maximum line length is
{0}", lengths.Max());
The HPC cluster has a
head node ,two compute node and a client node.Adding DSC is
successful ,the command is " DSC NODE ADD gccnode01 /TEMPPATH:c:\Dryad\HpcTemp
/DATAPATH:c:\Dryad\HpcData
/SERVICE:gcchead ",
and DSC fileset also create successfully ,
as follows:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
Microsoft.Hpc.Linq;
using
Microsoft.Hpc.Dsc;
using
System.IO;
namespace
test_dsc
{
public class
Program
{
public static
void Main(string[] args)
{
}
}
}
I hope you can give me some help ! thanks
前一篇:周末记事
< 前一篇周末记事
后一篇 >九宫格日记-2011年05月15日

加载中…


