📄 callappdemo.java
字号:
/*************************************************************************** ** Java Grande Forum Benchmark Suite - MPJ Version 1.0 ** ** produced by ** ** Java Grande Benchmarking Project ** ** at ** ** Edinburgh Parallel Computing Centre ** ** email: epcc-javagrande@epcc.ed.ac.uk ** ** Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk) ** ** This version copyright (c) The University of Edinburgh, 2001. ** All rights reserved. ** ***************************************************************************/package jgf_mpj_benchmarks.section3.montecarlo;//package montecarlo;import mpi.*;/** * Wrapper code to invoke the Application demonstrator. * * @author H W Yau * @version $Revision: 1.1 $ $Date: 2005/04/29 17:43:42 $ */public class CallAppDemo { public int size; int datasizes[] = {10000,60000}; int input[] = new int[2]; AppDemo ap = null; public void initialise () { input[0] = 1000; input[1] = datasizes[size];/* Aamir -- Data/hitData can be changed to basically anything */ String dirName="../conf"; String filename="hitData"; ap = new AppDemo(dirName, filename, (input[0]),(input[1])); ap.initSerial(); } public void runiters () throws MPIException{ ap.runSerial(); } public void presults () { ap.processSerial(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -