On 6/26/2011 11:09 AM, Andreas Kloeckner wrote:
On Sun, 26 Jun 2011 01:35:28 -0700, Christoph Gohlke<[email protected]>  wrote:
What is the status of Python 3 support? I saw that PyPi classifies it as
Python 3 compatible but I ran into several problems:

Whoops. Forgot to test that before the release, thanks for finding these
issues. I've just released 2011.1.1, which fixes all the issues I could
find, including the ones you mention below. Please speak up if I missed 
something.

Andreas


Everything builds and tests OK now on Windows. Thanks again!


Btw, the kernel for the pasi-lab.py example seems to have problems: 1) variable j undefined (should be `for (int j=0;` ?); 2) changing const array `y_g[i] = result`; 3) comma at the end of arguments. After fixing these, the kernel compiles but example still fails:

KERNEL = """
__kernel void matvec(
  __global const float *a_g,
  __global const float *x_g,
  __global const float *b_g,
  __global float *y_g
  )
{
    uint i = get_global_id(0);
    uint mat_size = get_global_size(0);

    float result = b_g[i];
    for (int j = 0; j < 0; ++j)
        result += a_g[i*mat_size + j] * x_g[i];

    y_g[i] = result;
}
"""

  File "pasi-lab.py", line 73, in <module>
    main()
  File "pasi-lab.py", line 57, in main
    mat_vec_knl(queue, mat_size, 128, a_dev, x_dev, b_dev, y_dev)
File "X:\Python32\lib\site-packages\pyopencl\__init__.py", line 238, in kernel_call
    self.set_args(*args)
File "X:\Python32\lib\site-packages\pyopencl\__init__.py", line 278, in kernel_set_args
    % (i+1, str(e)))
pyopencl.LogicError: when processing argument #1 (1-based): Kernel.set_arg failed: invalid value - invalid kernel argument


Christoph

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to