1
edit
Changes
→Assignment 2
=== Assignment 2 ===
==== Kernel Attempts ====
So far I have made attempts to convert different pieces of compute heavy code into kernels in order to obtain the same results as the original code but none have been successful.
<source lang="cpp">
__global__ void testKernel(unsigned char *data, unsigned int max, unsigned int* pos) {
if(data[threadIdx.x] != max) {
data[threadIdx.x]++;
*pos=threadIdx.x;
//break;
}
}
</source>
=== Assignment 3 ===