Skip to content

Instantly share code, notes, and snippets.

View leowrites's full-sized avatar

Leo leowrites

View GitHub Profile
@leowrites
leowrites / psych_study_data.js
Last active April 16, 2026 00:13
PSY100 Study App
/* Auto-generated from all_terms + psych_study_v2.html */
(function () {
window.PSY100_SOURCE = {
"chapterOrder": [
"Intro",
"Methods",
"Biological Psychology",
"Sensation & Perception",
"Lifespan Development",
"Learning",
import torch
import triton
import triton.language as tl
@triton.jit
def get_marlin_metadata_offset(
row_idx, col_idx,
meta_ncols
):
dst_row = row_idx // 16
module load apptainer cuda; cp -r /scratch/leoliu/image/triton /localscratch/leoliu.48071193.0; cp -r /scratch/leoliu/image/triton-image.sif /localscratch/leoliu.48071193.0;
Using singularity
apptainer exec --fakeroot --nv --bind /scratch/leoliu/image/triton:/data /localscratch/leoliu.48071193.0/triton-image.sif ncu --set full --target-processes all -f -k tiled_kernel -o /scratch/leoliu/results/a100_profiling /home/tritonuser/venv/bin/python /data/python/tutorials/sparse/tiled.py
INFO: User not listed in /etc/subuid, trying root-mapped namespace
INFO: Using fakeroot command combined with root-mapped namespace
==PROF== Connected to process 1544039 (/usr/bin/python3.10)
==PROF== Target process 1544089 terminated before first instrumented API call.
==PROF== Target process 1544090 terminated before first instrumented API call.
==ERROR== An error was reported by the driver