Skip to content

Instantly share code, notes, and snippets.

@nadavrot
nadavrot / Matrix.md
Last active May 22, 2024 13:38
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@jxskiss
jxskiss / app.py
Last active November 3, 2021 10:29
Get celery task results within tornado, celery [issues#3577](https://github.com/celery/celery/issues/3577)
# Tornado app.py
from tornado import web, options
from tornado.platform.asyncio import AsyncIOMainLoop
import asyncio
AsyncIOMainLoop().install()
import tasks
from celery_task_utils import CeleryTaskProxy