Skip to content

Instantly share code, notes, and snippets.

View ccoulombe's full-sized avatar

Charles Coulombe ccoulombe

  • Calcul Québec - DRAC - UseGalaxy.ca
  • Québec
View GitHub Profile
#!/usr/bin/env python3
import argparse, os
# Preferred minimal interval
DEFAULT_SECONDS = 601
which='/cvmfs/soft.computecanada.ca/gentoo/2023/x86-64-v3/usr/bin/watch'
parser = argparse.ArgumentParser(description="execute a program periodically, showing output fullscreen", add_help=False)
parser.add_argument('-n', '--interval', type=float, default=DEFAULT_SECONDS)
args, unknown = parser.parse_known_args()
@ccoulombe
ccoulombe / cubench.md
Last active July 18, 2025 15:44
cubin vs fatbin

With no cuda jit cache

========================= 1 run
cubin:  real	0m3.553s
fatbin: real	0m4.106s
=========================
========================= 10 runs
cubin  real	0m38.732s
fatbin real	0m44.738s