- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to debug an issue with the 2d fft example available for download here http://www.altera.com/support/examples/opencl/fft-2d.html I compiled the fft2d.cl file for several fft sizes (modifying the host/inc/fft_config.h file accordingly). clcreateprogramwithbinary fails with error code CL_INVALID_VALUE for any fft size but 1024x1024. I was wondering if the offline compiled kernels for sizes other than 1024x1024 are available for download somewhere. That would allow me to determine whether the problem is with my aocx files or in the OpenCL host code I'm using. I have the bittware s5phq_d8 board. Any help is appreciated. Cheers, DominicLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So I assume you modified LOGN in the fft_config.h file to map to the size you want, for example a 512x512 FFT would be LOGN = 9. Just so that this isn't just a compilation thing on the host side I would clean the host application then recompile it since makefiles are often not written to be dependent on include files changing. So it might be that the kernel is recompiled but the host code still thinks LOGN is set to 10 since it wasn't built with an updated macro definition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. I did change the LOGN in the config header to generate aocx files for sizes 64x64 through 512x512 (the 1024x1024 file comes with the example).
I'm not using the host code that comes with the example. I wrote a new host application that lets the user choose the FFT size at runtime. It is that application that I'm trying to debug. For some reason I can only get the 1024x1024 example to work. As far as I can tell there are three broad classes of errors that could be causing this: 1) A mistake in the host code, 2) an error in the offline compilation of the kernels, 3) an IO error (aocx file is corrupt or the binary file doesn't get read into the host application correctly). If I had an aocx file that is known to work it would allow me to narrow my search down a bit. That's why I was wondering if you could make available a aocx file for a different FFT size. I'm currently in the process of regenerating aocx files but the turnaround time is pretty slow on my desktop. If you had an aocx file ready to go and if you could make it available to me that would make my life a lot easier. Thanks again. Cheers, Dominic
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page