So I'm trying to get pyopencl to run on Ubuntu 16.04 with latest AMD APP SDK, 
but running into the error below when trying to run the demo script (from the 
documentation):

```
[0] <pyopencl.Platform 'Clover' at 0x7f9adde43c00>
Choice [0]:0
Set the environment variable PYOPENCL_CTX='0' to avoid being asked again.
.Traceback (most recent call last):
  File "./opencl.py", line 21, in <module>
    """).build()
  File "env/lib/python3.5/site-packages/pyopencl/__init__.py", line 474, in 
build
    options_bytes=options_bytes, source=self._source)
  File "env/lib/python3.5/site-packages/pyopencl/__init__.py", line 509, in 
_build_and_catch_errors
    raise err
pyopencl.cffi_cl.RuntimeError: clbuildprogram failed: BUILD_PROGRAM_FAILURE - 

Build on <pyopencl.Device 'AMD HAWAII (DRM 2.43.0 / 4.4.0-36-generic, LLVM 
3.9.0)' on 'Clover' at 0x22bf7c8>:

<unknown>:0:0: in function sum void (float addrspace(1)*, float addrspace(1)*, 
float addrspace(1)*): unsupported call to function get_local_size
```

I'm relatively sure the SDK is installed correctly, and 
`/opt/AMDAPPSDK-3.0/bin/x86_64/clinfo` seems to produce sensible output:
```
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 1.1 Mesa 12.1.0-devel 
(git-f65187b 2016-09-16 xenial-oibaf-ppa)
  Platform Name:                                 Clover
  Platform Vendor:                               Mesa
  Platform Extensions:                           cl_khr_icd


  Platform Name:                                 Clover
Number of devices:                               1
  Device Type:                                   CL_DEVICE_TYPE_GPU
  ......
```

Not sure if I missed a crucial step somewhere along the way or stumbled across 
some odd bug/incompatibility issue? Any help would be appreciated.

-- Tobi
This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
https://lists.tiker.net/listinfo/pyopencl

Reply via email to