Hi all!!! I'm trying to implement the AES encryption with ECB mode of operation using OpenCL. So far, I've only implemented the first step of the algorithm (the key scheduling part). Moreover, I wanted to first have a serial working encryption of a single block, and only after that spread the encryption to multiple working items. Here the code:
- opencl source: http://pastebin.com/tHdHDp0s
- python host: http://pastebin.com/Le7QhsGK
As you can notice, I'm using the pyopencl bindings. I'm almost sure that the problem is related to my opencl code and not the the python bindings since other code with the same bindings works perfectly. The kernel compile without problems, but when it's executed, the array copied from the read-write input buffer is always empty. This one is my first opencl (and generally, gpu-oriented) program as you could notice from the naive implementation (only global memory is used etc.).
Thanks for your help,
I've forgotten to specify my development platform/environment, sorry about that.
- pyopencl compiled from git (had the same problem with 2011.2 version)
- Fedora 16
The device used is a mobility radeon 4570 gpu.