Skip to content

Instantly share code, notes, and snippets.

View staticfloat's full-sized avatar

Elliot Saba staticfloat

View GitHub Profile
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
[deps]
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"
#!/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
@staticfloat
staticfloat / blas.jl
Last active September 16, 2022 15:21
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)
$ 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 November 10, 2020 00:07
Bukdu.jl performance test
# 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"
using Statistics
using DataFrames
using CSV
using GZip
using CodecZlib
using BenchmarkTools
function load(filename, lib)
local decompressed
if lib == "GZip.jl"
#!/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
[["C:\cygwin\tmp\depot\scratchspaces\93485645-17f1-6f3b-45bc-419db53815ea\1.0.0"]]
time = 2020-08-12T22:53:45.662Z
parent_projects = ["C:\cygwin\tmp\jl_vYyXpV\ScratchUsage\Project.toml"]
[["C:\cygwin\tmp\depot\scratchspaces\93485645-17f1-6f3b-45bc-419db53815ea\1"]]
time = 2020-08-12T22:53:45.748Z
parent_projects = ["C:\cygwin\tmp\jl_vYyXpV\ScratchUsage\Project.toml"]
[["C:\cygwin\tmp\depot\scratchspaces\00000000-0000-0000-0000-000000000000\GlobalSpace"]]
time = 2020-08-12T22:53:45.748Z
parent_projects = ["C:\cygwin\tmp\depot\environments\v1.6\Project.toml"]
@staticfloat
staticfloat / find_module.jl
Created August 12, 2020 19:20
Julia snippet that recursively searches imported modules to find if a certain module is being imported anywhere.
modules(m::Module) = ccall(:jl_module_usings, Any, (Any,), m)
function find_mod(m::Module, name::Symbol, prefix::String="", cache::Set{Module}=Set{Module}())
if m ∈ cache
return
end
push!(cache, m)
for n in nameof.(modules(m))
@info("$(prefix)$(m): $(n)")
if n == name
@warn("Found $name at $(prefix)$(m)")