Webgpu: a Scalable Online Development Platform for GPU Programming Courses

Webgpu: a Scalable Online Development Platform for GPU Programming Courses

WebGPU: A Scalable Online Development Platform for GPU Programming Courses Abdul Dakkak Carl Pearson and Wen-mei Hwu Department of Computer Science Department of Electrical and Computer Engineering University of Illinois at Urbana-Champaign University of Illinois at Urbana-Champaign Urbana, USA Urbana, USA [email protected] fpearson, [email protected] Abstract—The popularity of computer science classes offered material that explains the concepts and programming tech- through Massive Open On-line Courses (MOOCs) creates both niques for mapping algorithms into GPU programs that opportunities and challenges. Programming-based classes need architecture and tools available. Similar materials was de- to provide consistent development infrastructures that are both scalable and user friendly to students. The “Heterogeneous veloped as single-core, multi-core, and distributed program- Parallel Programming” class offered through Coursera teaches ming matured. GPU programming and encountered these problems. We de- All GPU curriculum requires students to access systems veloped WebGPU – an online GPU development platform – with GPUs for programming assignments. There are three providing students with a user friendly scalable GPU comput- key challenges to overcome when providing such systems ing platform throughout the course. It has been used as the CUDA, OpenACC, and OpenCL programming environment for a MOOC: for large Coursera courses, short-running summer schools, and • Number of students and student-educator ratio. The traditional semester-long graduate and undergraduate courses. environment cannot fall back on student/educator in- WebGPU has since replaced our traditional development in- teraction (it must “just work”). frastructure for the GPU classes offered at UIUC. This paper • Variable computing capabilities available to students: presents the original, revised, and upcoming WebGPU designs that address the requirements and challenges of offering few students will have GPUs for local development or sophisticated computing resources to a large, quickly-varying low-latency internet connections. number of students. • Decrease in participating students as time passes: Only Keywords-GPU; CUDA; OpenCL; OpenACC; massive open 3:15%, see table I, of registered students in 2015 online courses; programming education; online education completed the full course. For traditional courses, development environments are I. INTRODUCTION provided to students through loaner systems, computer An emerging trend in post-secondary education is the labs, and/or educational/research clusters. These systems are availability of massive open online courses (MOOCs). These not practical for delivering development environments in courses are typically free for students to enter and consist of a MOOC setting. Loaner systems and computer labs are video lectures, quizzes, problems, and exams delivered over inaccessible to remote students, and providing access to the internet and consumed through a standard web browser. a cluster ultimately requires over-provisioning of hardware Delivering programming education this way comes with a (and therefore the cost). Furthermore, it is impossible to specific challenge: a student must have access to the required expect a consistent student GPU development environment. programming tools and environments. WebGPU explores an efficient solution to these chal- Exploiting the performance available in graphics pro- lenges. It is a scalable online GPU programming environ- cessing units (GPUs) has become fundamental in mak- ment accessible though the web. By removing access to ing large data-parallel computations tractable. Extracting fully-featured system environment and developing targeted the performance from GPUs generally requires using a labs, WebGPU simplifies management without unduly im- bulk-synchronous programming language like OpenCL or pacting educational capability. The number of GPUs avail- NVIDIA’s CUDA and understanding architectural details. able through WebGPU can be dramatically fewer than the As a result, more students and professionals are seeking expected number of concurrent users, and can be dynami- learning resources for GPU computing. The University of cally scaled as the course participation changes. Illinois at Urbana-Champaign (UIUC) has developed course The rest of this paper is organized as follows. Section II describes the challenges of providing computing resources This work was supported by the Starnet Center for Future Architecture for MOOCs. Section III describes the system architecture Research (C-FAR), NVIDIA GPU Center of Excellence at UIUC, and the of WebGPU, with emphasis on security and scalability. Sec- NSF Blue Waters Award (0725070). The authors would also like to thank the Coursera community TAs that tion IV describes how the instructors and students interact helped during the Heterogeneous Parallel Programming course offerings. with WebGPU. Section V describes some of the courses that Table I WebGPU has been used to deliver. Section VI describes REGISTERED USERS, COMPLETION RATES, AND ISSUED CERTIFICATES some lessons learned in the development and deployment FOR THE THREE YEARS THAT HETEROGENEOUS PARALLEL of WebGPU and an improved architecture design. Finally, PROGRAMMING HAS BEEN OFFERED THROUGH COURSERA. CERTIFICATION MEANS THAT THE STUDENT ATTENDED A PROCTORED section VIII concludes. QUIZ. II. MOOC CHALLENGES AND WEBGPU APPROACH Year Registered Users Completions Completion Rate Certificates Issued 2013 36896 2729 7.40% - Between 2002 and 2011, online enrollment in degree- 2014 33818 1061 3.14% 286 2015 35940 1141 3.15% 442 granting post-secondary institutions grew at an annual rate of 17:3%, from 1:6 million to 6:7 million students. At the same time, the total enrollment in the same institutions grew 2) Computer Labs: Machines may be set up for student at an annual rate of 6:7% This reflects the broad agreement use in a fixed location. The student typically must be that online education is an important and sustainable part of physically present to use one of these workstations, pedagogy, useful to students, and online degrees are accepted and they are shared with other students. in the workplace [1, pp.14-18]. 3) Educational/Research Cluster: Typical use takes MOOCs take the idea of online education to its farthest place through a submission queuing system, where extent: fully-online classes with large enrollments, often programs are submitted and scheduled onto cluster without geographic restriction or requirements of prior ad- nodes based on their resource requirements and max- mission into an academic institution. This presents three imum run time. challenges when delivering programming education online. The first two solutions are logistically impossible for a A. Large Course Enrollments MOOC with global students. Remote cluster access seems like a plausible solution: clusters are already designed to Large enrollment causes management challenges that are support many concurrent remote users. Clusters are shared not unique to MOOCs: a large course enrollment requires resources with particular OS and compiler versions that often a large staff of educators to effectively administer the are not compatible with the devices used in a structure GPU course. In traditional courses with enrollments of hundreds programming course. Also, the cost of provisioning of tens of students, there might be a single lecturer and a dozen of thousands of users on an academic cluster is high. teaching assistants. Large MOOCs like Duke University’s In place of a command-line prompt, WebGPU requires Think Again [17] have tens or hundreds of thousands of a web browser, making it accessible to all students partici- active students. Providing a traditional teaching staff for a pating in the course. Any operating system and computing free course of this size is cost-prohibitive. WebGPU tackles device may be used – in fact, around 2% of student logins this problem by taking advantage of being a completely- to WebGPU are from tablets and smartphones. This also online development environment to reduce the amount of reduces the support required of the educators; when bugs do supported capabilities exposed to the students. Furthermore, arise, educators can apply the fix by updating the website. WebGPU provides automated grading of the programming assignments to reduce the load on the teaching staff. C. Participation Reduces as Course Progresses B. Variable Access to Computational Resources As with other MOOCs, participation in the course de- creases as time goes on. Jordan [11] finds that the average The problem of large course enrollments is compounded MOOC completion rate is 15%. For the Heterogeneous Par- in programming courses, which require development tools allel Programming Coursera course offered using WebGPU, and environments as well as potentially specialized hard- completion rates are shown in Table I. ware. Assuming all students will have access to the tools and This means that a statically-provisioned computing re- hardware and use them in a consistent way is not practical. source large enough for the beginning of the course will MOOCs are not the only courses where this is a challenge – be mostly idle by the end of the course once many students in traditional academic contexts an instructor often devotes have left. WebGPU builds on the cloud computing principle the initial lectures and labs to describe the development and handles this challenge through a modular architecture environment and tools. that

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us