Skip to content

Instantly share code, notes, and snippets.

@poz1
poz1 / xbox-one-wireless-protocol.md
Created January 18, 2019 16:49 — forked from alfredkrohmer/xbox-one-wireless-protocol.md
XBox One Wireless Controller Protocol

Physical layer

The dongle itself is sending out data using 802.11a (5 GHz WiFi) with OFDM and 6 Mbit/s data rate:

Radiotap Header v0, Length 38
    Header revision: 0
    Header pad: 0
    Header length: 38
    Present flags
@poz1
poz1 / ubuntu-1804lts-ocl-preparedness.md
Created July 25, 2019 12:39 — forked from Brainiarc7/ubuntu-1804lts-ocl-preparedness.md
Preparing Ubuntu 18.04LTS as an OpenCL development platform, with a sample build target provided by Pyrit to demonstrate OpenCL ICD coexistence.

Preparing Ubuntu 18.04LTS as an OpenCL development platform:

With OpenCL, the installable client drivers (ICDs) are normally issued with the accelerator's device drivers, namely:

  1. The NVIDIA CUDA toolkit (and the device driver) for NVIDIA GPUs.
  2. AMD's RoCM for GCN-class AMD hardware.
  3. Intel's beignet and the newer Neo compute runtime.

The purpose of the installable client driver model is to allow multiple OpenCL platforms to coexist on the same platform. That way, multiple OpenCL accelerators, be they discrete GPUs paired with a combination of FPGAs and integrated GPUs can all coexist.

@poz1
poz1 / PrimeBenchmark.c
Created November 22, 2019 16:44
PrimeBenchmark
#include <stdio.h>
#include "xtime_l.h"
#include "platform.h"
#include "xil_printf.h"
#include "xparameters.h"
#define MAX 10000000
#define CACHE_MAX 1000
/* Compute the sqrt(n) using Newton's approximation method.