Skip to content

Instantly share code, notes, and snippets.

View Terminus-IMRC's full-sized avatar
💭
Doing nothing helpful

Yukimasa Sugizaki Terminus-IMRC

💭
Doing nothing helpful
View GitHub Profile
@Terminus-IMRC
Terminus-IMRC / series-dp-rec.c
Last active March 30, 2019 13:01
Iterate all patterns of magic series
#include <stdio.h>
#include <string.h>
#define SIGMA(sta,end) (((sta) + (end)) * ((end) - (sta) + 1) / 2)
#define SIGMAN(sta,n) SIGMA((sta), (sta) + (n) - 1)
#define ORDER 6
#define SUM (SIGMA(0, ORDER*ORDER-1) / ORDER)
typedef long long int num_t;
@Terminus-IMRC
Terminus-IMRC / .editorconfig
Last active February 8, 2019 06:09
主専攻実験B (スタンダードセル向けLSI設計) レポート
# .editorconfig -- Config file for EditorConfig. http://editorconfig.org/
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.{tex,bib}]
indent_style = space
@Terminus-IMRC
Terminus-IMRC / list.md
Last active May 26, 2024 17:36
My/our active projects for Raspberry Pi
@Terminus-IMRC
Terminus-IMRC / ,README.md
Last active March 5, 2018 06:00
sgemm: BLAS vs. ARM Compute Library

sgemm: BLAS vs. ARM Compute Library

#!/usr/bin/env python3
import time
from videocore.assembler import qpu, assemble
from videocore.driver import Driver
@qpu
def bench(asm, n):
ldi(r0, int(n//4), set_flags=True)
L.loop
@Terminus-IMRC
Terminus-IMRC / README.md
Last active March 6, 2020 02:35
/proc/cpuinfo of Raspberry Pis

/proc/cpuinfo of Raspberry Pis

Raspberry Pi 1 Model B

processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls
CPU implementer	: 0x41
@Terminus-IMRC
Terminus-IMRC / result.md
Last active January 21, 2022 16:48
mmal_list_supported_encodings result
@Terminus-IMRC
Terminus-IMRC / 00README.md
Last active January 21, 2018 15:40
QPU benchmarks descriptions

QPU benchmarks descriptions

sgemm

P = 96
Q = 363
R = 3072
ALPHA = 1.000000
BETA = 1.000000
==== sgemm example (ALPHA * 96x363 * 363x3072 + BETA * 96x3072) ====
#!/usr/bin/env python2
from optlang.glpk_interface import Model, Variable, Constraint, Objective
def diff(u, v, b, model):
model.add(Constraint((u - v) - 100 * b, ub = -1))
model.add(Constraint((v - u) - 100 * (1 - b), ub = -1))
model = Model(name = "Simple model")