# Docker installation POCL error

**URL:** <https://bempp.discourse.group/t/docker-installation-pocl-error/103>\
**Category:** Bempp\
**Created:** [23 October 2021 13:13 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103 "2021-10-23T13:13:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewG](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AndrewG](https://bempp.discourse.group/u/AndrewG)\
**Post date:** [23 October 2021 13:13 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/1 "2021-10-23T13:13:26Z")

</div>

Hi BEMPP team,  
I’m trying to use BEMPP-CL for the first time. I used the docker installation, and ran the laplace\_interior\_dirichlet.ipynb notebook. Error message is pasted below. Machine Linux Mint 20.2. If I understand it correctly, docker provides a complete image, so I cannot fix this myself by upgrading POCL (for example) with Synaptic.  
Andrew.

RuntimeError: clBuildProgram failed: BUILD\_PROGRAM\_FAILURE - clBuildProgram failed: BUILD\_PROGRAM\_FAILURE - clBuildProgram failed: BUILD\_PROGRAM\_FAILURE

Build on \<pyopencl.Device ‘pthread-AMD Ryzen 5 5600X 6-Core Processor’ on ‘Portable Computing Language’ at 0x22a4160\>:

error: unknown target CPU ‘generic’

(options: -D NUMBER\_OF\_QUAD\_POINTS=6 -D TEST=p0\_discontinuous -D TRIAL=p1\_discontinuous -D TRIAL\_NUMBER\_OF\_ELEMENTS=3186 -D TEST\_NUMBER\_OF\_ELEMENTS=3186 -D NUMBER\_OF\_TEST\_SHAPE\_FUNCTIONS=1 -D NUMBER\_OF\_TRIAL\_SHAPE\_FUNCTIONS=3 -D KERNEL\_FUNCTION=laplace\_double\_layer -D VEC\_LENGTH=4 -D VEC\_STRING=vec4 -I /usr/local/lib/python3.9/dist-packages/Bempp\_cl-0.2.4-py3.9.egg/bempp/core/sources/include -DPRECISION=1 -I /usr/lib/python3/dist-packages/pyopencl/cl)  
(source saved as /tmp/tmpypi2b6rh.cl)

---

<div class="post-metadata">

**Author:** ![timo](https://yyz2.discourse-cdn.com/free1/user_avatar/bempp.discourse.group/timo/32/7_2.png) [@timo](https://bempp.discourse.group/u/timo)\
**Post date:** [27 October 2021 17:27 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/2 "2021-10-27T17:27:41Z")

</div>

Hi, strange. I looked for the error message and just found a very old bug report about it for POCL that should have been fixed a long time ago. Unfortunately, I don’t have an AMD CPU for testing. My slight suspicion is that your CPU is too new for the POCL version we use in the Docker image. Our Docker file is based on Ubuntu 20.04, which appeared well before your CPU was released. My only suggestion right now is that you use conda to install a fresh environment for bempp-cl. The easiest way to do this is to install conda, enable conda-forge and then say conda install bempp-cl. However, by default it installs an older version of pocl. So you may then have to manually state conda update pocl.

---

<div class="post-metadata">

**Author:** ![andcic](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@andcic](https://bempp.discourse.group/u/andcic)\
**Post date:** [31 October 2021 18:56 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/3 "2021-10-31T18:56:16Z")

</div>

Hi,

Not sure if it’s a related error, but I get the following when importing bempp.api via Python terminal:

```auto
Current thread 0x00007f3730f67740 (most recent call first):
  File "/usr/local/lib/python3.9/dist-packages/Bempp_cl-0.2.4-py3.9.egg/bempp/core/opencl_kernels.py", line 283 in find_cpu_driver
  File "/usr/local/lib/python3.9/dist-packages/Bempp_cl-0.2.4-py3.9.egg/bempp/api/ __init__.py", line 276 in <module>
  File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 855 in exec_module
  File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
  File "/root/shared/CODE-MODELS/AC_PHD_003 - BEM model of cuboid room/AC_PHD_003_admittance_freqdomain.py", line 2 in <module>
Segmentation fault

```

I am on Windows 10, CPU is Intel(R) Core™ i7-4790 CPU @ 3.60GHz, with latest Docker Image.  
I have tried running the same Docker image on my Linux partition (same machine) and it works. Any thoughts?

Thanks.

---

<div class="post-metadata">

**Author:** ![timo](https://yyz2.discourse-cdn.com/free1/user_avatar/bempp.discourse.group/timo/32/7_2.png) [@timo](https://bempp.discourse.group/u/timo)\
**Post date:** [19 November 2021 11:27 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/4 "2021-11-19T11:27:56Z")

</div>

Just noticed your post. Apologies for the late response. Are you still experiencing this error?

---

<div class="post-metadata">

**Author:** ![andcic](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@andcic](https://bempp.discourse.group/u/andcic)\
**Post date:** [20 November 2021 17:52 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/5 "2021-11-20T17:52:59Z")

</div>

Hi,

I have pulled the latest bempp Docker image, but still experiencing the same error. Weirdly, bempp works fine within the FenicsX Docker image (in the same machine). Let me know if you need me to provide more detailed info.

Thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![mscroggs](https://yyz2.discourse-cdn.com/free1/user_avatar/bempp.discourse.group/mscroggs/32/3_2.png) [@mscroggs](https://bempp.discourse.group/u/mscroggs)\
**Post date:** [22 November 2021 09:43 UTC](https://bempp.discourse.group/t/docker-installation-pocl-error/103/6 "2021-11-22T09:43:55Z")

</div>

There’s a chance that this is related to the issue in [Problems running BEMpp under Docker](https://bempp.discourse.group/t/problems-running-bempp-under-docker/107). Could you try running the numba-only docker image and see if that works.

Commands to pull and run Numba-only image:

```auto
docker pull bempp/cl-notebook-numba:latest
docker run -p 8888:8888 bempp/cl-notebook-numba

```
