Full text
Leveraging Teaching on Demand: Approaching HPC to Undergrads Sandra Catal´ana,∗ , Roc´ıo Carratal´a-S´aezb, Sergio Iserteb aUniversidad Complutense de Madrid (UCM), Madrid, Spain bUniversitat Jaume I (UJI), Castell´o, Spain Abstract High Performance Computing (HPC) is a highly demanded discipline in companies and institutions. However, as students and also afterwards as professors, we observed a lack of HPC related content in the engineering degrees at our university, including Computer Science. Thus, we designed and offered the engineering students a non-mandatory course entitled “Build you own Raspberry Pi cluster employing Raspberry Pi” to provide the students with HPC skills. With this course, we covered the basics of supercomputing (hardware, networking, software tools, performance evaluation, cluster management, etc.). This was possible thanks to leveraging the flexibility and versatility of Raspberry Pi devices, and the students’ motivation that arose from the hands-on experience. Moreover, the course included a “Teaching on demand” component to let the attendees choose a field to explore, based on their own interests. In this paper, we offer all the details to let anyone fully reproduce the course. Besides, we analyze and evaluate the methodology that let us fulfill our objectives: increase the students’ HPC skills and knowledge in such a way that they feel capable of utilizing it in their mid-term professional career. Keywords: Computational Cluster, Undergrad Teaching, System Administration, Parallel and Distributed Computing, Raspberry Pi ∗Corresponding author. Email addresses: [email protected] (Sandra Catal´an), [email protected] (Roc´ıo Carratal´a-S´aez), [email protected] (Sergio Iserte) Preprint submitted to Journal of Parallel and Distributed Computing July 25, 2022
1. INTRODUCTION1 The mathematician and computer scientist Alan Turing said “We can only2 see a short distance ahead, but we can see plenty there that needs to be done”.3 High-Performance Computing (onward, HPC) is nowadays vital for almost every4 researcher and company, covering from data analysis to computer simulations5 and artificial intelligence studies. By analyzing the short distance ahead of us,6 as graduates from Universitat Jaume I (UJI), we observed that there exists an7 indisputable gap between the syllabus of the degrees and the HPC needs of8 the professional environment. We realized that there is a lack of HPC contents9 in Computer Science studies, and also in other engineering degrees. For this10 reason we decided to offer a non-mandatory introductory course entitled “Build11 your own supercomputer with Raspberry Pi”1. It serves as an introduction to12 HPC, starting from the basics and using Raspberry Pi devices to build a dummy13 supercomputer.14 In this paper, we present our experience with the two editions of the course15 we have offered in 2018 [1] and 2019, respectively. It is common to find courses16 that focus on a specific HPC area, such as parallel programming, machine learn-17 ing, cluster design from the perspective of selecting specific hardware or recy-18 cling it, etc. However, from our understanding, a complementary course of19 introduction to clusters of computers should show all the possibilities that a20 supercomputer may provide and let the students decide which aspect appeals21 more to them. For this purpose, in the course, we opted for covering a wider22 scope of HPC-related fields, providing the attendees with general basics.23 Three main reasons motivated us to create and design the course: 1) HPC24 society interest and need is increasing; 2) There exists a lack of HPC related25 content among the Computer Science syllabus at UJI; and 3) HPC self-learning26 is complicated. The obvious contradiction that 1) and 2) expose, together with27 1Course website (in Spanish): https://sites.google.com/uji.es/supercomputadorras pberrypi 2
the difficulties associated to autonomously start in this field, evidenced that such28 a course could be useful for our students. Particularly at UJI, the engineering29 degrees are studied in the School of Technology and Experimental Sciences30 (ESTCE), which offers 11 degrees, including Computer Science, and 15 masters.31 The proposed course was offered to all the students in ESTCE since they are32 expected to have a technical background. Basic Linux command line knowledge33 was highly recommended, although it was not a strict prerequisite.34 The main goal of the course is to provide the students with HPC knowledge.35 This includes not only understanding the basics but also being capable of identi-36 fying when supercomputers are needed and how they are built, as well as where37 HPC is applied. To soften the entrance barrier to this field, the course avoids38 classical teaching methodologies to let students experiment with actual hard-39 ware while enjoying the learning process. It is also part of the course’s purpose40 to show the importance of monitoring and data analysis, as well as showcasing41 the interaction with a real supercomputer. Besides, a part of the course is left42 open to adapt its content to the particular interests of the students. To this43 end, a ”teaching on-demand” methodology is leveraged, allowing the attendees44 to choose in what they prefer to invest this specific time slot.45 The main contributions of this work are:46 •Description, test and evaluation of the “teaching on demand” approach.47 •Implementation of a hands-on experience based on the usage of Raspberry48 Pi devices to motivate the students.49 •Increase in the HPC knowledge and interest among engineering students.50 •Detailed description of the course in such a way that the community can51 reproduce it.52 •Analysis of the mid-term impact of the course on the attendees aca-53 demic/professional development.54 The rest of the paper is structured as follows: in Section 2 we give some55 HPC background, focused on describing the terminology, tools, applications,56 3
and hardware that are employed in the course; in Section 3 we describe differ-57 ent works that reflect the effort from the HPC community to provide students58 with skills in the field; in Section 4 we explain the course methodology, pro-59 viding details about its motivation, goals, curriculum, design, and the students60 recruitment and selection criteria, as well as describing its structure and the61 evaluation of the curriculum; in Section 5 we discuss the results extracted from62 the evaluation of the course curriculum and the lessons learnt that derive; in63 Section 6 we present the performed follow-up to evaluate the mid-term impact64 of the course on the attendees; in Section 7 we provide the conclusions extracted65 from this work; and in Section 8 we explain the open lines that can be explored66 as future work.67 2. BACKGROUND68 In this section, some background to facilitate the understanding of the paper69 is provided following. More detailed descriptions of the employed terms can be70 found in [2, 3, 4, 5].71 2.1. Terminology72 Acluster is understood in the context of the course as a set of independent73 computers (namely nodes) which can work collectively. Related to cluster, we74 present the definition of supercomputer: a system (usually a cluster) that deliv-75 ers high computational power. Besides, HPC is presented as the field in charge76 of solving scientific and/or engineering problems, which are typically complex77 and costly in terms of time and resources. To achieve high performance and,78 thus, solve large problems, it is necessary to leverage the coordinated and si-79 multaneous work of different devices. This way, solutions can be computed in80 a reasonable time, much faster than in personal computers. Precisely, the joint81 execution performed by several processes concurrently is named parallel pro-82 cessing, and in case those processes do not share the memory, then it is said to83 be distributed processing.84 4
The term performance refers to the computational power provided by the85 cluster. Likewise, scalability is presented as the property that evaluates the ratio86 between two measurements of the time, each of them associated with different87 hardware/software configurations.88 2.2. Tools and applications89 The basic setup of the cluster includes the network configuration among the90 nodes, to enable the remote access through Secure SHell (SSH); and installing91 the Network File System (NFS), which provides the cluster with a shared file92 system. Moreover, parallel and distributed programming will rely on OpenMP93 and MPI to respectively coordinate the execution of several processes within94 each node, and through different nodes in the system.95 2.3. Hardware96 As mentioned before, to let the students build their cluster, they are provided97 with Raspberry Pi devices. These can be seen as small computers composed of98 a motherboard that integrates the processor (with ARM architecture), RAM,99 several ports for input/output signals, and a slot for a memory card. The cheap100 price, together with its versatility, made us opt for this device.101 Of course, production HPC clusters are not based on Raspberry Pi, but102 more powerful components, although there exist actual low-cost energy-aware103 clusters based on these devices [6, 7, 8]. However, in rough outlines, there exists104 straightforward parallelism between what students can observe when building105 the cluster employing these simpler devices and what forms actual HPC super-106 computers that allows learning the HPC basics [9, 10]. The similarities and107 differences between production HPC clusters and Raspberry Pi based clusters108 are explained to students along the course.109 3. RELATED WORK110 In the recent past, we can find many efforts from the HPC community to111 convey the supercomputing philosophy to CS and other engineering students.112 5
Within these efforts, we can find platforms to simulate HPC environments and113 help students to understand the different needs and infrastructures [11], and114 extra courses to provide them with essential HPC knowledge that is not officially115 included in their curricula [12]. Moreover, there are also remarkable efforts such116 as [13] that aim to establish what a CS student should know about HPC, setting117 some “core topics”.118 Usually, courses involving supercomputing topics focus on parallel program-119 ming languages or paradigms [14, 15]. Others [16], explain the process of design-120 ing a cluster for educational purposes. Commonly, the resulting cluster is based121 on Beowulf distributed computing system [17], useful for recycling deprecated122 machines in the center. In [18], the authors combine the hardware and software123 experience involving students in the cluster set-up, employing Odroid instead124 of Raspberry Pi. However, that course follows a strict program addressing the125 implementation of a fixed suggested problem. A thorough review of experiences126 using micro-clusters for educational purposes can be read in [19]. In that pa-127 per, the authors compile a series of low-cost clusters using different hardware128 such as Parallela, Odroid, NVidia Jetson, and Raspberry Pi. Furthermore, they129 enumerate several strategies for engaging students.130 Apart from scientific publications, several related project descriptions and131 experiences are available online, where different authors set up and configure132 a Raspberry Pi cluster for performing distributed tasks. An effort in building133 a Raspberry Pi cluster is reported in [20], where High-Performance Linpack134 (HPL) is executed over 32 nodes. In [21], the authors implement a bingo where135 each node corresponds to a cell in a bingo card, and all the nodes collaborate to136 check if the new number completes a match. Projects like [22] provide an image137 for a Raspberry Pi 3 system with pre-installed support for clusters and other138 attractive parallel suites. A more recent project [23] leverages a new generation139 of Raspberries, the Raspberry Pi model 4 B [24] to build a cluster and execute140 small distributed Python codes.141 From our understanding, a complementary course of introduction to clusters142 of computers should show all the possibilities that a supercomputer may provide143 6
and let the students decide which aspects appeal more to them. For this purpose,144 we have included a wide variety of topics in the course, providing simplified145 versions of the ones classically addressed in professional and more complex HPC146 related manuals [25, 26, 27], such as software performance, cluster scalability,147 networking, CPU frequency, cooling, benchmarking, and scientific applications.148 The main difference concerning all the other approaches we have analyzed149 is the fact that we do not focus on any specific aspect (such as parallelism,150 hardware description, performance evaluation, users management, etc.), but we151 try to cover the whole scope of subsystems and functionalities while building152 and utilizing an HPC system, to provide a general HPC overlook.153 4. METHODOLOGY154 In this section, we describe the proposed course. First, we present the course155 goals, a high-level curriculum description, the course design, and the recruitment156 and selection criteria; then, details regarding the contents of the course are157 provided and discussed; lastly, we include an evaluation of the syllabus.158 4.1. Overview159 Broadly speaking, the course is a 10-hour workshop highly focused on a160 hands-on approach to bring HPC to students. The main idea is that students,161 organized in groups, build and configure their cluster. That prototype is used to162 run HPC applications, to face first-hand issues of supercomputer management,163 and to experience how to test and characterize a system.164 4.1.1. Course motivation165 The main reason that inspired us to create this course is to bring HPC to166 undergraduate students. Although it is a cross-cutting subject that is present167 in a wide variety of fields (for instance physics, economics, or medicine), HPC168 is far away to be well known by society and, especially, CS and engineering169 students. In this scenario, three reasons drove us to the creation of the course:170 HPC society interest and need are increasing.171 7
The amount of CS professionals that require HPC skills is increasing due to172 the importance of this area in many social and professional fields. In fact, Eu-173 ropean and American governments and institutions have increased the funding174 of HPC related projects [28, 29, 30].175 On the other hand, the effort performed by institutions to bring HPC and176 supercomputers to society, in general, are more common every day. For instance,177 documents [31] and [32] are good examples of research centers opening their178 facilities to the public, to increase the awareness of HPC, supercomputers, and179 science.180 There exists a lack of HPC-related content among the Computer181 Science syllabus.182 There are several previous works in which this fact is also highlighted and183 addressed [33, 34]. The CS degree of UJI is four years long and includes, basic184 training (BT), compulsory (C), and optional (OP) subjects, as well as a final185 degree project (FDP), but the presence of HPC is marginal in the curriculum.186 The set of subjects included in UJI’s Bachelor in CS is described in Table 1. It187 can be observed that only 11 out of 62 subjects include HPC-related content.188 Moreover, three of them are optional, which means that part of the students will189 conclude their studies having dealt with HPC in less than 13% of the subjects.190 Besides, six of the subjects studied during the fourth year correspond to the191 specialty chosen by the student, and the only two that include HPC content192 belong to a single specialty.193 HPC self-learning is complicated.194 Subjects such as “Computer Structure” and “Computer Architecture”, in195 which the basis of HPC are established, typically present the lowest marks196 among the students, and their failure rates are high. Besides, even though197 there exist platforms to supplement conventional lectures [35], or detailed and198 well-described manuals [36], they often turn out to be complex to understand199 2It could happen that an HPC related FDP is developed. However, this is not the most common scenario. 8
Year Type #Subjects #HPC Subjects 1C 9 1 BT 1 1 2C 3 0 BT 7 3 3C 9 1 OP 7 3 4 C 24 2 OP 1 0 FDP21 0 Table 1: Subjects of the UJI’s Bachelor in Computer Science syllabus summarized by year, specifying their type, the total number of subjects which are studied that year, and the number of subjects that include HPC related content (according to those offered in years 2018/2019 and 2019/2020). from the students perspective. Furthermore, a holistic view of HPC requires200 knowledge from different fields that are unlikely taught along with the CS/OE201 syllabus, such as configuring applications setup, or job management. All in all,202 we consider that self-learning HPC can be a challenging endeavor.203 4.1.2. Course goals204 When designing the course, we chose its content to guide the students to205 reach the following main learning objectives:206 •Objective 1: Gain general HPC knowledge. We consider that it is crucial207 to know not only what HPC and supercomputers are, but also what are208 cutting-edge trends in this field.209 •Objective 2: HPC not only in supercomputers. Change their mind about210 thinking of HPC restricted to huge supercomputers that belong to power-211 ful companies. HPC can be carried out on small infrastructures, such as212 a personal computer with dedicated hardware and specific software.213 9
This first part of the course aims to convey the big picture of HPC (Objec-351 tive 1: Gain general HPC knowledge), prove that HPC can be implemented at a352 small-scale (Objective 2: HPC not only in supercomputers), and illustrate which353 are the target applications of HPC (Objetive 4: Where to apply HPC). Thus,354 a global vision of HPC is presented to the students in the context of nowadays355 facilities and systems.356 4.2.2. Step 2: Cluster set-up357 In the second part of the course, the students are grouped in teams of 3-4358 people, and the groups are given the hardware components of the cluster, and359 the student’s guide (see Appendix A). This document describes the necessary360 steps to end up with a fully functional cluster with support for distributed361 computation. In this regard, the cluster set-up is divided into these three parts:362 •Cluster assembly. Each group is in charge of assembling its own cluster363 composed of four Raspberry Pi 3 Model B+ devices (Figure 2 reflects364 a sample of an already assembled cluster). Besides, a switch, the cor-365 responding Ethernet wires, four SD cards, and the power supplies are366 provided.367 Figure 2: A Raspberry Pi cluster assembled during the course. Note that the 3D-printed structure that holds the Raspberry Pi devices is only used for aesthetics purposes. Although the guide has already been handed out, the instructors can pro-368 16
vide tips and short explanations of the hardware components, especially369 describing the Raspberry Pi features. Because of the different students’370 backgrounds or knowledge, with these intermissions, balanced progress371 among groups is pursued, preventing frustration to the less skilled groups,372 or boredom to the most advanced ones.373 •Cluster configuration. The basic software configuration of a cluster com-374 prises the installation of the operating system5, the network configura-375 tion, and the file system set-up. The operating system is pre-installed in376 bootable SD cards handed out to the attendees to save time and not lose377 the perspective of the course. Thus, the students can focus on the most378 relevant steps of the configuration. Once all the components are assem-379 bled, the students configure the network and the shared file system. The380 network configuration is essential to make all the devices work collabo-381 ratively. On the other hand, a shared file system (Network File System,382 NFS [42]) is enabled through the cluster to facilitate access to the files383 within the cluster.384 With more detail, students are driven to complete the next steps:385 –Configure the DHCP service to accept a dynamic IP in the wireless386 network interface of one single node, which will act as the main node387 or front-end. Furthermore, the WiFi interface is set as the front-388 end default gateway. The Ethernet interfaces of all the nodes are389 configured with a static IP.390 –Configure SSH by creating public-private pair of keys in the front-end391 node and then sending the SSH key to the other nodes.392 –Install and configure an NFS server and create a directory in the393 front-end shared with all the nodes. It is highly recommended that,394 at this point, the students check that each node can reach the other395 5We opted for using Raspbian OS [41]. 17
nodes, as well as use the NFS properly. For instance, this can be396 verified by creating a text file located in the shared directory and397 then editing it from different nodes.398 Because part of the listed items takes some time to be downloaded, config-399 ured, and/or installed, that “idle time” is used to explain the correspond-400 ing usage and features to the students.401 •Performance evaluation. To provide a realistic HPC experience, students402 are introduced to some of the most common software used in a supercom-403 puter. For this purpose, students will learn how to compile, install and404 configure:405 –HPL [39], a performance benchmark leveraged to rank the supercom-406 puters in the TOP500 list.407 –LAMMPS [43], a classical application for molecular dynamics mod-408 eling.409 Both applications require the use of the OpenMP programming model [44]410 and Message Passing Interface (MPI) [45] to exploit all the processing el-411 ements in the cluster. OpenMP is natively integrated into the GCC pack-412 age and, consequently, no extra installations are required. However, MPI413 needs to be installed. Concretely, we opted for using MPICH [46], since414 it is one of the most popular open-source libraries employed in nowadays415 clusters, along with OpenMPI [47]. As we presented both MPICH and416 OpenMPI to the students, some thought of installing and comparing both417 implementations, as we will explain in Section 4.2.3.418 The activities proposed for this section are:419 –Configure an execution of HPL to achieve the maximum performance420 of the cluster. (Note that all nodes should be leveraged.)421 –Perform a scalability analysis of LAMMPS using different configura-422 tions of threads and processes.423 18
–After discussing with the students the importance of also leveraging424 threads and not only available nodes, we suggest checking the offi-425 cial website, where the way to configure LAMMPS with OpenMP is426 explained.427 Objective 3: A better grasp of supercomputers and Objective 4: When to use428 HPC are mainly covered during this second part of the course, because the ar-429 chitecture of a supercomputer and how software makes use of its components are430 explained and related. Moreover, by means of running benchmarks and help-431 ing the students to understand the provided performance results, Objective 7:432 Analyze performance is addressed.433 4.2.3. Step 3: Learning on-demand434 Once the cluster is fully functional, the course is planned to have a free hands-435 on section, where the students can put into practice the acquired knowledge436 and/or do research in a specific aspect of their interest, with the help of the437 instructors.438 Although the students can explore any field, they are provided the following439 on-demand ideas as guidance:440 •Performance and frequency tools. This activity aims to widen the441 knowledge about the relationship between performance and energy con-442 sumption, the impact of power consumption on HPC facilities, and which443 tools or strategies can be applied to control these facts. In this regard,444 cpufreq utilities [48] are introduced and tested on their clusters. In this445 way, students can experience the effect of frequency changes on the per-446 formance of executions.447 Furthermore, the activity can be complemented with studies of power con-448 sumption and the associated economic costs on current supercomputers to449 illustrate the relevance of the problem. For instance, instructors can pro-450 vide more information about how performance affects power consumption;451 dynamic and static power, and their interaction.452 19
•Creating a larger cluster. Different teams can decide to merge their453 clusters to scale their resources up to 8, 12, or more nodes.454 The proposed activity requires to reconfigure both the network and the455 distributed file system in order to ensure the appropriate functioning of the456 new cluster. With this first step, the knowledge acquired by following the457 user’s guide was reinforced thanks to reproducing that in a new scenario.458 Once the students check that the new cluster is working correctly, they459 have the opportunity to try different configurations for LAMMPS and460 analyze which of them delivers the best performance.461 •Real-time measuring of the device temperature. Thanks to an462 incorporated sensor on the board, the temperature can be monitored using463 the command vcgencmd measure temp.464 This activity requires developing a script that periodically checks the tem-465 perature. The data acquired is saved for further analysis.466 For instance, Figure 3 shows an actual output of this activity provided by467 one of the groups from the second edition of the course. Concretely, the468 plot reflects the temperature variations along the seconds required to com-469 plete LAMMPS execution setting two different frequencies: 1.40 GHz and470 600 MHz. Through this analysis, the students in the group also checked471 the differences in terms of total execution time when varying the frequency472 (355 seconds with the higher frequency, in contrast to 661 seconds with473 the lower one).474 •Workload management in an HPC system. Many users compete475 for the resources available at the supercomputers. When introducing this476 notion, students are taught that, with workload management software,477 resources and users’ requests are orchestrated. For this purpose, Slurm478 Workload Manager [49] is presented. In this activity, following Slurm’s479 administrator guide and helped by the instructors, students face the in-480 stallation and configuration of Slurm.481 20
Figure 3: Temperature during a LAMMPS execution with different frequencies. Before ending this part, each group is encouraged to briefly share with the482 others their conclusions on the topic explored and the work performed.483 Objective 5: Enjoy the learning process is attained by promoting this free484 hands-on approach. The fact that the students propose the work they want to485 develop during this part of the course lets them feel relaxed (note that the stu-486 dents are not given a final mark at the end of the course) and free to experience487 whatever they feel curious about. Also, Objective 6: Relevance of monitoring488 and Objective 7: Analyze performance are targeted by showcasing the impor-489 tance of monitoring tools and how to understand them.490 However, some activities may take more time than expected and the students491 could not finish them on time. Even in this case, students are encouraged to492 learn the valuable lesson of easier said than done. For instance, in the second493 edition of the course, after installing and configuring Slurm, a team found the494 following error:495 slurmctld: error: High latency for 1000 calls to496 gettimeofday(): 1824 microseconds.497 The solution seemed straightforward for the course purposes: recompile the498 source code increasing the latency tolerance. This is translated into an amount499 of time that is not available in the proposed course. A failed activity can be500 21
considered a very interesting example to reinforce the experience of the exis-501 tent difficulties that HPC system administrators, or users, need to solve, and502 reinforces Objective 8: Real-world HPC experience.503 4.2.4. Step 4: How to use a supercomputer?504 The course wraps up showcasing a real user experience when logging into505 a top-class supercomputer. This activity demonstrates that large-scale systems506 have more complexity than the cluster configured in the course. However, the507 students realize that the cluster philosophy is the same they have learned in508 the course. It is crucial that, before ending the course, students apprehend509 the big-picture of a production supercomputer, since they are likely to be the510 next generation of users, developers, and/or administrators. In this regard, the511 lecturer in charge logs in a production supercomputer via SSH and explains512 that:513 •Unlike the cluster set up in this course, which only has one user and a514 front-end that, in turn, is a compute node, it is usual to have several515 dedicated front-ends to provide fault tolerance while supporting hundreds516 of users interacting with the system simultaneously. For this purpose, the517 lecturer accesses some of the front-ends and counts the logged users at518 that moment with the command w | wc -l.519 •All these users share the supercomputer, but they cannot use the hard-520 ware in their own free will. We introduce here that there is a management521 software responsible for temporarily assigning resources to users. Further-522 more, it is important to note that users have quotas of usage, which limit523 the computation time or disk space that a user can utilize.524 •Resources are not usually idle waiting for us. In production supercomput-525 ers, there is a waiting time before assigning resources to the users’ jobs.526 This time varies depending on how saturated the system is, in other words,527 the number of pending jobs in the queue which are not being executed.528 22
In general terms, jobs requesting more resources for more time experience529 higher pending times.530 •The nodes of the supercomputer do not need to be identical. Supercom-531 puters can be heterogeneous to meet more necessities. In this regard, there532 exist different partitions of hardware for different types of users. Another533 important concept to bear in mind is that there usually exists a partition534 with shared machines that are likely to be assigned earlier to the jobs.535 •The employment of the hardware tends to 100%. For this purpose, we536 show utilization rate statistics through time. These statistics reflect not537 only the constant high utilization but also total and partial outages that538 may indicate maintenance or unexpected failures.539 540 All in all, with this holistic instruction, we are confident that students under-541 stand that what they have done is the cornerstone of an HPC system. Hopefully,542 after leaving the classroom, they will be eager for a second part of the course to543 learn more about jobs, queues, shared resources, or distributed computation.544 A more realistic experience has been given covering Objective 8: Real-world545 HPC experience in this part. This is one of the significant improvements of546 the second edition in contrast to the first one, made thanks to the change of547 format between editions, allowing us to include more material that enriches548 the experience of the attendees by setting them in front of a real cluster in549 production.550 4.3. Evaluation of the curriculum551 The new teaching approach presented in this paper to let students become552 closer to HPC implied risks and challenges. We wanted to be able to judge the553 impact of this “custom-tailored” teaching methodology on students. For this554 purpose, we collected qualitative information at the beginning and the end of555 the course through two anonymous surveys. In this section, the questions of556 23
the surveys are presented, and those related to the impact of the course on the557 attendees are analyzed.558 4.3.1. Initial and final surveys559 The initial and final surveys targeted the potential changes in the attendees’560 knowledge about HPC. Note that, in the second edition of the course, new561 questions were included to better justify some of the observations after the first562 edition. Those questions are marked with the letter “N”.563 We have categorized all students’ survey answers to analyze the impact of564 the course in the short-term (the categories are presented in Figures 4-10). The565 questions were designed to find out how students felt and what they knew about566 HPC before the course, and what was the progress in terms of HPC knowledge567 after it.568 Regarding the surveys, the initial one (IS) consisted of the following ques-569 tions:570 •ISQ1: Why have you signed up for this course?571 •ISQ2: Do you think that HPC has an influence on your day to day?572 •ISQ3: How would you define HPC?573 •ISQ4: What do you think about supercomputers?574 •ISQ5 (N): In which field do you see yourself developing your professional575 career when you finish your studies? (Multi-answers were accepted in this576 question.)577 •ISQ6 (N): Do you believe that HPC could be applied in your desired578 professional career field?579 The final survey (FS) consisted of the following questions:580 •FSQ1: Do you feel more/same/less interested in HPC now?581 •FSQ2: Do you think that HPC influences your day-to-day?582 24
•FSQ3: How would you define HPC?583 •FSQ4: What do you think about supercomputers?584 •FSQ5 (N): In which field do you see yourself developing your professional585 career when you finish your studies?586 •FSQ6 (N): Do you believe that HPC could be applied in your desired587 professional career field?588 •FSQ7 (N): Evaluate (from “0 - Very Bad” to “10 - Excellent”) the quality589 of the theoretical explanations previous to the practical activities.590 •FSQ8 (N): Evaluate (from “0 - Very Bad” to “10 - Excellent”) the empathy591 degree and quality of the help provided during the practical activities592 resolution.593 4.3.2. Results of the surveys594 The already categorized answers collected from the students through the595 surveys are reflected in Figures 5-9. Each plot shows the Initial (IS) and Final596 Survey (FS) answers to a given question (specified in the title). Data is shown597 in full colored bars (for IS) and line-filled bars (for FS), including Computer598 Science (CS) students in blue and Other Engineering (OE) students in red.599 Differentiation between the first and the second edition answers is made using,600 respectively, darker and lighter color-schemes.601 Next, we analyze those survey questions that refer to the curriculum evalu-602 ation (Questions 1 to 4, and Question 6). In general, results show that students603 increase their awareness about HPC in daily life. Moreover, they show good604 comprehension of usual terms in the HPC field. The main conclusions extracted605 from the curriculum evaluation are now highlighted. The remaining questions606 (regarding the course evaluation) are addressed in Section 5.607 There exists a lack of HPC knowledge among Engineering stu-608 dents.609 25
good or excellent for certain students during the theoretical explanations was705 compensated afterward during the practical section of the course. Thus, we706 consider that the theoretical explanations should be kept as they prevent 1) the707 risk of losing the attention of CS students with too basic explanations, and 2)708 reducing the on-demand time slot because of providing longer explanations.709 Students’ original professional interests are kept, but now HPC is710 considered in those contexts.711 We can observe in Figure 10 that future professional interests are very dif-712 ferent from one to other students, and taking the course does not modify their713 preferences. However, Figure 8 reflects that, after the course, fewer students714 consider HPC is not applicable in their field or ignore how, and more believe715 that they could use it, although most express they would (naturally) need to716 improve their skills to be able to apply it.717 0 1 2 3 4 5 6 7 8 9 10 IS FS IS FS IS FS IS FS IS FS IS FS IS FS Web/mobile apps development Computer Science projects management Robotics Systems and/or networks administration Computer simulations Data science Others Number of students Answers Q5 - In which field do you see yourself developing your professional career when you finish your studies? CS (2nd ed.) OE (2nd ed.) 0 1 2 3 4 5 6 7 8 9 10 IS FS IS FS IS FS IS FS IS FS IS FS IS FS IS FS IS FS No, because I am not studying CS No, I don't want to continue in STEM related fields Yes, but I am not sure how No, becaue I don't believe it has direct impact in the society No, because I don't know companies related to HPC No, because there aren't HPC related subjects in my curricula Yes, but I 'd need to learn or improve my HPC knowledge I know what is done in HPC, but I like other areas more Of course I do. Number of students Answers Q6 - Do you believe that HPC could be applied in your desired professional career field? CS (2nd ed.) OE (2nd ed.) 0 2 4 6 8 10 12 14 16 18 20 FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) Deficient Good Very good Excellent Number of students Evaluation Q7 & Q8 - Quality and empathy evaluation CS (2nd ed.) OE (2nd ed.) Not at all Not much Some influence Quite influence Absolutely 0 1 2 3 4 5 6 Number of students Impact/Influence Follow-up questionnaire answers Formation selection (1st ed.) Formation selection (2nd ed.) Education/profession (1st ed.) Education/profession (2nd ed.) Figure 10: Answers of ISQ5 and FSQ5. Note that multiple answers where accepted for Q5. For us, it is very important to ensure and remark that acquiring basic HPC718 knowledge does not modify their professional interest, but enriches their per-719 spective of how HPC can be employed to improve several applications, even720 though they belong to very different fields.721 Low interest in HPC among women.722 After the two editions of the course, we observe a low number of women723 applying to it. We consider the main reason is the fact that the number of724 32
female students in the degrees which this course was offered is reasonably low,725 and consequently this imbalance is also naturally present in the course. The726 latest data regarding the number of women enrolling in STEM degrees in the727 university where the course took place [52] show that female students represent728 only 11%. In the first edition, female applicants were 7.7% (2 out of 26), while729 in the second edition were 10.5% (5 out of 48). Consequently, the number of730 female applicants seems to be consistent with the existing number of female731 students in these fields.732 On the other hand, the number of final attendees does not keep consistent733 between both editions. While in the first edition the selected woman attended734 the course, in the second one none of them finally participated. We consider735 that we do not have enough information to make a strong statement about the736 reasons that lead to these results. In future editions, more information will be737 gathered regarding female interest.738 One-day vs. two-day course.739 One of the main differences between the first and second editions of the740 course was its time distribution; the first edition was split into two days of five741 hours each, while the second edition was carried out in one day for ten hours.742 This change in the format of the course was because the exam period was close743 by. Before the second edition of the course was published, we guessed that744 fewer students would apply because it was taking place on Saturday (a non-745 school day), and the personal effort from students would be greater, spending746 all day in the workshop. Surprisingly, quantitative results did not differ much747 from the previous edition. However, we consider them qualitatively better after748 analyzing the following three aspects:749 •The number of applicants raised significantly from the previous edition to750 the second, going from 26 to 48.751 •The number of applicants belonging to CS or OE slightly varied between752 the two editions. In the first edition, 58% of the applicants were from CS,753 while this percentage in the second edition turned to be 50%.754 33
•The number of attendees who enrolled in the course versus the number of755 them that finished it was similar. In the first edition, 11% of the attendees756 dropped the course before its end. In the second edition, this amount rose757 to 15%.758 The interest in the course increased drastically from one edition to the next759 one. There could be different reasons for that, but we consider that the previous760 knowledge about the course existence, together with offering it during a non-761 school day, has made an important difference.762 Regarding the major of the applicants, similar numbers are obtained in both763 editions. In the first edition, CS students seemed to be a bit more interested764 than in the second one. We see this fact as another evidence that HPC is a765 transverse field that is widely used by many different sciences and engineering766 nowadays. Consequently, students from all areas may be interested in it.767 The dropout rate is similar in both editions, being a bit higher in the second.768 We think that this may be caused by the duration of the course. Spending 10769 hours on a day may be difficult for some of the attendees that may have other770 obligations to take care of.771 In terms of the course contents, we observed a remarkable difference that772 was very satisfying from our point of view. In contrast to the first edition,773 in the second one, some of the students that progressed faster thanks to their774 previous CS knowledge were able to experiment and develop more activities (see775 Section 4.2.3). This was especially observable during the on-demand phase and776 gives a non-negligible value that, in our humble opinion, enriches the students’777 experience a lot. For this reason, we are determined to keep offering the course778 in this “whole day experience” format instead of splitting it into two sessions.779 6. FOLLOW-UP: IMPACT OF ATTENDING THE COURSE780 In the first quarter of the year 2021 (respectively two and three years af-781 ter the first and second edition), the authors sent a short questionnaire to the782 34
participants of both editions of the course to follow-up on the impact and in-783 fluence of attending it. The questionnaire was composed of two questions that784 the students rated from 0 (“Not at all”) to 10 (“Absolutely”):785 •Did attending the course influence any subsequent training choices? For786 example, in the selection of specialization pathways for undergraduate787 studies, or specific training courses.788 •Do you think that the training obtained in the course has any impact on789 the field in which you are currently studying or working?790 Figure 11 reports the questionnaire answers, showing in orange the influence791 over posterior training selection by the attendees, and in green, the impact in792 their current studies and/or the professional environment; the light tonalities793 refer to the first edition and darker tones to the second one.794 am not studying CS want to continue in STEM related fields not sure how don't believe it has direct impact in the society don't know companies related to HPC there aren't HPC related subjects in my curricula need to learn or improve my HPC knowledge is done in HPC, but I like other areas more do. Answers 0 2 4 6 8 10 12 14 16 18 20 FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) FSQ7 (N) FSQ8 (N) Deficient Good Very good Excellent Number of students Evaluation Opinion regarding the theoretical explanations (Q7) and the practical experience (Q8) CS (2nd ed.) OE (2nd ed.) Not at all Not much Some influence Quite influence Absolutely 0 1 2 3 4 5 6 Number of students Impact/Influence Follow-up questionnaire answers Training selection (1st ed.) Training selection (2nd ed.) Education/profession (1st ed.) Education/profession (2nd ed.) Figure 11: Answers of the follow-up questionnaire. In total, 12 students out of 38, answered the follow-up survey. Three of795 them attended the first edition, which means that only 16% of that edition796 members are represented; the other nine answers belong to students from the797 35
second edition, which is a much more representative opinion, reflecting 45%798 of the original attendance. Most of the students lose or stop checking their799 university email inbox when they conclude their studies, and that can be the800 reason why some of them did not reply.801 In general, there is a moderate influence of the course attendance over train-802 ing selection and a high impact of the acquired skills in the studies and/or803 professional development. The lack of HPC content in the engineering syllabus804 (already explained in this paper) can be the reason why the attendees did not805 vary much in their afterward training selection, as there are not many options806 related to what they learned in the course. However, as it was also stated in the807 introduction, nowadays engineering-related professions often require generalist808 HPC knowledge, and that is reflected in the high impact of the course HPC809 apprenticeship in the attendees’ education and/or profession.810 The already mentioned low representation of the first edition can justify811 the polarized opinions, while a most representative scope like that regarding812 the second edition homogenizes the data and is closer to what can be observed813 globally without differentiating editions. For this reason, we consider that the814 main conclusion that can be extracted regarding the different editions is that815 the attendees of the second one show a clear impact on the course in terms of816 training selection and mostly regarding educational/professional development.817 7. CONCLUSIONS818 HPC necessity and importance are unquestionable, and we have realized819 that there is a lack of related content in the engineering syllabus of the UJI,820 particularly in CS subjects. Motivated students and an increasing necessity of821 HPC knowledge in the job market, moved us to propose the course. Combining822 the “hands-on” experience and the “on-demand” approach works in favor of823 creativity and motivation, and results show that the students valued positively824 those aspects. Regarding HPC skills and knowledge, it is seen that the number825 of students that define appropriately HPC and supercomputer has increased.826 36
On the other hand, the number of students that show more interest in HPC827 raises after the course.828 In terms of motivating the students, employing Raspberry Pi devices and829 giving them some freedom to experiment (in our case, through the “on-demand”830 part of the course) has been largely positive and has helped to achieve the831 objectives. In fact, the use of Raspberry Pi attracted the attention of the832 students to enroll in the course. Moreover, offering a single-day course instead833 of splitting it into two afternoons helps to maintain their interest. This new834 format eases the understanding while linking all the new concepts we present.835 Besides, it facilitates to dedicate more time to the “on-demand” section, as no836 recaps are needed, and fewer questions regarding previously explained things837 are asked. It is also remarkable the higher number of activities that the most838 advanced groups can experience on the cluster, as no extra reboots or extra839 reconfigurations are done due to restarting everything one day after.840 Regarding the students’ awareness about HPC and its applicability in the841 real world, we can conclude that it has increased. Students know more about842 the impact of HPC on daily life after the course. Moreover, students seem more843 confident about the possibility of applying HPC in their fields, although their844 professional interests have not changed after the course.845 Finally, we can conclude that the course had an impact not only in the short-846 term but also in the mid-/long-term. The follow-up questionnaire results show847 that, in some cases, attendees chose HPC-related subjects and courses after the848 proposed course. Moreover, a reasonable percentage of them are applying their849 HPC knowledge in their current job or field of study.850 Notice that these conclusions are extracted from a small population, so they851 may be less accurate in a scaled-up environment. However, the course could852 not be carried out with more students due to the tight budget available for this853 activity.854 37
8. FUTURE WORK855 We are satisfied with the results derived from completing the course and will856 offer subsequent editions of it. We plan to look for funding from technological857 companies so we can include a small competition at the end of the course in858 which a general challenge is proposed, following the spirit of student cluster859 competitions.860 Moreover, we are working on including Slurm installation and usage, as well861 as defining an extended collection of HPC applications arising from the different862 students’ specific fields of interest.863 Considering the current health crisis due to COVID and the limitations we864 are experiencing in terms of planning in-person courses, it is unavoidable for us865 to think of designing an extension that allows us to run everything virtually.866 Although the hands-on is one of the highlights of this course, the new pandemic867 situation is affecting and will possibly affect further editions, so we believe it868 is worth putting a big effort into designing ways to still allow this “hands-on”869 (though virtual) and maintaining the degree of freedom the students get in this870 course, which derives from the “on-demand” approach.871 One of the authors’ concerns is promoting HPC not only in university en-872 vironments but also in high schools. We believe that teenagers would earlier873 discover CS in general and HPC in particular through experiencing a properly874 adapted version of this course. As a consequence, their corresponding perspec-875 tive could be more adjusted to reality and less limited than nowadays. We also876 consider that discovering and experiencing CS at earlier ages could increase in-877 terest in this field among girls, and hopefully contribute to reducing the gender878 imbalance.879 Lastly, we are also considering coupling all the materials that make this880 course possible and publishing them (extended with complementary explana-881 tions, exercises, and developments) in book format.882 38
Acknowledgment883 The researcher Sandra Catal´an was supported by MICINN under the project884 Heterogeneidad y Especializaci´on en la Era Post-Moore, RTI2018-093684-B-885 I0. Roc´ıo Carratal´a-S´aez was supported by projects CICYT TIN2014-53495-886 R and TIN2017-82972-R of MINECO and FEDER, project UJI-B2017-46 of887 UJI, and the FPU program of MECD. Sergio Iserte was supported by a post-888 doctoral fellowship from Valencian Region Government and European Social889 Fund, APOSTD/2020/026. This course was possible thanks to the funding pro-890 vided by the High Performance Computing and Architectures Research Group891 (HPC&A), and Computer Science Department (DICC) from UJI. The authors892 also want to thank the anonymous reviewers of the work presented in [1], whose893 comments were very helpful to enrich the course. Likewise, authors appreciate894 the anonymous reviews and suggestions of the current manuscript which helped895 to improve the quality of the paper.896 [1] R. Carratal´a-S´aez, S. Iserte, S. Catal´an, Teaching on Demand: an HPC897 Experience, in: Proceedings of EduHPC 2019: Workshop on Education898 for High Performance Computing - Held in conjunction with SC19: The899 International Conference for High Performance Computing, Networking,900 Storage and Analysis, 2019, pp. 32–41.901 [2] G. V. Wilson, A glossary of parallel computing terminology, IEEE Concur-902 rency (out of print) 1 (01) (1993) 52–67. doi:10.1109/88.219862.903 [3] HPC Wiki, https://hpc-wiki.info/hpc/HPC-Dictionary, accessed: March904 2021.905 [4] HPC Glossary (The University of Tennessee),906 https://www.nics.tennessee.edu/hpc-glossary, accessed: March 2021.907 [5] HPC Glossary of Terms (Pomona College),908 https://www.pomona.edu/administration/hpc/access-guidelines/glossary,909 accessed: March 2021.910 39
[6] J. Saffran, G. Garcia, M. A. Souza, P. H. Penna, M. Castro, L. F. W. G´oes,911 H. C. Freitas, A low-cost energy-efficient raspberry pi cluster for data min-912 ing algorithms, in: F. Desprez, P.-F. Dutot, C. Kaklamanis, L. Marchal,913 K. Molitorisz, L. Ricci, V. Scarano, M. A. Vega-Rodr´ıguez, A. L. Var-914 banescu, S. Hunold, S. L. Scott, S. Lankes, J. Weidendorfer (Eds.), Euro-915 Par 2016: Parallel Processing Workshops, Springer International Publish-916 ing, Cham, 2017, pp. 788–799.917 [7] M. F. Cloutier, C. Paradis, V. M. Weaver, A raspberry pi cluster in-918 strumented for fine-grained power measurement, Electronics 5 (4). doi:919 10.3390/electronics5040061.920 URL https://www.mdpi.com/2079-9292/5/4/61921 [8] W. Hajji, F. P. Tso, Understanding the performance of low power raspberry922 pi cloud for big data, Electronics 5 (2). doi:10.3390/electronics50200923 29.924 URL https://www.mdpi.com/2079-9292/5/2/29925 [9] K. Doucet, J. Zhang, Learning cluster computing by creating a raspberry pi926 cluster, in: Proceedings of the SouthEast Conference, ACM SE ’17, Asso-927 ciation for Computing Machinery, New York, NY, USA, 2017, p. 191–194.928 doi:10.1145/3077286.3077324.929 URL https://doi.org/10.1145/3077286.3077324930 [10] A. Mappuji, N. Effendy, M. Mustaghfirin, F. Sondok, R. P. Yuniar, S. P.931 Pangesti, Study of raspberry pi 2 quad-core cortex-a7 cpu cluster as a932 mini supercomputer, in: 2016 8th International Conference on Information933 Technology and Electrical Engineering (ICITEE), 2016, pp. 1–4. doi:934 10.1109/ICITEED.2016.7863250.935 [11] A. Lasserre, R. Namyst, P.-A. Wacrenier, Easypap: a framework for learn-936 ing parallel programming, in: EduPar-20: 10th NSF/TCPP Workshop937 on Parallel and Distributed Computing Education (EduPar-20), 2020, pp.938 276–283.939 40
[12] L. Marzulo, C. Bianchini, L. Santiago, V. Ferreira, B. Goldstein, F. Fran¸ca,940 Teaching high performance computing through parallel programming941 marathons, in: 2019 IEEE International Parallel and Distributed Process-942 ing Symposium Workshops (IPDPSW), 2019, pp. 296–303.943 [13] S. Prasad, K. Kant, Y. Robert, A. Chtchelkanova, S. Das, A. La Salle,944 R. Le Blanc, A. Rosenberg, F. Dehne, M. Lumsdaine, S. Sahni, M. Gouda,945 D. Padua, B. Shirazi, A. Gupta, M. Parashar, A. Sussman, J. Jaja,946 V. Prasanna, C. Weems, J. Wu, Nsf/ieee-tcpp curriculum initiative on947 parallel and distributed computing - core topics for undergraduates, in:948 SIGCSE’11 - Proceedings of the 42nd ACM Technical Symposium on Com-949 puter Science Education, SIGCSE’11 - Proceedings of the 42nd ACM950 Technical Symposium on Computer Science Education, 2011, pp. 617–951 618, 42nd ACM Technical Symposium on Computer Science Education,952 SIGCSE 2011 ; Conference date: 09-03-2011 Through 12-03-2011. doi:953 10.1145/1953163.1953336.954 [14] V. Holmes, I. Kureshi, Developing High Performance Computing Resources955 for Teaching Cluster and Grid Computing Courses, Procedia Computer956 Science 51 (2015) 1714–1723.957 [15] P. L´opez, E. Baydal, Teaching high-performance service in a cluster com-958 puting course, Journal of Parallel and Distributed Computing 117 (2018)959 138–147.960 [16] A. A. Datti, H. A. Umar, J. Galadanci, A Beowulf Cluster for Teaching961 and Learning, Procedia Computer Science 70 (2015) 62–68.962 [17] T. Sterling, T. Sterling, D. J. Becker, D. Savarese, J. E. Dorband, U. A.963 Ranawake, C. V. Packer, Beowulf: A Parallel Workstation For Scientific964 Computation, in Proceedings of the 24th International Conference on Par-965 allel Processing 1 (1995) 11—-14.966 [18] L. Alvarez, E. Ayguade, F. Mantovani, Teaching HPC Systems and Parallel967 41
–192.168.0.4 node41103 •Reboot the device and generate SSH keys typing ssh-keygen.1104 •Configure SSH in the other nodes, from node1 by repeating three times1105 (substituting Xby 2, 3, and 4):1106 –ssh-copy-id nodeX1107 –scp /etc/hosts nodeX:1108 –ssh nodeX sudo mv hosts /etc/hosts1109 •Update the system (sudo apt-get update) and install NFS server by1110 typing sudo apt-get install nfs-kernel-server.1111 •Create a shared directory:1112 –sudo mkdir /SHARED1113 –sudo chmod 777 /SHARED1114 –Modify the file /etc/exports by adding:1115 ∗/SHARED node2(rw, sync, no subtree check)1116 ∗/SHARED node3(rw, sync, no subtree check)1117 ∗/SHARED node4(rw, sync, no subtree check)1118 –sudo exportfs -a1119 •Make the shared directory accessible for the other nodes (these steps can1120 be done by entering each node using SSH, and need to be done three1121 times):1122 –sudo mkdir /SHARED1123 –sudo chmod 777 /SHARED1124 –Modify the file /etc/fstab by adding node1:/SHARED /SHARED nfs1125 –sudo mount -a1126 48
Appendix A.5. Install OpenMPI1127 •Download OpenMPI from open-mpi.org.1128 •Decompress downloaded files.1129 •Configure OpenMPI by typping ./configure --prefix=/SHARED/OpenMPI1130 --enable-mpirun-prefix-by-default.1131 •Install it by typing make && make install.1132 •Only in node1, modify the file bash.rc by adding export PATH=/SHARED/openmpi/bin:$PATH.1133 •Update bash.rc in the remaining nodes by typping scp .bashrc nodeX:.1134 •It is recommended to check that OpenMPI has been successfully installed1135 by running mpiexec hostname.1136 Appendix A.6. Alternatively, to check different performance rates, MPICH can1137 also be installed following these steps:1138 •Download MPICH from https://www.mpich.org/.1139 •Decompress downloaded files.1140 •Configure it by typping ./configure --prefix=/SHARED/mpich --disable-f771141 --disable-fc --disable-fortran.1142 •Install it by typing make && make install.1143 •Only in node1, modify the file bash.rc by adding export PATH=/SHARED/mpich:$PATH.1144 •Update bash.rc in the remaining nodes by typping scp .bashrc nodeX:.1145 Appendix A.7. Install LINPACK1146 In order to install, configure and execute LINPACK, students are encourage1147 to follow the LINPACK installation guide, and so they get familiar with follow-1148 ing an installation guide by themselves and facing system administrators issues.1149 However, instructors will help them with the use of configuration wizards such1150 as https://www.advancedclustering.com/act kb/tune-hpl-dat-file or1151 http://hpl-calculator.sourceforge.net.1152 49
Appendix A.8. Install LAMMPS1153 In the case of LAMMPS installation, students are led to use the official1154 user guide. Furthermore, apart from installing the basic version of LAMMPS,1155 students are also motivated to go further and install the OpenMP extensions1156 from https://lammps.sandia.gov/doc/Build extras.html#user-omp.1157 With LAMMPS building versions (MPI and OpenMP) students will be1158 asked to carry out the scalability and performance evaluation using different1159 approaches such as threads, processes and their combination.1160 50