Skip to content

Instantly share code, notes, and snippets.

@hageboeck
hageboeck / Cuda_classesAndSpans.cxx
Last active December 7, 2020 18:38
Invoking kernels that are class functions
#include <vector>
#include <cuda.h>
#include <numeric>
#include <iostream>
#ifndef __CUDACC__
#include <span>
#else
namespace std {
// Some hacks because CUDA doesn't speak C++20.
// Still works for me, since CUDA doesn't touch the span