Skip to content

Instantly share code, notes, and snippets.

View kekonn's full-sized avatar
🏠
Working from home

kekkon kekonn

🏠
Working from home
View GitHub Profile
@kekonn
kekonn / InfiniteScrollingListBox.cs
Created December 15, 2010 16:32
For a tutorial
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace InfiniteScroll
{
kernel void matrixTranspose( global float *a, global float *b, constant float *c, constant int size )
{
int idx = get_global_id(0);
int idy = get_global_id(1);
b[idx * size + idy] = a[idy * size + idx];
int BLOCKSIZE = 0;
int loops;
for (loops=0;loops<50;loops++)
{
/********************************************************************
* sample.cu
* This is a example of the CUDA program.
*********************************************************************/
#define MATRIX_SIZE 200
#define BLOCKSIZE 200
#define BLOCKDIM 200
#define BENCH_LOOP 100