I hereby claim:
- I am peterwittek on github.
- I am peterwittek (https://keybase.io/peterwittek) on keybase.
- I have a public key ASCXm1QcaH67k3Bw6aiCNdZTJOS6Q5YAqTs3e4Ty8r8aTgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <iostream> | |
#include <climits> | |
#include <cmath> | |
#include <ctime> | |
#define PI 3.14159265 | |
#define REPETITIONS 2000000000 | |
using namespace std; | |
double speed_test_nontemplated0() { |
#undef _GLIBCXX_ATOMIC_BUILTINS | |
#undef _GLIBCXX_USE_INT128 | |
#include <thrust/iterator/counting_iterator.h> | |
#include <thrust/iterator/transform_iterator.h> | |
#include <thrust/iterator/permutation_iterator.h> | |
#include <thrust/functional.h> | |
#include <thrust/inner_product.h> | |
#include <thrust/fill.h> |
#undef _GLIBCXX_ATOMIC_BUILTINS | |
#undef _GLIBCXX_USE_INT128 | |
#include <thrust/device_vector.h> | |
#include <thrust/reduce.h> | |
#include <thrust/functional.h> | |
#include <thrust/random.h> | |
#include <iostream> | |
// C-style indexing |
#undef _GLIBCXX_ATOMIC_BUILTINS | |
#undef _GLIBCXX_USE_INT128 | |
#include <thrust/device_vector.h> | |
#include <cublas_v2.h> | |
#include <iostream> | |
// C-style indexing | |
int ci(int row, int column, int nColumns) { | |
return row*nColumns+column; |