Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<script>window.__sb_state = {};</script>
<script src="/.webcontainer@runtime.4c73681d.js"></script>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/@tanstack-start/styles.css?routes=__root__%2C%2F"
data-tanstack-router-dev-styles="true" data-precedence="default" />
@schiller-manuel
schiller-manuel / exclusive_scan_by_key.xml
Created December 26, 2015 02:23
performance test "exclusive_scan_by_key" for old implementation
<?xml version="1.0" ?>
<testsuite name="exclusive_scan_by_key">
<platform>
<device name="GeForce GTX 680">
<property name="revision" value="3.0"/>
<property name="global memory" value="4286959616" units="bytes"/>
<property name="multiprocessors" value="8"/>
<property name="cores" value="64"/>
<property name="constant memory" value="65536" units="bytes"/>
<property name="shared memory per block" value="49152" units="bytes"/>
@schiller-manuel
schiller-manuel / exclusive_scan_by_key.xml
Created December 26, 2015 02:18
performance test "exclusive_scan_by_key" for new implementation
<?xml version="1.0" ?>
<testsuite name="exclusive_scan_by_key">
<platform>
<device name="GeForce GTX 680">
<property name="revision" value="3.0"/>
<property name="global memory" value="4286959616" units="bytes"/>
<property name="multiprocessors" value="8"/>
<property name="cores" value="64"/>
<property name="constant memory" value="65536" units="bytes"/>
<property name="shared memory per block" value="49152" units="bytes"/>
@schiller-manuel
schiller-manuel / inclusive_scan_by_key.xml
Created December 26, 2015 02:16
performance test "inclusive_scan_by_key" for new implementation
<?xml version="1.0" ?>
<testsuite name="inclusive_scan_by_key">
<platform>
<device name="GeForce GTX 680">
<property name="revision" value="3.0"/>
<property name="global memory" value="4286959616" units="bytes"/>
<property name="multiprocessors" value="8"/>
<property name="cores" value="64"/>
<property name="constant memory" value="65536" units="bytes"/>
<property name="shared memory per block" value="49152" units="bytes"/>
@schiller-manuel
schiller-manuel / inclusive_scan_by_key.xml
Last active December 26, 2015 02:34
performance test "inclusive_scan_by_key" for old implementation
<?xml version="1.0" ?>
<testsuite name="inclusive_scan_by_key">
<platform>
<device name="GeForce GTX 680">
<property name="revision" value="3.0"/>
<property name="global memory" value="4286959616" units="bytes"/>
<property name="multiprocessors" value="8"/>
<property name="cores" value="64"/>
<property name="constant memory" value="65536" units="bytes"/>
<property name="shared memory per block" value="49152" units="bytes"/>
result = 6
result = 6
result = 6
6 6 6 6
#include <thrust/zip_function.h>
#include <thrust/tuple.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/functional.h>
#include <thrust/copy.h>
#include <iostream>
#include <iterator>
namespace demo
@schiller-manuel
schiller-manuel / demo.m
Last active August 29, 2015 14:27
matlab2tikz bug with histogram
a = randn(10000,1);
hist(a);
legend('demo');
dummy to be able to upload binary file
In file included from thrust_variadic_tuple_test.cpp:2:
In file included from /tmp/thrust-variadic/thrust/tuple.h:34:
/tmp/thrust-variadic/thrust/detail/tuple/tuple.h:66:23: error: no type named 'head_type' in 'thrust::null_type'
typedef typename T::head_type type;
~~~~~~~~~~~~^~~~~~~~~
/tmp/thrust-variadic/thrust/tuple.h:79:22: note: in instantiation of template class 'thrust::tuple_element<0, thrust::null_type>' requested here
typedef typename tuple_element<N-1, Next>::type type;
^
/tmp/thrust-variadic/thrust/tuple.h:79:22: note: in instantiation of template class 'thrust::tuple_element<1, thrust::detail::cons<int, thrust::null_type> >' requested here
typedef typename tuple_element<N-1, Next>::type type;