-
Notifications
You must be signed in to change notification settings - Fork 61
Add personal and project details for GSoC 2025 #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,6 +310,28 @@ | |
proposal: /assets/docs/de_la_torre_gonzalez_salvador_proposal_gsoc_2025.pdf | ||
mentors: Vassil Vassilev, Lukas Breitwieser | ||
|
||
- name: Abdelrhman Elrawy | ||
photo: Abdelrhman.jpg | ||
info: "Google Summer of Code 2025 Contributor" | ||
email: [email protected] | ||
education: "Master of Applied Computing, Wilfrid Laurier University, Canada" | ||
github: "https://github.com/a-elrawy" | ||
active: 1 | ||
linkedin: "https://www.linkedin.com/in/elrawy/" | ||
projects: | ||
- title: "Support usage of Thrust API in Clad" | ||
status: Ongoing | ||
description: | | ||
This project enhances Clad, a Clang-based automatic differentiation tool, | ||
by enabling it to support NVIDIA's Thrust library for GPU-parallel programming. | ||
The goal is to implement custom derivative rules for Thrust primitives like | ||
`thrust::transform` and `thrust::reduce`, making it possible to differentiate | ||
high-performance CUDA code automatically. This work bridges the gap between | ||
automatic differentiation and GPU acceleration, enabling efficient gradient | ||
computations in scientific computing and machine learning workloads. | ||
proposal: /assets/docs/Abdelrhman_Elrawy_Proposal_GSoC_2025.pdf | ||
mentors: Vassil Vassilev, Alexander Penev | ||
|
||
- name: "This could be you!" | ||
photo: rock.jpg | ||
info: See <a href="/careers">openings</a> for more info | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Compiler Research - Team - Abdelrhman Elrawy" | ||
layout: gridlay | ||
excerpt: "Compiler Research: Team members" | ||
sitemap: false | ||
permalink: /team/AbdelrhmanElrawy | ||
email: [email protected] | ||
--- | ||
|
||
{% include team-profile.html %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: "Supporting Thrust API in Clad" | ||
layout: post | ||
excerpt: "This summer, I am working on adding support for Thrust API in Clad, enabling automatic differentiation of GPU-accelerated code. This work bridges the gap between high-performance CUDA parallelism and source-to-source AD transformation." | ||
sitemap: false | ||
author: Abdelrhman Elrawy | ||
permalink: blogs/gsoc25_/ | ||
banner_image: /images/blog/gsoc-banner.png | ||
date: 2025-05-18 | ||
tags: gsoc llvm clang automatic-differentiation gpu cuda thrust | ||
--- | ||
|
||
## About Me | ||
|
||
Hi! I’m Abdelrhman Elrawy, a graduate student in Applied Computing specializing in Machine Learning and Parallel Programming. I’ll be working on enabling **Thrust API support in Clad**, bringing GPU-accelerated parallel computing to the world of automatic differentiation. | ||
|
||
## Project Description | ||
|
||
[Clad](https://github.com/vgvassilev/clad) is a Clang-based tool for source-to-source automatic differentiation (AD). It enables gradient computations by transforming C++ code at compile time. | ||
|
||
However, many scientific and machine learning applications leverage **NVIDIA’s Thrust**, a C++ parallel algorithms library for GPUs, and currently, Clad doesn’t support differentiating through Thrust constructs. This limits the usability of Clad in high-performance CUDA code. | ||
|
||
My project addresses this gap by enabling Clad to: | ||
|
||
- Recognize and handle Thrust primitives like `thrust::transform` and `thrust::reduce` | ||
- Implement **custom pullback/pushforward rules** for GPU kernels | ||
- Ensure gradients maintain **parallel performance and correctness** | ||
- Benchmark and validate derivatives in real-world ML and HPC use cases | ||
|
||
## Technical Approach | ||
|
||
The project begins with a **proof-of-concept**: manually writing derivatives for common Thrust operations like `transform` and `reduce`. These are compared against finite differences to validate correctness. | ||
|
||
Following that, I’ll integrate custom differentiation logic inside Clad, building: | ||
- A `ThrustBuiltins.h` header for recognizing Thrust calls | ||
- Visitor pattern extensions in Clad’s AST traversal (e.g., `VisitCallExpr`) | ||
- GPU-compatible derivative utilities (e.g., CUDA-aware `thrust::fill`, `transform`) | ||
|
||
I'll also implement **unit tests**, real-world **mini-apps** (e.g., neural networks), and **benchmarks** to validate and demonstrate this feature. | ||
|
||
## Expected Outcomes | ||
|
||
By the end of GSoC 2025, Clad will be able to: | ||
- Differentiate through key Thrust primitives with GPU execution preserved | ||
- Provide documentation and tutorials for GPU-based automatic differentiation | ||
- Contribute a robust test suite and benchmarks to the Clad ecosystem | ||
|
||
## Related Links | ||
|
||
- [Clad GitHub](https://github.com/vgvassilev/clad) | ||
- [Project description](https://hepsoftwarefoundation.org/gsoc/2025/proposal_Clad-ThrustAPI.html) | ||
- [My GitHub](https://github.com/a-elrawy) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run this file through some online pdf optimization tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done