Re: [PyOpenCL] Error running demo script

2016-09-17 Thread Andreas Kloeckner
Tobias Schulmann  writes:
> 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] 
> 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 
> """).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  3.9.0)' on 'Clover' at 0x22bf7c8>:
>
> :0:0: in function sum void (float addrspace(1)*, float 
> addrspace(1)*, float addrspace(1)*): unsupported call to function 
> get_local_size
> ```

Clover (Mesa's Open-source implementation of OpenCL) may not yet support
get_local_size(). I'd consider Clover to be highly experimental at this stage.
If you'd like "production-grade" support, you would need to use AMD's
video driver.

Andreas

> 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

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


[PyOpenCL] Error running demo script

2016-09-16 Thread Tobias Schulmann
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] 
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 
""").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 :

: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