inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.06k stars 241 forks source link

Pyopencl on android #407

Closed kraken-d closed 3 years ago

kraken-d commented 3 years ago

After lots of fixing I got to import pyopencl on my redmi note 7 pro with termux but now I am getting this error $ ./opcl.py /data/data/com.termux/files/usr/lib/python3.9/site-packages/pyopencl/init.py:265: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings: Build on <pyopencl.Device 'QUALCOMM Adreno(TM)' on 'QUALCOMM Snapdragon(TM)' at 0x74afc7bbb8> succeeded, but said:

Pass warn(text, CompilerWarning) /data/data/com.termux/files/usr/lib/python3.9/site-packages/pyopencl/init.py:265: CompilerWarning: From-binary build succeeded, but resulted in non-empty logs: Build on <pyopencl.Device 'QUALCOMM Adreno(TM)' on 'QUALCOMM Snapdragon(TM)' at 0x74afc7bbb8> succeeded, but said:

Error: Program not built! warn(text, CompilerWarning) [0. 0. 0. ... 0. 0. 0.] 0.0 Plz help.

inducer commented 3 years ago

I'm not sure what to help with here. Assuming that opcl.py is derived from pyopencl's demo.py, this output (at least the zeros) is as expected. The rest are warning messages generated by the compiler that, it appears, are safe to ignore.

Saikatsaha1996 commented 2 years ago

After lots of fixing I got to import pyopencl on my redmi note 7 pro with termux but now I am getting this error $ ./opcl.py /data/data/com.termux/files/usr/lib/python3.9/site-packages/pyopencl/init.py:265: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings: Build on <pyopencl.Device 'QUALCOMM Adreno(TM)' on 'QUALCOMM Snapdragon(TM)' at 0x74afc7bbb8> succeeded, but said:

Pass warn(text, CompilerWarning) /data/data/com.termux/files/usr/lib/python3.9/site-packages/pyopencl/init.py:265: CompilerWarning: From-binary build succeeded, but resulted in non-empty logs: Build on <pyopencl.Device 'QUALCOMM Adreno(TM)' on 'QUALCOMM Snapdragon(TM)' at 0x74afc7bbb8> succeeded, but said:

Error: Program not built! warn(text, CompilerWarning) [0. 0. 0. ... 0. 0. 0.] 0.0 Plz help.

Can you help please?

IMG_20220916_104454 IMG_20220916_115724