-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCL - ViennaCL: FATAL ERROR: CL_INVALID_WORK_GROUP_SIZE #6239
Comments
@fragolka Please post the result of the following command: |
Sure:
Device #0 Device #1
|
@fragolka Ok that just won't work. Vivante's OpenCL implementation is quite bad and I can't fix any bugs with their GPUs since I don't have one of them myself. Sorry. If you want to get this fixed you'd either have to do it yourself and submit a pull request (PR) to OpenCL Caffe or provide me with a Vivante GPU. |
Thank you for your answer. Is there a way how to get kernel source string that is created? |
@fragolka You can read the kernels from here: |
I've found the problem - local work group size depends on CL_KERNEL_WORK_GROUP_SIZE that can be retrieved from clGetKernelWorkGroupInfo function. In my case, CL_KERNEL_WORK_GROUP_SIZE is 224. So after changing the local work group size to 8 it worked. One more thing.... not sure where it comes from but i had a "function 'atomicAdd' hasn't the corresponding declaration" error. I solved that by deleting the ifelse statement here |
@fragolka |
Can you tell me what you change |
@soulslicer I know it's old, but use the But now i have an issue in #6711 |
Hi,
I've build the caffe libray using following configuration:
cmake -DUSE_GREENTEA=ON -DUSE_INTEL_SPATIAL=OFF -DUSE_ISAAC=OFF -DUSE_CLBLAS=ON -DBUILD_SHARED_LIBS=ON -DUSE_CUDNN=OFF -DBUILD_docs=OFF -DBUILD_python=ON -DBUILD_matlab=OFF -DBLAS=open ..
I'm using OpenCL 1.2, viennacl-dev 1.7.1, clBLAS 2.12, openBLAS 0.2.20.
Running the classification example, I got following error:
./build/examples/cpp_classification/classification.bin \
Many thanks in advance!
Aborted (core dumped)
I get the same error running cifar10 example:
...
I0215 07:16:11.737159 29837 net.cpp:280] Network initialization done.
I0215 07:16:11.737175 29837 net.cpp:281] Memory required for data: 31987608
I0215 07:16:11.737361 29837 solver.cpp:65] Solver scaffolding done.
I0215 07:16:11.737481 29837 caffe.cpp:272] Starting Optimization
I0215 07:16:11.737502 29837 solver.cpp:295] Solving CIFAR10_quick
I0215 07:16:11.737519 29837 solver.cpp:296] Learning Rate Policy: fixed
I0215 07:16:11.748381 29837 solver.cpp:354] Iteration 0, Testing net (#0)
ViennaCL: FATAL ERROR: Kernel start failed for 'conv_forward'.
terminate called after throwing an instance of 'viennacl::ocl::invalid_work_group_size'
what(): ViennaCL: FATAL ERROR: CL_INVALID_WORK_GROUP_SIZE
The supplied work group size is invalid. If you have set this value manually, please reconsider your choice.
If you think that this is a bug in ViennaCL, please report it at [email protected] and supply at least the following information:
Many thanks in advance!
*** Aborted at 1518678971 (unix time) try "date -d @1518678971" if you are using GNU date ***
PC: @ 0x0 (unknown)
*** SIGABRT (@0x748d) received by PID 29837 (TID 0xffff73f34000) from PID 29837; stack trace: ***
@ 0xffff7b3e06c0 ([vdso]+0x6bf)
@ 0xffff77b579b0 gsignal
./examples/cifar10/train_quick.sh: line 7: 29837 Aborted (core dumped)
Any idea where is the problem? Many thanks. Lucy
The text was updated successfully, but these errors were encountered: