Application Name
Increment
Summary
- Name: Increment
- Contact Person: support-compss@bsc.es
- Access Level: public
- License Agreement: Apache2
- Platform: COMPSs
- Repository: 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 <N> <initValue1> <initValue2> <initValue3>
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/* <user>@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/* <mn_user>@<mn1|mn2|mn3|mn4>.bsc.es:tests/increment ssh <mn_user>@<mn1|mn2|mn3|mn4>.bsc.es cat load module COMPSs/1.3 >> .bashrc cd tests/increment enqueue_compss ... increment.Increment 10 1 2 3
Attachments (4)
- increment.tar.gz (4.9 KB) - added by trac 9 years ago.
- increment.tar.3.gz (5.6 KB) - added by trac 8 years ago.
- increment.tar.4.gz (4.5 KB) - added by trac 7 years ago.
- increment.tar.5.gz (4.5 KB) - added by trac 7 years ago.
Download all attachments as: .zip