Skip to content

Instantly share code, notes, and snippets.

@peacepenguin
peacepenguin / amd-hip-rocm-stable-diffusion.txt
Created December 22, 2022 19:37
amd 6800 xt hip rocm and stable diffusion testing on linux
## last tested nov. 2022
## fedora 37 (targetting rhel 9.1 amd repos) (using GUI based Fedora 37, which includes a working AMDGPU kernel driver by default)
## rocm 5.3.3
## note the amdgpu kernel driver in use before starting:
modinfo amdgpu |grep ver
# https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.3.3/page/How_to_Install_ROCm.html#d23e7177
@peacepenguin
peacepenguin / superposition-results.md
Created July 27, 2022 17:04
6800xt superposition windows and linux progress
Superposition – OpenGL – 1080p Extreme System OS OS VER Driver Score FPS (avg) Min Max
7/6/2022 5900x – 6800xt Windows Win11 22H2 'windows in-box’31.0.12000.20010 9761 73.01 57.82 89.39
7/6/2022 5900x – 6800xt Linux Fedora36-5.18.9 Mesa-7/6/2022 10084 75.43 58.36 90.79
7/7/2022 5900x – 6800xt Windows Win11 22H2 22.6.1 8393 62.78 48.46 75.79
7/7/2022 5900x – 6800xt Windows Win11 22H2 'windows in-box’31.0.12000.20010 9776 73.12 57.81 89.42
7/26/2022 5900x – 6800xt Windows
[ 0.001170] Config <Info> core\settings.cpp:Settings::LogSettings:80: Citra Configuration:
[ 0.001172] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Core_UseCpuJit: true
[ 0.001174] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Core_CPUClockPercentage: 100
[ 0.001175] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Renderer_UseGLES: false
[ 0.001176] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Renderer_UseHwRenderer: true
[ 0.001176] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Renderer_UseHwShader: true
[ 0.001177] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Renderer_SeparableShader: false
[ 0.001177] Config <Info> core\settings.cpp:Settings::LogSettings::<lambda_1>::operator ():77: Renderer_ShadersAccurateMul: true
[ 0.001177] Config <Info> core\settings.cpp:Settings::
[ 0.005533] Config <Info> core/settings.cpp:LogSettings:80: Citra Configuration:
[ 0.005537] Config <Info> core/settings.cpp:operator():77: Core_UseCpuJit: true
[ 0.005538] Config <Info> core/settings.cpp:operator():77: Core_CPUClockPercentage: 100
[ 0.005538] Config <Info> core/settings.cpp:operator():77: Renderer_UseGLES: false
[ 0.005538] Config <Info> core/settings.cpp:operator():77: Renderer_UseHwRenderer: true
[ 0.005539] Config <Info> core/settings.cpp:operator():77: Renderer_UseHwShader: true
[ 0.005539] Config <Info> core/settings.cpp:operator():77: Renderer_SeparableShader: false
[ 0.005540] Config <Info> core/settings.cpp:operator():77: Renderer_ShadersAccurateMul: true
[ 0.005540] Config <Info> core/settings.cpp:operator():77: Renderer_UseShaderJit: true
[ 0.005541] Config <Info> core/settings.cpp:operator():77: Renderer_UseResolutionFactor: 1
@peacepenguin
peacepenguin / gist:774d0bafe237f8b747cd1c5e605a4e41
Created July 10, 2022 15:54
citra crash with amd gpu in win 11 22h2
With AMD driver 31.0.12001.2008 (22.20.01.02) citra crashes when attempting to launch any game.
Issue also present on previous 31.x driver:
31.0.12000.20010
This is the new AMD driver that fixes many opengl performance issues on Windows with AMD GPU's.
# citra log file of the crash. version: citra-windows-mingw-20220706-353aaaf
[ 0.004708] Config <Info> core/settings.cpp:LogSettings:80: Citra Configuration:
@peacepenguin
peacepenguin / npbexample.ino
Created August 26, 2020 13:40
neopixel bus multipin output using buffer blt layoutmap
// test parallel output on multiple pins on ESP32 using RMT technique against RGB fans (ws2812b leds)
// 8 channels (pins) are possible with this ESP32 RMT method.
#include <NeoPixelBus.h>
#include <arduino.h>
// manually configure these params:
const uint16_t strip01_PixelCount = 18;
const uint8_t strip01_PixelPin = 2;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Requires Python 3.6+
import zulip
import ldap
# setup a function to correctly extract attribute values from the ldap results:
## NOTE! this works for me but has recieved very limited testing!
## Enable auto updates for GITEA:
# shell script to check github repo for "latest" tag and compare to current running gitea version
# assumes systemd is in use to manage gitea service
# assumes gitea binary file lives at: /usr/local/bin/gitea
# assumes Ubuntu 18.04 is in use (but should work on any debian / apt system)
# assumes your local gitea api instance is reachable at: "http://192.168.4.22:3000/api/v1/version"
# assumes your ok with downloading the latest binary from github without any validation
#