[[PageOutline]] = Application Name = Increment = Summary = * '''Name''': {{{Increment}}} * '''Contact Person''': {{{support-compss@bsc.es}}} * '''Access Level''': {{{public}}} * '''License Agreement''': {{{Apache2}}} * '''Platform''': {{{COMPSs}}} * '''Repository''': [[https://compss.bsc.es/svn/bar/tutorial_apps/java/increment|Increment]] == Description == Increment is an application that takes three different values and increases them a number of given times. The purpose of this application is to show parallelism between the different increments. == Execution instructions == Usage: runcompss increment.Increment where: * - N: Number of times to increase the counters * - initValue1: Initial value for counter 1 * - initValue2: Initial value for counter 2 * - initValue3: Initial value for counter 3 == Execution Example == runcompss increment.Increment 10 1 2 3 == Build == === Option 1: Native java === cd ~/tutorial_apps/java/increment/; javac src/main/java/increment/*.java cd src/main/java/; jar cf increment.jar increment/ cd ../../../; mv src/main/java/increment.jar jar/ === Option 2: Maven === cd ~/tutorial_apps/java/increment/ mvn clean package === Excution Example bscgrid === cd ~/tutorial_apps/java/increment/ scp /jar/* @bscgrid<05|06>.bsc.es:tests/increment runcompss --project=$PWD/xml/project_bscgrid.xml --resources=$PWD/xml/resources_bscgrid.xml --comm=integratedtoolkit.adaptors.gat.master.GATAdaptor increment.Increment 10 1 2 3 === Execution Example MN === cd ~/tutorial_apps/java/increment/ scp /jar/* @.bsc.es:tests/increment ssh @.bsc.es cat load module COMPSs/1.3 >> .bashrc cd tests/increment enqueue_compss ... increment.Increment 10 1 2 3