Skip to content

Instantly share code, notes, and snippets.

View reikdas's full-sized avatar
🤓
Hacking

Pratyush Das reikdas

🤓
Hacking
View GitHub Profile
@reikdas
reikdas / git_branch_dependence.py
Created January 9, 2026 19:52
Show the dependence tree of remote git branches (clone repo and run this script inside)
#!/usr/bin/env python3
import subprocess
import sys
from collections import defaultdict
def get_branches(include_local=False):
"""Get branches in the repository."""
branches = []
@reikdas
reikdas / gsocreport.md
Last active August 23, 2021 01:48
GSoC Report: INTEGRATE CUSTOM DERIVATIVES OF NUMERICAL COMPUTING ROUTINES LIKE BLAS INTO ENZYME

INTEGRATE CUSTOM DERIVATIVES OF NUMERICAL COMPUTING ROUTINES LIKE BLAS INTO ENZYME

Deliverables of the summer:

  • An LLVM pass that inlines definitions of functions into the LLVM IR source code.
  • Enzyme AdjointGenerator being able to use existing CBLAS functions to calculate the derivative of a CBLAS function.

BCPass

The BCPass is a non-Enzyme specific LLVM pass that currently resides in the Enzyme GitHub repository.