In order to successfully complete this assignment you need to participate both individually and in groups during class. Have one of the instructors check your notebook and sign you out before leaving class.
ICA 6: Which Langague is the fastest?#
Image from: https://cacm.acm.org/news/230374-report-python-closes-in-on-c/fulltext
Agenda for today’s class (70 minutes)#
(20 minutes) Review HW1 results
(30 minutes) Timeing Comparison
(20 minutes) Introduction to Homework 2
1. Review HW1 results#
As a class we will go over the homework.
Most common lagnagues:
Python
C++
Matlab / Julia / Fortran
Question: Which language is the fastest?
Question: What costs more? Human time or Computer time?
Question: How do you make Python go faster?
2. Timing Comparison#
Log onto the HPCC and do a git pull
on the CMSE401 git repository. This should create a new folder called WAVE_COMP
.
In the WAVE_COMP
folder are the following solutions to the Wave equation.
C
CSHARP
FORTRAN
JAVA
MATLAB
PYTHON
As a class we will split up these solutions, get them to run and do a timing study for each.
Put results in our timing file: Timing Studies
DETAILED INSTRUCTIONS#
Log onto the HPCC
Log onto a dev-node (Lets try to get different people on different nodes).
Do a
git pull
of the class repositoryCompile the example assigned by the instructor (Keep track of your instructions to share with the class)
Run 10 timing runs on your node and report the results
Be prepared to share your compile instructions and results with the class.
3. Introduction to Homework 2#
Homework 2 will be posted today and will be due Sunday, February 23rd. You will be exploring shared memory parallelism in image edge detection problems.
Congratulations, we’re done!#
Have one of the instructors check your notebook and sign you out before leaving class. Remember to turn in your assignment using D2L.
Written by Dr. Dirk Colbry, Michigan State University (Updated by Dr. Nathan Haut in Spring 2025)
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.