Skip to content

Instantly share code, notes, and snippets.

Avatar

Elliot Saba staticfloat

View GitHub Profile
@staticfloat
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)")
end
@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
[[ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
[[Artifacts]]
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
View Makefile
build: dgesv_accelerate dgesv_openblas
dgesv_accelerate: dgesv.c
clang -o $@ -DDGESV=dgesv $< -framework Accelerate
lib:
mkdir -p $@
lib/libgfortran.dylib: | lib
curl -L https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases/download/CompilerSupportLibraries-v0.4.3%2B0/CompilerSupportLibraries.v0.4.3.aarch64-apple-darwin-libgfortran5.tar.gz | 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
[deps]
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"
View getjulia
#!/usr/bin/env bash
OS=$(uname)
ARCH="$(uname -m)"
get_julia_url() {
local VERSION=${1}
local MAJMIN="${VERSION%.*}"
if [[ "$OS" == "Linux" ]]; then
if [[ "$ARCH" == "x86_64" ]]; then
View blas.jl
include("util.jl")
# First, do OpenBLAS64 vs. OpenBLAS32 testing (should be about the same)
BLAS.lbt_forward(OpenBLAS_jll.libopenblas_path; clear=true)
BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
config = BLAS.get_config()
@show gemm_test(3000, 64)
@show gemm_test(3000, 32)
View terminal.log
$ docker exec -ti linux-aarch64-aws_3_linux-aarch64-aws_3_1 /bin/bash
buildworker@e89dcad794f7:/buildworker$ M=0; while true; do dd if=/dev/zero bs=1k count=1 2>/dev/null; M=$(($M+1)); echo -en "\r$M KB" 1>&2; done | sleep 999
4 KB
^C
buildworker@e89dcad794f7:/buildworker$ exit
docker exec -ti linux-aarch64-aws_3_linux-aarch64-aws_3_1 /bin/bash took 00:45:07 [130]
aarch64bot1:~ ubuntu [23:32:53]$ docker exec -ti linux-aarch64-aws_2_tabularasa-linux-aarch64-aws_2_1 /bin/bash
buildworker@e9db32e19313:/buildworker$ cat /proc/sys/fs/pipe-max-size
1048576
buildworker@e9db32e19313:/buildworker$ M=0; while true; do dd if=/dev/zero bs=1k count=1 2>/dev/null; M=$(($M+1)); echo -en "\r$M KB" 1>&2; done | sleep 999
@staticfloat
staticfloat / Manifest.toml
Last active Nov 10, 2020
Bukdu.jl performance test
View Manifest.toml
# This file is machine-generated - editing it directly is not advised
[[Artifacts]]
deps = ["Pkg"]
git-tree-sha1 = "c30985d8821e0cd73870b17b0ed0ce6dc44cb744"
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
version = "1.3.0"
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"