This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************** | |
* sample.cu | |
* This is a example of the CUDA program. | |
*********************************************************************/ | |
#define MATRIX_SIZE 200 | |
#define BLOCKSIZE 200 | |
#define BLOCKDIM 200 | |
#define BENCH_LOOP 100 |
NewerOlder