Skip to content

Instantly share code, notes, and snippets.

View LunNova's full-sized avatar
🌐
worldbuilding in progress

Luna LunNova

🌐
worldbuilding in progress
View GitHub Profile
Building 144 packages
.#alex .#arion .#autosubst2 .#aws-spend-summary .#bench .#bintools-unwrapped .#binutils-unwrapped .#binutils-unwrapped-all-targets .#binutils-unwrapped_2_38 .#bruijn .#buildah-unwrapped .#busybox .#busybox-sandbox-shell .#cabal-install .#cabal2nix-unwrapped .#cachix .#changelog-d .#client-ip-echo .#clisp .#cornelis .#darcs .#dclock .#dconf2nix .#dhall .#dhall-bash .#dhall-docs .#dhall-json .#dhall-lsp-server .#dhall-nix .#dhall-nixpkgs .#dhall-yaml .#echidna .#elm2nix .#elmPackages.elm .#elmPackages.elm-format .#emanote .#faustPhysicalModeling .#fffuu .#fourmolu .#fpc .#futhark .#gawk .#gawkInteractive .#gcc-unwrapped .#gccForLibs .#ghc .#ghcid .#git-annex .#git-brunch .#gitit .#glibc .#glibc_memusage .#glirc .#hadolint .#happy .#haskell-ci .#hci .#hercules-ci-agent .#hinit .#hledger .#hledger-iadd .#hledger-interest .#hledger-ui .#hledger-web .#hlint .#hpack .#hscolour .#iconv .#idrisPackages.idris-no-deps .#jacinda .#json2yaml .#kexec-tools .#kind-lang .#kmonad .#koka .#krank .#lambdab
# Building https://github.com/LunNova/nixpkgs/blob/ad384653a6094ad6460ee2c10a01fc42a252038a/pkgs/development/rocm-modules/6/aotriton/default.nix
https://cache.nixos.org/hqr05ly7gm93gasdqmxsgmyin0bdkq86.narinfo
https://cache.nixos.org/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm.narinfo
structuredAttrs is enabled
Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/sj81yw7mqagddvxbhcl2bk6m1rs6v43k-source
source root is source
separate-debug-info: recording checksum of source files for debug support...
@LunNova
LunNova / broken-ra.rs
Created July 6, 2025 02:27
failed attempt at using rust-analyzer to map macro expansion to original lines in a project. always gets no items in macro expansion
[dependencies]
# HIR analysis - use consistent versions
ra_ap_hir = "0.0.289"
ra_ap_base_db = "0.0.289"
ra_ap_hir_def = "0.0.289"
ra_ap_hir_expand = "0.0.289"
ra_ap_ide_db = "0.0.289"
ra_ap_load-cargo = "0.0.289"
ra_ap_paths = "0.0.289"
// Claude Code found this file hanging out in a project and had this to say:
// FIXME: This entire file is cursed unsafe wizardry that needs investigation!
// - Uses very unsafe transmute tricks with MaybeUninit that might be UB
// - Has two different make_owned implementations for unclear reasons
// - Liberal use of unreachable_unchecked()
// - Unclear if this is even used anywhere or just abandoned experimental code
// - The replace_with() function looks particularly unsound
// Rest of the file sadly by past!LunNova. I don't remember what I was trying to do and it seems like a mess.
// ... we already have CoW why did I make this
no-screen boot has USB C power and has no display
screen boot is unplugged and works
--- dmesg-no-screen.log 2025-03-27 08:54:36.483875142 -0700
+++ dmesg-screen.log 2025-03-27 08:54:54.849459200 -0700
@@ -158,8 +158,8 @@
ITS@0x0000000017040000: Devices Table too large, reduce ids 32->19
ITS@0x0000000017040000: Devices too large, reduce ITS pages 1024->256
ITS@0x0000000017040000: allocated 131072 Devices @880300000 (indirect, esz 8, psz 4K, shr 1)
-ITS@0x0000000017040000: allocated 4096 Interrupt Collections @88026a000 (flat, esz 1, psz 4K, shr 1)
-GICv3: using LPI property table @0x0000000880290000
ck::BlockwiseGemmXdlops_pipeline_v3<ck::BlockGemmPipelineScheduler::Intrawave, 256, unsigned short, unsigned short, unsigned short, float, ck::TensorDescriptor<ck::Tuple<ck::UnMerge<ck::Tuple<ck::integral_constant<int, 2>, ck::integral_constant<int, 1>, ck::integral_constant<int, 28>, ck::integral_constant<int, 32>, ck::integral_constant<int, 1>, ck::integral_constant<int, 8>>, false>, ck::PassThrough<ck::integral_constant<int, 2>>, ck::PassThrough<ck::integral_constant<int, 1>>, ck::Xor<ck::Tuple<ck::integral_constant<int, 28>, ck::integral_constant<int, 32>>, true>, ck::PassThrough<ck::integral_constant<int, 1>>, ck::PassThrough<ck::integral_constant<int, 8>>, ck::PassThrough<ck::integral_constant<int, 2>>, ck::PassThrough<ck::integral_constant<int, 1>>, ck::UnMerge<ck::Tuple<ck::integral_constant<int, 4>, ck::integral_constant<int, 7>>, false>, ck::UnMerge<ck::Tuple<ck::integral_constant<int, 1>, ck::integral_constant<int, 32>>, false>, ck::PassThrough<ck::integral_constant<int, 1>>, ck::PassThrough<ck::in
@LunNova
LunNova / llvm.diff
Last active January 21, 2025 04:16
git diff ab3a7d91d01d4f4b07b5ea449794e106864fd043..e553730a8ea7cce6fc9df01fa78bfe8a62c28cbc pkgs/development/compilers/llvm/common
/llvm
Diff of llvm dir from working to broken commit when rebasing rocm PR
diff --git a/pkgs/development/compilers/llvm/common/bolt/default.nix b/pkgs/development/compilers/llvm/common/bolt/default.nix
index 1662aa52dde2..9bc078df0e44 100644
--- a/pkgs/development/compilers/llvm/common/bolt/default.nix
+++ b/pkgs/development/compilers/llvm/common/bolt/default.nix
@@ -8,6 +8,7 @@
cmake,
libxml2,
diff --git a/src/include/bootstrap.h b/src/include/bootstrap.h
index 8c5f081..9922b79 100644
--- a/src/include/bootstrap.h
+++ b/src/include/bootstrap.h
@@ -10,11 +10,13 @@
#include "nccl.h"
#include "comm.h"
+// this is accessed through unaligned ptrs because ncclUniqueId is a typedef of char[128]
struct ncclBootstrapHandle {
I1215 08:32:37.869000 4070434 torch/_inductor/config.py:635] compile_threads set to 12 via env
using device: cuda:2
using device: cuda:1
using device: cuda:3
using device: cuda:5
using device: cuda:4
using device: cuda:0
tsukiakari-nixos:4070434:4070434 [0] NCCL INFO Bootstrap : Using eno1np0:10.5.5.236<0>
tsukiakari-nixos:4070434:4070434 [0] NCCL INFO NET/Plugin: No plugin found (librccl-net.so)
tsukiakari-nixos:4070434:4070434 [0] NCCL INFO NET/Plugin: Plugin load returned 2 : librccl-net.so: cannot open shared object file: No such file or directory : when loading librccl-net.so
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/share/doc/hipblaslt -DCMAKE_INSTALL_INFODIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable-20241122/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/2pkfgm8zq2y9zjajgp7qqqyv3f0m9nga-hipblaslt-unstable