Skip to content

Instantly share code, notes, and snippets.

@daitj
daitj / cuda_math_functions_noexcept.patch
Last active February 3, 2026 10:18
llama.cpp with both CUDA and ROCM builder, currently targeting gfx906 (AMD MI50) and CUDA 75 (NVIDIA 2080TI)
--- /usr/local/cuda-13.1/targets/x86_64-linux/include/crt/math_functions.h.org 2025-08-21 00:50:27.000000000 +0200
+++ /usr/local/cuda-13.1/targets/x86_64-linux/include/crt/math_functions.h 2025-11-30 14:27:58.286886587 +0100
@@ -629,7 +629,7 @@
*
* \note_accuracy_double
*/
-extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true);
/**
@daitj
daitj / Changelog.md
Created February 29, 2024 13:50
Philips TPM211EA Firmware Changelog Unofficial

Software history

Philips 2K21 85x6/9006/9206/9636/OLED706/OLED8x6/OLED936 ranges

Philips 2K22 8507/88x7/OLED707/OLED807 /PML9507/OLED907/OLED937 ranges

TPM211EA_101.001.004.250 -- Date: 2024/02/07

  • Unknown
@daitj
daitj / CreateEnder3V3KEThumbnail.py
Last active February 14, 2025 05:50
Cura Ender 3 V3 KE Thumbnail Script
# Cura Ender 3 V3 KE Thumbnail creator
# daitj (github.com/daitj)
# Modified from Ken Huffman (huffmancoding@gmail.com) CreateV2NeoThumbnail
# This only works with Cura 5.0 or later
# Based on:
# https://github.com/Ultimaker/Cura/blob/master/plugins/PostProcessingPlugin/scripts/CreateThumbnail.py
#
# Usage:
# Add this script twice in Cura for 300x300 and 96x96
# first one for 300x300 and