Skip to content

Instantly share code, notes, and snippets.

View trougnouf's full-sized avatar
💭
:-)

Benoit Brummer trougnouf

💭
:-)
View GitHub Profile
:3:rocdevice.cpp :442 : 3216006199 us: [pid:7017 tid:0x7fd0e804c740] Initializing HSA stack.
:3:comgrctx.cpp :33 : 3216019886 us: [pid:7017 tid:0x7fd0e804c740] Loading COMGR library.
:3:rocdevice.cpp :208 : 3216019976 us: [pid:7017 tid:0x7fd0e804c740] Numa selects cpu agent[0]=0x5635c20f8770(fine=0x5635c58dcc10,coarse=0x5635c5773b00) for gpu agent=0x5635c592b900 CPU<->GPU XGMI=0
:3:rocdevice.cpp :1680: 3216020637 us: [pid:7017 tid:0x7fd0e804c740] Gfx Major/Minor/Stepping: 10/3/0
:3:rocdevice.cpp :1682: 3216020650 us: [pid:7017 tid:0x7fd0e804c740] HMM support: 1, XNACK: 0, Direct host access: 0
:3:rocdevice.cpp :1684: 3216020658 us: [pid:7017 tid:0x7fd0e804c740] Max SDMA Read Mask: 0x0, Max SDMA Write Mask: 0x0
:3:rocdevice.cpp :208 : 3216021387 us: [pid:7017 tid:0x7fd0e804c740] Numa selects cpu agent[0]=0x5635c20f8770(fine=0x5635c58dcc10,coarse=0x5635c5773b00) for gpu agent=0x5635bf3fcc10 CPU<->GPU XGMI=0
:3:rocdevice.cpp
This file has been truncated, but you can view the full file.
:3:rocdevice.cpp :442 : 3044632695 us: [pid:6950 tid:0x7f180a481740] Initializing HSA stack.
:3:comgrctx.cpp :33 : 3044646184 us: [pid:6950 tid:0x7f180a481740] Loading COMGR library.
:3:rocdevice.cpp :208 : 3044646253 us: [pid:6950 tid:0x7f180a481740] Numa selects cpu agent[0]=0x55e1c434e770(fine=0x55e1c7b32cc0,coarse=0x55e1c79c9bb0) for gpu agent=0x55e1c7b819b0 CPU<->GPU XGMI=0
:3:rocdevice.cpp :1680: 3044646862 us: [pid:6950 tid:0x7f180a481740] Gfx Major/Minor/Stepping: 10/3/2
:3:rocdevice.cpp :1682: 3044646873 us: [pid:6950 tid:0x7f180a481740] HMM support: 1, XNACK: 0, Direct host access: 0
:3:rocdevice.cpp :1684: 3044646880 us: [pid:6950 tid:0x7f180a481740] Max SDMA Read Mask: 0x0, Max SDMA Write Mask: 0x0
:3:rocdevice.cpp :208 : 3044647617 us: [pid:6950 tid:0x7f180a481740] Numa selects cpu agent[0]=0x55e1c434e770(fine=0x55e1c7b32cc0,coarse=0x55e1c79c9bb0) for gpu agent=0x55e1c1652c10 CPU<->GPU XGMI=0
:3:rocdevice.cpp
@trougnouf
trougnouf / capture_image_set.py
Created December 7, 2022 00:38
Capture a set of images with different ISOs (NIND)
#!/bin/python3
"""Capture a scene with different ISO values. If an argument is set, it will be used as the scene name."""
# TODO set silent shooting
import subprocess
import os
import logging
from typing import Iterable, Literal
import gphoto2 as gp
import sys
import datetime
@trougnouf
trougnouf / find_single_pic_to_edit.py
Created March 28, 2022 14:26
Find a random picture to develop
#!/usr/bin/env python
import os
import yaml
import random
import zlib
import tqdm
RAW_EXT = ['RAF', 'NEF', 'ARW', 'dng', 'nef', 'CR2']
RAW_WEIGHT = 4
@trougnouf
trougnouf / wiki_fix_qi.py
Created March 25, 2022 15:17
Add QualityImage template on promoted images missed by the QI bot. (Wikimedia Commons)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Add QualityImage template on promoted images missed by the QI bot. (Wikimedia Commons)
usage: python wikiqi.py "PAGENAME" <USERNAME> "PASSWORD"
egusage: python wikiqi.py "Commons:Quality images candidates/Archives March 21 2022" trougnouf "1234"
@author: trougnouf
"""
@trougnouf
trougnouf / setres.sh
Created January 4, 2019 14:49
Set multimonitor with multi-dpi with xrandr (eg NVidia cards)
# eg: bash /orb/Dev/BashScripts/setres.sh 125 200
# Set multimonitor with multi-dpi with xrandr (eg NVidia cards)
# First set the scaling to something at least large enough (s.a. 200% in GNOME)
# In this case DVI-D-0 and HDMI-0 are 1080p monitors around DP-0 which is a 4K monitor
SCALE1=$(expr $1/100 | bc -l)
SCALE2=$(expr $2/100 | bc -l)
xrandr --output DVI-D-0 --mode 1920x1080 --panning $((1920*$2/100))x$((1080*$2/100))+$((1920*$2/100+3840*$1/100))+0 --pos 5760x0 --rotate normal --scale ${SCALE2}x${SCALE2} --output HDMI-0 --mode 1920x1080 --pos 0x0 --panning $((1920*$2/100))x$((1080*$2/100)) --rotate normal --scale ${SCALE2}x${SCALE2} --output DP-5 --off --output DP-4 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off --output DP-0 --primary --mode 3840x2160 --panning $((3840*$1/100))x$((2160*$1/100))+$((1920*$2/100))+0 --pos 1920x0 --rotate normal --scale ${SCALE1}x${SCALE1}