- Idein/qmkl: BLAS library for VideoCore IV QPU (Raspberry Pi Zero/1/2/3).
- Idein/qmkl6: BLAS library for VideoCore VI QPU (Raspberry Pi 4).
- Terminus-IMRC/mailbox: A wrapper for Mailbox interface.
- Idein/librpimemmgr: A memory manager.
- Terminus-IMRC/libvc4regmap: A library for accessing peripherals (incl. V3D).
- Terminus-IMRC/librpii2cslv: An I2C slave wrapper.
- Idein/librpicopy: Fast implementations of memory copy and fill with DMA.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |
sgemm: BLAS vs. ARM Compute Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
https://github.com/Terminus-IMRC/mmal_list_supported_encodings
Jul 26 2018 13:27:15
Copyright (c) 2012 Broadcom
version 3d2fdb1dbb8700520f36a513effc130d4160ff62 (clean) (release)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |