cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

muogoro
Journeyman III

kernel not executed/empty buffer returned using pyopencl

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,

Daniele

0 Likes
1 Reply
muogoro
Journeyman III

I've forgotten to specify my development platform/environment, sorry about that.

- pyopencl compiled from git (had the same problem with 2011.2 version)

- AMD-APP-SDK-v2.5

- Fedora 16

The device used is a mobility radeon 4570 gpu.

Daniele

0 Likes