Skip to content

Instantly share code, notes, and snippets.

View gravitino's full-sized avatar
🎯
Focusing

Christian Hundt gravitino

🎯
Focusing
View GitHub Profile
@gravitino
gravitino / rngpu.hpp
Created February 11, 2016 14:20
lightweight cuRand alternative
#ifndef RNGPU_HPP
#define RNGPU_HPP
#if defined(__CUDA_ARCH__)
#define INLINE_QUALIFIERS __host__ __device__ __forceinline__
#else
#include <math.h>
#define INLINE_QUALIFIERS inline
#endif
@gravitino
gravitino / inplace.hpp
Created February 11, 2016 14:08
Inplace Permutation
#ifndef INPLACE_ALGORITHMS
#define INPLACE_ALGORITHMS
template<
class value_t,
class index_t>
void permute(
value_t * data,
index_t * perm,
index_t length) {

Keybase proof

I hereby claim:

  • I am gravitino on github.
  • I am hundt (https://keybase.io/hundt) on keybase.
  • I have a public key whose fingerprint is D3F4 A995 7D3A 7400 874C D1A9 C584 38B7 5FAA 47C7

To claim this, I am signing this object: