This document describes how to install nvidia drivers & CUDA in one go on a fresh debian install.
Work in progress
- Start with a fresh Debian install.
| Data Size: | |
| Input: 2074 | |
| LZ4: 758 (0.37) | |
| Snappy: 676 (0.33) | |
| LZF: 697 (0.34) | |
| ZLIB: 510 (0.25) | |
| LZ4 / Snappy: 1.121302 | |
| LZ4 / LZF: 1.087518 | |
| LZ4 / ZLIB: 1.486275 | |
| Benchmark: 50000 calls |
| from functools import partial | |
| import io | |
| import json | |
| import numpy as np | |
| def as_numpy(dct): | |
| """JSON decoder for NumPy ndarrays.""" | |
| if '__numpy__' in dct: | |
| return np.load(io.BytesIO(dct['data'].encode('latin-1'))) | |
| return dct |
| import svgwrite | |
| import math | |
| # mogrify -format gif *.svg | |
| # gifsicle --scale 0.2 --delay=5 --loop --optimize=2 --colors=256 --multifile *.gif > OutGIF/out.gif | |
| order = 3 | |
| number_of_index_bits = order * 2 | |
| number_of_elements = pow(2, number_of_index_bits) | |
| x_offset = 130 |
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtWidgets import QWidget | |
| from PyQt5.QtWidgets import QPushButton | |
| from PyQt5.QtWidgets import QGridLayout | |
| from PyQt5.QtWidgets import QStyle | |
| COL_SIZE = 4 | |
| class Widget(QWidget): |