jroose / clpp

Automatically exported from code.google.com/p/clpp
0 stars 1 forks source link

Unable to run benchmark.cpp for clppscan_gpu #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in main function of benchmark.cpp, keep only scan function
2. g++ clppProgram.cpp clppContext.cpp clppScan_GPU.cpp StopWatch.cpp 
benchmark.cpp -o b -lOpenCL
3. got an error on clCreateKernel() function

What is the expected output? What do you see instead?

I should be seeing the output of clppscan_gpu.. instead i see

"Platform[AMD Accelerated Parallel Processing] Device[Devastator]

--------------- Scan : GPU scan
b: clppProgram.cpp:180: static void clppProgram::checkCLStatus(cl_int): 
Assertion `clStatus == 0' failed.
Aborted (core dumped)"

What version of the product are you using? On what operating system?

using ubuntu 12.04

Please provide any additional information below.

Original issue reported on code.google.com by uet.if...@gmail.com on 9 Jul 2013 at 9:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Because of the following line in clppscan_gpu, the code does not work for data 
size < work group size. As barrier would keep on waiting for all local work 
items

if (offsetIdx > size-1) return;

Original comment by uet.if...@gmail.com on 14 Jul 2013 at 11:07