Skip to content

Instantly share code, notes, and snippets.

View crazyboycjr's full-sized avatar
🎯
Focusing

Jingrong Chen crazyboycjr

🎯
Focusing
  • Duke University
  • Durham, NC
  • 00:16 (UTC -05:00)
View GitHub Profile
@crazyboycjr
crazyboycjr / gist:8f6dd053b5c2d2fbff2806fca72d2aa2
Created June 24, 2022 01:11
Alpa runlog, invalid memory access
(alpa-torch) cjr@ip-172-31-33-99 ~/nfs/alpa-torch-software/alpa (git)-[main] % python3 tests/test_install.py
.compile_pipeshard_executable::trace: 0.97 s
compile_pipeshard_executable::jaxpr operations: 0.00 s
compile_pipeshard_executable::stage construction: 0.00 s
compile_pipeshard_executable::apply grad: 0.00 s
compile_pipeshard_executable::shard stages: 1.69 s
compile_pipeshard_executable::launch meshes: 0.72 s
compile_pipeshard_executable::driver executable: 29.27 s
(MeshHostWorker pid=6134, ip=172.31.39.47) memory_allocated: -0.000 GB max_memory_allocated: -0.000 GB next instruction: Opcode: RUN, Task uuid: 8, Info: allocate zero for recv
(MeshHostWorker pid=6134, ip=172.31.39.47) memory_allocated: -0.000 GB max_memory_allocated: -0.000 GB next instruction: Opcode: RUN, Task uuid: 2, Info: stage 0
@crazyboycjr
crazyboycjr / display_backtrace.sh
Created August 23, 2022 02:00
Display backtrace
#!/bin/bash
# Usage: scripts/display_backtrace.sh build/rpc-bench /tmp/stderr.log
if [ $# -ne 2 ]; then
echo "Usage: $0 <entry> <backtrace_file>"
exit 0
fi
ENTRY=$1
FILE=$2
addr2line -f -C -p -e $ENTRY `cat $FILE | egrep -o '\+0x[^)]+' | tr '\n' ' '`
@crazyboycjr
crazyboycjr / PKGBUILD
Last active October 4, 2022 04:53
tinc-latest-PKGBUILD
# Maintainer: hexchain <i at hexchain dot org>
# Maintainer: crazyboycjr <[email protected]>
pkgname=tinc-pre
pkgver=latest
pkgrel=1
pkgdesc="VPN (Virtual Private Network) daemon (Pre-release)"
arch=(i686 x86_64 armv7h armv6h)
url="http://www.tinc-vpn.org/"
license=('GPL')
@crazyboycjr
crazyboycjr / build-plan.json
Created March 7, 2023 00:49
phoenix example build-plan
{
"invocations": [
{
"package_name": "ansi_term",
"package_version": "0.12.1",
"target_kind": [
"lib"
],
"kind": null,
"compile_mode": "build",