Skip to content

Instantly share code, notes, and snippets.


Elliot Saba staticfloat

View GitHub Profile
View lldb.log
$ lldb -- /Users/administrator/src/julia-releases/usr/bin/julia -C "apple-a12" --output-ji /Users/administrator/src/julia-releases/usr/lib/julia/corecompiler.ji.tmp --startup-file=no --warn-overwrite=yes -g0 -O0 compiler/compiler.jl
(lldb) target create "/Users/administrator/src/julia-releases/usr/bin/julia"
Current executable set to '/Users/administrator/src/julia-releases/usr/bin/julia' (arm64).
(lldb) settings set -- "-C" "apple-a12" "--output-ji" "/Users/administrator/src/julia-releases/usr/lib/julia/corecompiler.ji.tmp" "--startup-file=no" "--warn-overwrite=yes" "-g0" "-O0" "compiler/compiler.jl"
(lldb) r
Process 40975 launched: '/Users/administrator/src/julia-releases/usr/bin/julia' (arm64)
Process 40975 stopped
* thread #1, queue = '', stop reason = EXC_BAD_ACCESS (code=2, address=0x1034000c0)
frame #0: 0x000000019f1c2860 libsystem_platform.dylib`sys_icache_invalidate + 52
View output.log
$ julia-master --project --threads=auto flux_multithreaded_training.jl
[ Info: Warming up Flux.train!()
ERROR: LoadError: AssertionError: i == j
[1] _try_static
@ ~/.julia/packages/SimpleChains/mTIEp/src/simple_chain.jl:213 [inlined]
[2] _try_static
@ ~/.julia/packages/SimpleChains/mTIEp/src/simple_chain.jl:231 [inlined]
[3] maybe_static_size_arg
@ ~/.julia/packages/SimpleChains/mTIEp/src/simple_chain.jl:286 [inlined]
View flux_multithreaded_training.jl
using Flux, Printf, Statistics
# Simple model
function gen_model()
return Chain(
Dense(8, 8, σ),
Dense(8, 8, σ),
Dense(8, 8, σ),
Dense(8, 1, σ),
staticfloat /
Created Nov 4, 2021
Helper script to find a treehash in a git repository
if [[ -z "$1" ]]; then
echo "Usage: git-find-treehash <treehash>" >&2
exit 1
commits=$(git log --pretty='%H %T' $commithash | grep $1 | awk '{print $1}')
if [[ -n "${commits}" ]]; then
echo "Found at commits: $commits"
exit 0
staticfloat / parse_dump.jl
Last active Sep 14, 2021
rr dump analyzer script
View parse_dump.jl
using UnicodePlots, Printf
# Dump file generated by `rr dump`
dump_file = ARGS[1]
if !isfile(dump_file)
error("Invalid dump file $(dump_file)")
@info("Parsing $(dump_file)....")
View MKLPrefsExample.jl
module MKLPrefsExample
using Preferences, Libdl
# Choose an MKL provider; taking an explicit preference as the first choice,
# but it nothing is set as a preference, fall back to an environment variable,
# and if that is not given, fall back to the default choice of `MKL_jll`.
const mkl_provider = something(
@load_preference("mkl_provider", nothing),
get(ENV, "MKL_PROVIDER", nothing),
View Manifest.toml
# This file is machine-generated - editing it directly is not advised
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
View Makefile
build: dgesv_accelerate dgesv_openblas
dgesv_accelerate: dgesv.c
clang -o $@ -DDGESV=dgesv $< -framework Accelerate
mkdir -p $@
lib/libgfortran.dylib: | lib
curl -L | tar -zxv lib/libg*.dylib
lib/libopenblas.dylib: lib/libgfortran.dylib | lib
View output.log
dtrace: system integrity protection is on, some features will not be available
PID/THRD SYSCALL(args) = return
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with clang version 9.0.1 (/home/staticfloat/.julia/dev/BinaryBuilder/deps/downloads/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05)
configuration: --enable-cross-compile --cross-prefix=/opt/x86_64-apple-darwin14/bin/x86_64-apple-darwin14- --arch=x86_64 --target-os=darwin --cc=cc --cxx=c++ --dep-cc=cc --ar=ar --nm=nm --objcc=objc --sysinclude=/workspace/destdir/include --pkg-config=/usr/bin/pkg-config --pkg-config-flags=--static --prefix=/workspace/destdir --sysroot=/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/sys-root --extra-libs=-lpthread --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --enable-pic --disable-debug --disable-doc --enable-avresample --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264
View Project.toml
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"