Skip to content

Instantly share code, notes, and snippets.

View oscarbg's full-sized avatar

Oscar Barenys oscarbg

View GitHub Profile
# Pre requisites
- Enable DRI3 as described in https://vulkan.lunarg.com/app/docs/v1.0.3.1/getting_started_linux
- Install a library for SHA, e.g. sudo apt-get install libgcrypt11-dev (if not already present)
- Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders
# Building
- Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b Master
- cd mesa
- autoreconf -vfi
- ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel
@oscarbg
oscarbg / gist:3f787a30ac63fd73336c164d2729cae1
Created March 7, 2017 02:59 — forked from rejunity/gist:7bd0f1fa4a0014ef26c097225dc62fc0
Compile and run OpenSWR on AWS Instance (Ubuntu 14.04)
# Approximate recipe on compiling and running OpenSWR on AWS Instance (Ubuntu 14.04)
# Questions regarding this recipe: @__rej__
# http://openswr.org
# prerequisites
sudo apt-get update
sudo apt-get install git
sudo apt-get install build-essential
@oscarbg
oscarbg / int_mul.cu
Last active August 29, 2015 14:13 — forked from allanmac/int_mul.cu
// -*- compile-command: "nvcc -m 32 -arch sm_50 -Xptxas=-v,-abi=no -cubin int_mul.cu" ; -*-
#include <stdint.h>
//
//
//
#define KERNEL_QUALIFIERS __global__
#define KERNEL_QUALIFIERS_EXTERN extern KERNEL_QUALIFIERS