Skip to content

Instantly share code, notes, and snippets.

View lgarrison's full-sized avatar

Lehman Garrison lgarrison

View GitHub Profile
@bmerry
bmerry / ctype_to_dtype.py
Created July 30, 2015 08:49
Convert cffi type to numpy dtype
import numpy as np
import six
_FLOAT_TYPES = set(['float', 'double', 'long double'])
def _sub_overrides(overrides, prefix):
out = {}
for (key, value) in six.iteritems(overrides):
if key.startswith(prefix):
out[key[len(prefix):]] = value
@ax3l
ax3l / CUDA_Compilers.md
Last active November 4, 2024 08:04
CUDA Compilers