• IEEE.org
  • IEEE CS Standards
  • Career Center
  • About Us
  • Subscribe to Newsletter

0

IEEE
CS Logo
  • MEMBERSHIP
  • CONFERENCES
  • PUBLICATIONS
  • EDUCATION & CAREER
  • VOLUNTEER
  • ABOUT
  • Join Us
CS Logo

0

IEEE Computer Society Logo
Sign up for our newsletter
FacebookTwitterLinkedInInstagramYoutube
IEEE COMPUTER SOCIETY
About UsBoard of GovernorsNewslettersPress RoomIEEE Support CenterContact Us
COMPUTING RESOURCES
Career CenterCourses & CertificationsWebinarsPodcastsTech NewsMembership
BUSINESS SOLUTIONS
Corporate PartnershipsConference Sponsorships & ExhibitsAdvertisingRecruitingDigital Library Institutional Subscriptions
DIGITAL LIBRARY
MagazinesJournalsConference ProceedingsVideo LibraryLibrarian Resources
COMMUNITY RESOURCES
GovernanceConference OrganizersAuthorsChaptersCommunities
POLICIES
PrivacyAccessibility StatementIEEE Nondiscrimination PolicyIEEE Ethics ReportingXML Sitemap

Copyright 2025 IEEE - All rights reserved. A public charity, IEEE is the world’s largest technical professional organization dedicated to advancing technology for the benefit of humanity.

  • Home
  • /Publications
  • /Tech News
  • /Research
  • Home
  • / ...
  • /Tech News
  • /Research

Teaching Parallel Computing with Python: Strategies and Lessons

By IEEE Computer Society Team on
March 29, 2023

Teaching Parallel Computing and Dependence Analysis With PythonTeaching Parallel Computing and Dependence Analysis With PythonNeftali Watkinson, Aniket Shivam, Alexandru Nicolau, and Alexander V. Veidenbaum, all of the Department of Computer Science, University of California, Irvine, dove into the importance of teaching parallel computing to computer science students and the challenges of using languages with high levels of abstraction, such as Python. They used a lesson plan that uses data dependence analysis and loop transformations to teach parallel computing to Python programming students.

A 3-Session Series


The researchers’ work included three sessions to guide the students through their Python journey.

Lecture 1

This lecture introduced NumPy, a Python package for scientific computing, and its optimization possibilities. The concept of parallel computing was then introduced, including concurrency and vector instructions (SIMD), along with Python’s Global Interpreter Lock (GIL), which blocked automatic parallel execution and multithreading of Python code. Students learned about the threading and multiprocessing libraries, and that multiprocessing was the best option for exposing local parallelism on multi-core architectures due to the GIL.


Want More Tech News? Subscribe to ComputingEdge Newsletter Today!


Lecture 2

The second lecture covered data dependencies between statements and focused on three types of dependence relations. Three loop transformation techniques were also introduced, including loop distribution, loop interchange, and loop chunking. The lecture demonstrated an easily parallelizable function that computed the Sobel image filter for edge detection using the multiprocessing package for implementing parallelism in Python.

Practical Session

This session provided students with hands-on experience doing loop transformations in the computer lab. Examples and templates for implementing multiprocessing were provided, and students were asked to apply each transformation to a loop nest and try to run multiprocessing to measure performance improvement using Python’s time module. The goal was to successfully transform and optimize the code using multiprocessing to achieve the best possible performance.

Next Steps


The researchers plan to circumvent the drawbacks of using Python for parallel computing by implementing libraries that the students can import into their projects. These will allow for automatic dependence analysis that they can use to verify their transformations and for a more streamlined implementation of multiprocessing. This will enable instructors to focus on the high-level aspects of parallel computing without having to delve too deep into technical details.

Check out the full paper today to learn more.

LATEST NEWS
CV Template
CV Template
A History of Rendering the Future with Computer Graphics & Applications
A History of Rendering the Future with Computer Graphics & Applications
AI Assisted Identity Threat Detection and Zero Trust Access Enforcement
AI Assisted Identity Threat Detection and Zero Trust Access Enforcement
Resume Template
Resume Template
IEEE Reveals 2026 Predictions for Top Technology Trends 
IEEE Reveals 2026 Predictions for Top Technology Trends 
Get the latest news and technology trends for computing professionals with ComputingEdge
Sign up for our newsletter
Read Next

CV Template

A History of Rendering the Future with Computer Graphics & Applications

AI Assisted Identity Threat Detection and Zero Trust Access Enforcement

Resume Template

IEEE Reveals 2026 Predictions for Top Technology Trends 

7 Best Practices for Secure Software Engineering in 2026

Muzeeb Mohammad: IEEE Computer Society Leader in Cloud Tech

Setting the Standard: How SWEBOK Helps Organizations Build Reliable and Future-Ready Teams