605.617.81 - Introduction to GPU Programming

Computer Science
Spring 2023

Description

This course will teach the fundamentals needed to utilize the ever-increasing power of the GPUs housed in the video cards attached to our computers. For years, this capability was limited to the processing of graphics data for presentation to the user. With the CUDA and OpenCL frameworks, programmers can develop applications that harness this power directly to search, modify, and quickly analyze large amounts of various types of data. Students will be introduced to core concurrent programming principles, along with the specific hardware and software considerations of these frameworks. In addition, students will learn canonical algorithms used to perform high-precision mathematics and data transformations. Class time will be split between lectures and hands-on exercises. There will be two individual projects in both CUDA and OpenCL programming, which will allow students to independently choose demonstrable goals, develop software to achieve those goals, and present the results of their efforts.

Expanded Course Description

This course will teach the fundamentals needed to utilize the ever-increasing power of the GPUs housed in the video cards attached to our computers. For years, this capability was limited to the processing of graphics data for presentation to the user. With the CUDA and OpenCL frameworks, programmers can develop applications that harness this power directly to search, modify, and quickly analyze large amounts of various types of data. Students will be introduced to core concurrent programming principles, along with the specific hardware and software considerations of these frameworks. In addition, students will learn canonical algorithms used to perform high-precision mathematics and data transformations. Class time will be split between lectures and hands-on exercises. There will be a semester-long project in either CUDA or OpenCL programming, which will allow students to independently choose demonstrable goals, develop software to achieve those goals, and present the results of their efforts. 

Instructor

Profile photo of Chance Pascale.

Chance Pascale

cpascal3@jhu.edu

Course Structure

The course materials are divided into modules which can be accessed by clicking Course Modules on the left menu. A module will have several sections including the overview, content, readings, discussions, and assignments. You are encouraged to preview all sections of the module before starting. Most modules run for a period of seven (7) days, exceptions are noted in the Course Outline. You should regularly check the Calendar and Announcements for assignment due dates. 

Course Topics


Course Goals

To identify and describe the characteristics and responsibilities of a functional group supervisor and then apply that knowledge to prepare group plans and analyze and solve both project and personnel problems in a semester long management simulation in a fictitious company. 

To provide students familiar with various programming languages the ability to develop a variety of programs that harness the power of Graphics Processing Units.  The course will use the CUDA architecture and OpenCL frameworks and students will explore them in hands-on laboratory and homework assignments, along with a semester-long project in one of these.  All aspects of the class will cover hardware/software capabilities, programming constructs, and canonical processes and algorithms 

Course Learning Outcomes (CLOs)

Textbooks

There are no required textbooks for the course. While The CUDA Handbook will be referenced in video and other course material, it is no longer being published and is not available through the bookstore. As such, you may buy a book elsewhere and it may help you understand some topics not covered in the course. Nothing expressed in these books is required and any material that was used from them has been adapted to work independent of any code or text that they provide.

Other Materials & Online Resources

Students can use services such as Amazon Web Services, Microsoft Azure, and Google Cloud to develop assignments and course projects, but unless otherwise directed by the instructor, students will be responsible for costs associated with these resources.

Required Software

Student Coursework Requirements

It is expected that each module will take approximately 7–10 hours per week to complete. Here is an approximate breakdown: Exploring outside sources on related topics (approximately 3–4 hours per week) for deeper understanding of module topics and assistance with specific technical issues/capabilities, listening to the audio annotated slide presentations (approximately 2–3 hours per week), and writing assignments (approximately 2–3 hours per week). 

This course will consist of the following basic student requirements: 

Preparation and Participation (20% of Final Grade Calculation) 

You are responsible for carefully reading all assigned material and being prepared for discussion. The majority of readings are from the course text. Additional reading may be assigned to supplement text readings. 

Post your initial response to the discussion questions by the evening of day 4 for that module week. Posting a response to the discussion question is part one of your grade for module discussions (i.e., Timeliness). 

Part two of your grade for module discussion is your interaction (i.e., responding to classmate postings with thoughtful responses) with at least two classmates (i.e., Critical Thinking). Just posting your response to a discussion question is not sufficient; we want you to interact with your classmates. Be detailed in your postings and in your responses to your classmates' postings. Feel free to agree or disagree with your classmates. Please ensure that your postings are civil and constructive. 

I will monitor module discussions and will respond to some of the discussions as discussions are posted. In some instances, I will summarize the overall discussions and post the summary for the module. 

Evaluation of preparation and participation is based on contribution to discussions. Preparation and participation is evaluated by the following grading elements: 

  1. Timeliness (50%) 
  2. Critical Thinking (50%) 

Preparation and participation is graded as follows: 

Assignments (40% of Final Grade Calculation) 

Assignments will include a mix of qualitative assignments and quantitative problem sets.  Include a cover sheet with your name and assignment identifier. Also include your name and a page number indicator (i.e., page x of y) on each page of your submissions. Each problem should have the problem statement, assumptions, computations, and conclusions/discussion delineated. All Figures and Tables should be captioned and labeled appropriately. 

All assignments are due according to the dates in the Calendar. 

Late submissions will be reduced by one letter grade for each week late (no exceptions without prior coordination with the instructors). 

If, after submitting a written assignment you are not satisfied with the grade received, you are encouraged to redo the assignment and resubmit it. If the resubmission results in a better grade, that grade will be substituted for the previous grade. 

Qualitative assignments are evaluated by the following grading elements: 

  1. Each part of question is answered (20%) 
  2. Writing quality and technical accuracy (30%) (Writing is expected to meet or exceed accepted graduate-level English and scholarship standards. That is, all assignments will be graded on grammar and style as well as content.) 
  3. Rationale for answer is provided (20%) 
  4. Examples are included to illustrate rationale (15%) (If you do not have direct experience related to a particular question, then you are to provide analogies versus examples.) 
  5. Outside references are included (15%) 

Qualitative assignments are graded as follows: 

Quantitative assignments are evaluated by the following grading elements: 

  1. Each part of question is answered (20%) 
  2. Assumptions are clearly stated (20%) 
  3. Intermediate derivations and calculations are provided (25%) 
  4. Answer is technically correct and is clearly indicated (25%) 
  5. Answer precision and units are appropriate (10%) 

Quantitative assignments are graded as follows: 

Course Project (40% of Final Grade Calculation) 

A course project will be assigned several weeks into the course. The last week will be devoted to the course project. 

The course project is evaluated by the following grading elements: 

  1. Student preparation and participation (as described in Course Project Description) (60%) 
  2. Student technical understanding of the course project topic (as related to individual role that the student assumes and described in the Course Project Description) (40%) 

Course Project is graded as follows: 

Grading Policy

Assignments are due according to the dates posted in course site. You may check these due dates in the Course Calendar/Syllabus or the Assignments in the corresponding modules. I will post grades one week after assignment due dates. 

We generally do not directly grade spelling and grammar. However, egregious violations of the rules of the English language will be noted without comment. Consistently poor performance in either spelling or grammar is taken as an indication of poor written communication ability that may detract from your grade. 

A grade of A indicates achievement of consistent excellence and distinction throughout the course—that is, conspicuous excellence in all aspects of assignments and discussion in every week. 

A grade of B indicates work that meets all course requirements on a level appropriate for graduate academic work. These criteria apply to both undergraduates and graduate students taking the course. 

EP uses a +/- grading system (see “Grading System”, Graduate Programs catalog, p. 10). You should contact your Program Chair for guidance on the breakdown used by your program. 


Final grades will be determined by the following weighting: 

Item 

% of Grade 

Preparation and Participation 

  • Class Discussion: 10%  
  • Perform a Code Review: 5% 
  • Participate in two other students’ Code Reviews: 5% 

20% 

Assignments 

40% 

Course Project 

  • Project Code – 20% 
  • Project Report – 10%  
  • Project Presentation – 10%  

40% 

Academic Policies

Deadlines for Adding, Dropping and Withdrawing from Courses

Students may add a course up to one week after the start of the term for that particular course. Students may drop courses according to the drop deadlines outlined in the EP academic calendar (https://ep.jhu.edu/student-services/academic-calendar/). Between the 6th week of the class and prior to the final withdrawal deadline, a student may withdraw from a course with a W on their academic record. A record of the course will remain on the academic record with a W appearing in the grade column to indicate that the student registered and withdrew from the course.

Academic Misconduct Policy

All students are required to read, know, and comply with the Johns Hopkins University Krieger School of Arts and Sciences (KSAS) / Whiting School of Engineering (WSE) Procedures for Handling Allegations of Misconduct by Full-Time and Part-Time Graduate Students.

This policy prohibits academic misconduct, including but not limited to the following: cheating or facilitating cheating; plagiarism; reuse of assignments; unauthorized collaboration; alteration of graded assignments; and unfair competition. Course materials (old assignments, texts, or examinations, etc.) should not be shared unless authorized by the course instructor. Any questions related to this policy should be directed to EP’s academic integrity officer at ep-academic-integrity@jhu.edu.

Students with Disabilities - Accommodations and Accessibility

Johns Hopkins University values diversity and inclusion. We are committed to providing welcoming, equitable, and accessible educational experiences for all students. Students with disabilities (including those with psychological conditions, medical conditions and temporary disabilities) can request accommodations for this course by providing an Accommodation Letter issued by Student Disability Services (SDS). Please request accommodations for this course as early as possible to provide time for effective communication and arrangements.

For further information or to start the process of requesting accommodations, please contact Student Disability Services at Engineering for Professionals, ep-disability-svcs@jhu.edu.

Student Conduct Code

The fundamental purpose of the JHU regulation of student conduct is to promote and to protect the health, safety, welfare, property, and rights of all members of the University community as well as to promote the orderly operation of the University and to safeguard its property and facilities. As members of the University community, students accept certain responsibilities which support the educational mission and create an environment in which all students are afforded the same opportunity to succeed academically. 

For a full description of the code please visit the following website: https://studentaffairs.jhu.edu/policies-guidelines/student-code/

Classroom Climate

JHU is committed to creating a classroom environment that values the diversity of experiences and perspectives that all students bring. Everyone has the right to be treated with dignity and respect. Fostering an inclusive climate is important. Research and experience show that students who interact with peers who are different from themselves learn new things and experience tangible educational outcomes. At no time in this learning process should someone be singled out or treated unequally on the basis of any seen or unseen part of their identity. 
 
If you have concerns in this course about harassment, discrimination, or any unequal treatment, or if you seek accommodations or resources, please reach out to the course instructor directly. Reporting will never impact your course grade. You may also share concerns with your program chair, the Assistant Dean for Diversity and Inclusion, or the Office of Institutional Equity. In handling reports, people will protect your privacy as much as possible, but faculty and staff are required to officially report information for some cases (e.g. sexual harassment).

Course Auditing

When a student enrolls in an EP course with “audit” status, the student must reach an understanding with the instructor as to what is required to earn the “audit.” If the student does not meet those expectations, the instructor must notify the EP Registration Team [EP-Registration@exchange.johnshopkins.edu] in order for the student to be retroactively dropped or withdrawn from the course (depending on when the "audit" was requested and in accordance with EP registration deadlines). All lecture content will remain accessible to auditing students, but access to all other course material is left to the discretion of the instructor.