Skip to content

Instantly share code, notes, and snippets.

View SomeoneSerge's full-sized avatar
💭
Completely swamped again

Someone SomeoneSerge

💭
Completely swamped again
View GitHub Profile
@SomeoneSerge
SomeoneSerge / zmq-pub.ipynb
Last active March 6, 2023 20:19
Storing BLOBs in sqlite; random access, full dataset traversal, random shuffle, image decoding overhead, overhead for streaming over the network
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{ pkgs, ... }:
{
# ...
nix.settings.system-features = [ "expose-cuda" ];
nix.settings.pre-build-hook = pkgs.writers.writePython3 "nix-pre-build.py" { } (builtins.readFile ./nix-pre-build-hook.py);
# ...
}
{
description = "A very basic flake";
outputs = { self, nixpkgs }: {
devShells.x86_64-linux.default = with nixpkgs.legacyPackages.x86_64-linux; mkShell {
shellHook = ''
read FLAKE_ROOT < <(
${lib.getExe nix} flake metadata --json | ${lib.getExe jq} .locked.path --raw-output
)
for prefix in Target Host; do
for cross in true false; do
for case in Good Bad; do
outName=test${case}${prefix}_cross=${cross}
nix build -f test-hooks.nix --argstr depSet "$prefix$prefix" --arg cross "$cross" "test$case" -o "$outName"
nix log -f test-hooks.nix --argstr depSet "$prefix$prefix" --arg cross "$cross" "test$case" > "$outName".log
diff -s -u5 testGoodTarget_cross=true.log "$outName".log > "$outName.diff"
done
done
done