mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
- Move all linux_configuration scripts into two semantic categories: - single_use/: scripts run once manually (fresh install, fixes, setup) - periodic_background/: scripts run by systemd timers or daemons - Preserve existing subdirectory structure within each category - Fix lib/common.sh source paths for new directory depths - Fix CONFIG_DIR depth in setup_periodic_system.sh and check_and_enable_services.sh - Update all references in tests, fresh-install/main.sh, nix modules, and docs - Fix check_polling_antipatterns.sh false positives (||, regex |, case patterns, jq strings) - Fix pre-existing mypy exclusion path and type annotations for moved tools/ directory - Rewrite check_polling_antipatterns.sh using awk (no bash regex loops); add require_serial: true
23 lines
862 B
Bash
Executable File
23 lines
862 B
Bash
Executable File
#!/bin/bash
|
|
# Fix waifu2x-converter-cpp-cuda-git for CUDA 13+
|
|
# CUDA 13 minimum supported arch is sm_75 (Turing)
|
|
|
|
PKGBUILD="$HOME/.cache/yay/waifu2x-converter-cpp-cuda-git/PKGBUILD"
|
|
|
|
if [[ ! -f "$PKGBUILD" ]]; then
|
|
echo "PKGBUILD not found. Run 'yay waifu2x-converter-cpp-cuda-git' first to download it."
|
|
exit 1
|
|
fi
|
|
|
|
# Add sed commands to prepare() function to replace sm_52/ptx52 with sm_75/ptx75
|
|
if grep -q 's/sm_52/sm_75' "$PKGBUILD"; then
|
|
echo "PKGBUILD already patched."
|
|
else
|
|
sed -i '/^prepare() {$/a\
|
|
# Fix for CUDA 13+ which requires sm_75+ (Turing)\
|
|
sed -i "s/sm_52/sm_75/g" waifu2x-converter-cpp/CMakeLists.txt\
|
|
sed -i "s/ptx52/ptx75/g" waifu2x-converter-cpp/CMakeLists.txt\
|
|
sed -i "s/ptx52/ptx75/g" waifu2x-converter-cpp/src/modelHandler_CUDA.cpp' "$PKGBUILD"
|
|
echo "PKGBUILD patched. Now run 'yay waifu2x-converter-cpp-cuda-git' again."
|
|
fi
|