Skip to content
Snippets Groups Projects
Commit ef41b032 authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin Committed by Franck Pérignon
Browse files

aozdubaozudb

parent 1549be47
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,9 @@ __kernel void copy(__global const float* in, ...@@ -17,11 +17,9 @@ __kernel void copy(__global const float* in,
uint yIndex = get_group_id(1) * TILE_DIM_COPY + get_local_id(1); uint yIndex = get_group_id(1) * TILE_DIM_COPY + get_local_id(1);
uint zIndex = get_global_id(2); uint zIndex = get_global_id(2);
uint index = xIndex + yIndex * NB_I + zIndex*NB_I*NB_II; uint index = xIndex + yIndex * NB_I + zIndex*NB_I*NB_II;
float x;
for(uint i=0; i<TILE_DIM_COPY; i+=BLOCK_ROWS_COPY) for(uint i=0; i<TILE_DIM_COPY; i+=BLOCK_ROWS_COPY)
{ {
x = in[index + i*NB_I]; out[index + i*NB_I] = in[index + i*NB_I];
out[index + i*NB_I] = x;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment