Commit 276f62e3 by Kai Westerkamp

Moved old

parent 40b289bf
...@@ -141,15 +141,16 @@ bool CReductionTask::ValidateResults() ...@@ -141,15 +141,16 @@ bool CReductionTask::ValidateResults()
void CReductionTask::Reduction_InterleavedAddressing(cl_context Context, cl_command_queue CommandQueue, size_t LocalWorkSize[3]) void CReductionTask::Reduction_InterleavedAddressing(cl_context Context, cl_command_queue CommandQueue, size_t LocalWorkSize[3])
{ {
//cl_int clErr; cl_int clErr;
//size_t globalWorkSize[1]; size_t globalWorkSize[1];
//size_t localWorkSize[1]; globalWorkSize[0] = CLUtil::GetGlobalWorkSize(m_N, LocalWorkSize[0]);
//unsigned int stride = ...; //
unsigned int stride = math;
// TO DO: Implement reduction with interleaved addressing // TO DO: Implement reduction with interleaved addressing
//for (...) { for () {
//} }
} }
void CReductionTask::Reduction_SequentialAddressing(cl_context Context, cl_command_queue CommandQueue, size_t LocalWorkSize[3]) void CReductionTask::Reduction_SequentialAddressing(cl_context Context, cl_command_queue CommandQueue, size_t LocalWorkSize[3])
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
__kernel void Reduction_InterleavedAddressing(__global uint* array, uint stride) __kernel void Reduction_InterleavedAddressing(__global uint* array, uint stride)
{ {
int GID = get_global_id(0);
// TO DO: Kernel implementation // TO DO: Kernel implementation
} }
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment