Hello,
I tried to run the ConcurrentKernel on both A10-7850k and R9 290x GPUs and it keeps on failing. It only seems to be running on CPU devices. Any ideas on how to fix this?
Platform 0 : Intel(R) Corporation
Platform 1 : Advanced Micro Devices, Inc.
Platform found : Advanced Micro Devices, Inc.
Selected Platform Vendor : Advanced Micro Devices, Inc.
Device 0 : Spectre Device ID is 0x1f70d90
Sample parameters :
Local Size : 64
Num WGs Per Kernel : 10
Available Compute Units : 8
Num Kernels : 10
Num Queues : 2
Buffer size per Kernel(Bytes) : 1048576
BUILD LOG
************************************************
"/tmp/OCL23554T5.cl", line 99: warning: kernel with local addrSpace variables
cannot be called by other kernels or functions
work2(input, output, bufferSize, multiplier);
^
"/tmp/OCL23554T5.cl", line 115: warning: kernel with local addrSpace variables
cannot be called by other kernels or functions
work2(input, output, bufferSize, multiplier);
^
"/tmp/OCL23554T5.cl", line 131: warning: kernel with local addrSpace variables
cannot be called by other kernels or functions
work2(input, output, bufferSize, multiplier);
^
"/tmp/OCL23554T5.cl", line 147: warning: kernel with local addrSpace variables
cannot be called by other kernels or functions
work2(input, output, bufferSize, multiplier);
^
"/tmp/OCL23554T5.cl", line 163: warning: kernel with local addrSpace variables
cannot be called by other kernels or functions
work2(input, output, bufferSize, multiplier);
^
Error compiling program for K2.
Frontend phase failed compilation.
Error: Creating kernel K2 failed!
************************************************
Error: Program::build() failed. Error code : CL_BUILD_PROGRAM_FAILURE
Location : /home/cas/APPSDK_linux_package/app_sdk/samples/opencl/cpp_cl/ConcurrentKernel/ConcurrentKernel.cpp:273
Solved! Go to Solution.
Hi,
Please find attached the modified ConcurrentKernel code.
Please let me know if it works correctly.
Thanks,
This problem seems to be coming with a driver update. I see it when 14.4 release candidate from 4/21/2014 is installed, is this a bug in driver? Because I realized it worked with an older driver (unfortunately I didnt check which driver I had before I upgraded the machine.)
Hi,
We will check it on 14.4 and get back to you.
Thanks.
Yes, the sample provided in SDK 2.9 does not work properly with Catalyst 14.40. This bug has been fixed for future releases of APP SDK.
Thanks.
Can you tell how to get it working or what is the fix or when will new release of APP SDK be available?
It seems to be working. At least there are no more errors printed. I didnt check if it actually runs the kernels in parallel, can CodeXL show how many kernels were running in parallel?
I was trying to see what it does on CodeXL and it is not very clear because not all kernels seem to start at the same time and they run kind of in mixed order and lengths. So, how many kernels am I suppose to be able to run in concurrently on Hawaii if the workgroup size is 64? What is the theoretical maximum concurrent execution?
GCN architecture has support to run only two kernels concurrently. Thus even if multiple queues are opened on the device, at a time, only two kernels will be in flight.