Skip to content

Instantly share code, notes, and snippets.

View MilesLitteral's full-sized avatar
Riding the Storm

Miles J. Litteral MilesLitteral

Riding the Storm
View GitHub Profile
@MilesLitteral
MilesLitteral / BuildMLIROnWindows.md
Last active March 29, 2024 00:52
Build MLIR On Windows

Installation of ONNX-MLIR on Windows Building onnx-mlir on Windows requires building some additional prerequisites that are not available by default.

Note that the instructions in this file assume you are using Visual Studio 2019 Community Edition with ninja. It is recommended that you have the Desktop development with C++ and Linux development with C++ workloads installed. This ensures you have all toolchains and libraries needed to compile this project and its dependencies on Windows.

Run all the commands from a shell started from "Developer Command Prompt for VS 2019".

Protobuf Build protobuf as a static library.

@MilesLitteral
MilesLitteral / A Proposal for Sonic Graffiti
Last active March 15, 2023 06:37
Sonic Graffiti Lib's Manifesto
==How many bytes can a QR Code store at most?==
The maximum number of bytes that a QR code can store depends on the type of QR code and the error correction level used.
The maximum storage capacity for a standard QR code (Version 40) with high error correction level is 2953 bytes of data.
However, it's important to note that this maximum capacity is rarely achieved in practice, as the amount of data that can
be stored in a QR code depends on factors such as the type of data being stored (e.g., alphanumeric, binary, etc.),
the size and complexity of the QR code, and the scanning device's ability to read the code accurately.
In general, it's best to aim for a QR code that is large enough to be easily scanned and contains only the necessary data,
rather than trying to store as much information as possible in a single code.
@MilesLitteral
MilesLitteral / What Is Metal
Last active January 17, 2023 06:37
Description of Metal Shader Language
# What Is Metal
Processing executed in parallel on the GPU can use a Shading language called Metal’s original Metal Shading Language (MSL).
The Metal shading language is a unified language that allows tighter integration between the graphics and compute programs.
MSL Filename Extension
A MSL filename extension is .metal. You can create a new metal file using the metal file template in Xcode.
Using .metal extension allows Xcode to recognize MSL files in your project, automatically build a default library at build time, and help you profile and debug source code with specialized Metal tools.
@MilesLitteral
MilesLitteral / FM Dylib Structure
Last active March 15, 2023 06:04
Futhark-Metal Notes and Readings
FM Dylib Components, Functions, Interfaces
Interfaces: MetalMath, MetalGraphics
MetalGeometry MetalCreate
Main Actors:
GenerateDevice(),
PrepareData(A, B, Result);
Execute();
ExecuteOn(device);