https://github.com/bsc-wdc/tutorial_apps
COMPSs and PyCOMPSs applications used for tutorials.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.3%) to scientific vocabulary
Repository
COMPSs and PyCOMPSs applications used for tutorials.
Basic Info
- Host: GitHub
- Owner: bsc-wdc
- Language: Jupyter Notebook
- Default Branch: stable
- Size: 8.26 MB
Statistics
- Stars: 6
- Watchers: 7
- Forks: 1
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
COMPSs Tutorial applications
This folder contains tutorial applications developed for [py]COMPSs.
Its purpose is to share the tutorial applications among the COMPSs users community to ease the implementation of new applications and share them with the rest of users.
Tutorial Application's Folder Structure
Application are grouped by language (C, Java and Python). Each of them includes a set of applications used in tutorials following the next structure:
apps
|- python
| |- app_1
| | |- src Application source code
| | |- README Brief description of the application
|- java
| |- app_1
| | | ...
|- c
|- ...
Tutorial Hands-on Instructions and Commands
Setup Instructions
Update Tutorial apps:
$ rm -rf tutorial_apps
$ git clone https://github.com/bsc-wdc/tutorial_apps.git
Install COMPSS-PyCOMPSS CLI:
$ sudo python3 -m pip install pycompss-cli
Python Hands-on
Initialize a PyCOMPSs docker environment.
$ pycompss init -n docker-tutorial docker -i compss/compss-tutorial:2.10
Start monitor.
$ pycompss monitor start
Start Jupyter Notebook.
$ pycompss jupyter
Once started, open a web browser with the address: http://localhost:8888 Follow the instructions of the Jupyter notebook, and at the end of the hands-on session, follow the instructions to clean the environment.
Stop the monitor.
$ pycompss monitor stop
Remove the PyCOMPSs docker environment.
$ pycompss environment remove docker-tutorial
Java Hands-on
Compile the application.
$ cd /home/compss/tutorial_apps/java/wordcount
$ mvn clean install
Initialize a COMPSs docker environment.
$ compss init -n docker-tutorial docker -i compss/compss-tutorial:2.10
Follow the exercises to develop the wordcount application.
Run the application.
$ compss run --classpath=jar/wordcount.jar wordcount.uniqueFile.Wordcount data-set/file_small.txt 650
To enable an execution with monitoring:
Start the monitor.
$ compss monitor start
Open a browser in URL http://localhost:8080/compss-monitor and enter an log-in with an empty user.
Run the application with monitoring flags.
$ compss run -m --classpath=jar/wordcount.jar wordcount.uniqueFile.Wordcount data-set/file_long.txt 350000
Simulate the execution with different workers.
- To check the used resources run use the following commands:
$ compss exec cat /project.xml
$ compss exec cat /resources.xml
- Include two worker nodes.
$ compss components add worker 2 - Run again the application with monitoring flags
$ compss run -m --classpath=jar/wordcount.jar wordcount.uniqueFile.Wordcount data-set/file_long.txt 350000
Run the application with graph generation and generate the graph
$ compss run -g --classpath=jar/wordcount.jar wordcount.uniqueFile.Wordcount data-set/file_small.txt 650
$ compss gengraph .COMPSs/wordcount.uniqueFile.Wordcount_04/monitor/complete_graph.dot
$ evince .COMPSs/wordcount.uniqueFile.Wordcount_04/monitor/complete_graph.pdf
Run the application with debug information
$ compss run -d --classpath=jar/wordcount.jar wordcount.uniqueFile.Wordcount data-set/file_small.txt 650
Stop the monitor
$ compss monitor stop
Remove the docker environment
$ compss environment remove docker-tutorial
C++ exercise
Enter in the application folder and start the COMPSs docker environment
$ cd ~/tutorial_appss/c/matmul_object
$ compss init -n docker-tutorial docker -i compss/compss-tutorial:2.10
Build the application
$ compss exec compss_build_app Matmul
Run the application
$ compss run --appdir=/home/user/ master/Matmul 4 4 2.0
Remove the docker environment
$ compss environment remove docker-tutorial
Owner
- Name: Workflows and Distributed Computing
- Login: bsc-wdc
- Kind: organization
- Email: distributed_computing@bsc.es
- Location: Barcelona
- Website: https://www.bsc.es/discover-bsc/organisation/scientific-structure/workflows-and-distributed-computing
- Repositories: 13
- Profile: https://github.com/bsc-wdc
GitHub Events
Total
- Push event: 3
- Fork event: 1
- Create event: 2
Last Year
- Push event: 3
- Fork event: 1
- Create event: 2
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- kinow (1)
Pull Request Authors
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- es.bsc.compss:compss-api 2.6
- es.bsc.compss:compss-api 2.6
- es.bsc.compss:compss-api 2.6
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- com.sun.xml.ws:jaxws-rt ${jaxws.version}
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api
- es.bsc.compss:compss-api 3.2.rc2306
- junit:junit 4.12 test
- es.bsc.compss:compss-api