Grid Computing Assignment 1 Discrete Fourier Transform ...
Grid Computing Assignment 1 Discrete Fourier Transform ...
Grid Computing Assignment 1 Discrete Fourier Transform ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Content of the file ‘param2.dat’<br />
4 (No of Tasks)<br />
2 (current task no)<br />
1024 (total samples)<br />
Content of the file ‘param3.dat’<br />
4 (No of Tasks)<br />
3 (current task no)<br />
1024 (total samples)<br />
Content of the file ‘metafile.txt’<br />
4 (No of Tasks)<br />
2 (No of arguments to each task)<br />
param0.dat data.dat (arguments to task 0 )<br />
param1.dat data.dat (arguments to task 1 )<br />
param2.dat data.dat (arguments to task 2 )<br />
param3.dat data.dat (arguments to task 3 )<br />
1. Run ‘purezonalserver’ on one of the nodes.<br />
2. Next set up the grid by running ‘purefaultgridnode’ <br />
on the four nodes which want to participate in the grid.<br />
3. Submit the grid task by running ‘user’ .<br />
The parameters for the program ‘user’ :<br />
• Meta file name : metafile.txt<br />
• Source file for tasks : dft_task.c<br />
• No of splits : 4<br />
• Output file : result.dat<br />
• Source file for aggregation : dft_agg.c<br />
4. The result will be available in the file ‘result.dat’ after the computation.<br />
Vishwa starts the grid computation by running the ‘dft_task’ at each node with the files<br />
‘paramx.dat’ (x corresponds to task number) and ‘data.dat’ as arguments, which are provided in the file<br />
‘metafile.txt’. Each subtask reads ‘paramx.dat’ file to get number of tasks, current task no and number<br />
of samples, then computes a portion of the equation using these values and writes the result into a file.<br />
Once all the subtasks finish execution, ‘dft_agg’ is executed which will aggregate the result into the<br />
‘result.dat’file.<br />
Sample Plots