Please, bring your own laptop. All the PATC courses at BSC are free of charge.
Course convener: Rosa Badia, Workflows and Distributed Computing Group Manager, Computer Sciences - Workflows and Distributed Computing Department
Rosa M Badia, Workflows and Distributed Computing Group Manager, Computer Sciences - Workflows and Distributed Computing Department, BSC
Javier Conejero, Senior Researcher, Computer Sciences - Workflows and Distributed Computing Department, BSC
Jorge Ejarque, Researcher, Computer Sciences - Workflows and Distributed Computing Department, BSC
Daniele Lezzi, Senior Researcher, Computer Sciences - Workflows and Distributed Computing Department, BSC
Objectives: The objective of this course is to give an overview of the COMPSs programming model, which is able to exploit the inherent concurrency of sequential applications and execute them in a transparent manner to the application developer in distributed computing platform. This is achieved by annotating part of the code as tasks, and building at execution a task-dependence graph based on the actual data used consumed/produced by the tasks. The COMPSs runtime is able to schedule the tasks in the computing nodes and take into account facts like data locality and the different nature of the computing nodes in case of heterogeneous platforms. Additionally, recently COMPSs has been enhanced with the possibility of coordinating Web Services as part of the applications. COMPSs supports Java, C/C++ and Python as programming languages.
Learning Outcomes: In the course, the COMPSs syntax, programming methodology and an overview of the runtime internals will be given. The attendees will get a first lesson about programming with COMPSs that will enable them to start programming with this framework.
A hands-on with simple introductory exercises will be also performed. The students who finish this course will be able to develop simple COMPSs applications and to run them both in a local resource and in a distributed platform (initially in a private cloud). The exercises will be delivered in Python and Java. In case of Python, Jupyter notebooks will be used in some of the exercises.
Level: for trainees with some theoretical and practical knowledge.
INTERMEDIATE: for trainees with some theoretical and practical knowledge; those who finished the beginners course
ADVANCED: for trainees able to work independently and requiring guidance for solving complex problems
Prerequisites: Programming skills in Java and Python
Day 1 (January 28)
9: 30 – 10:00 Roundtable. Presentation and background of participants
10:00 – 10:30 Introduction to COMPSs
Setup of tutorial environment
10:30 – 13:00 PyCOMPSs
Writing Python applications
11:00 – 11:30 Coffee break
Python Hands-on using Jupyter notebooks
13:00-14:30 Lunch break
14:30 -15:15 How to debug COMPSs applications
15:15 -16:30 Python practical session (Bring your Own Code)
16:30 - Adjourn
Day 2 (January 29)
9:30-11:00 COMPSs & Java
Writing Java applications
11:00 – 11:30 Coffee break
11:30-12:30 COMPSs Advanced Features
Using binaries and MPI code
COMPSs execution environment
Integration with OmpSs
13:30 – 14:30 Lunch break
14:30-15:30 Cluster Hands-on (MareNostrum)
15:30 -16:30 Practical session (Bring your Own Code)
COMPSs Installation & Final Notes