Git Product home page Git Product logo

Comments (4)

kif avatar kif commented on June 5, 2024

Tested on PoCL 3, 4 and 5:

POCL3: OpenCL 3.0 PoCL 3.1+debian Linux, None+Asserts, RELOC, SPIR, LLVM 15.0.6, SLEEF, DISTRO, POCL_DEBUG

lintaillefer:~/workspace/silx % PYOPENCL_CTX=portable POCL_DEBUG=all POCL_WORK_GROUP_METHOD=cbs  ./run_tests.py src/silx/image/test/test_medianfilter.py -vv
INFO:silx.setup:Install requires: numpy >=1.24.2
Building silx to /users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11
INFO:silx.setup:Install requires: numpy >=1.24.2
INFO:root:running build
INFO:root:running build_py
INFO:root:running build_ext
INFO: Disabling color, you really want to install colorlog.
INFO:pythran:Disabling color, you really want to install colorlog.
/usr/lib/python3/dist-packages/pythran/tables.py:4530: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
  if not hasattr(numpy, method):
/usr/lib/python3/dist-packages/pythran/tables.py:4563: FutureWarning: In the future `np.bytes` will be defined as the corresponding NumPy scalar.
  obj = getattr(themodule, elem)
Patched sys.path, added: '/users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11'
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11/silx, configfile: ../../../pytest.ini
plugins: mock-3.8.2, xvfb-2.0.0
collected 2 items                                                                                                                                                                            

build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testCppMedFilt2d PASSED                                                                     [ 50%]
build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testOpenCLMedFilt2d PASSED                                                                  [100%]

===================================================================================== 2 passed in 0.52s ======================================================================================
[2024-03-11 12:22:16.793487736] POCL: in fn POclReleaseContext at line 48:
  *** INFO ***  | REFCOUNTS |  Release Context 20 (0x26b8b30), Refcount: 1

PoCL4: OpenCL 3.0 PoCL 4.0 Linux, Debug+Asserts, RELOC, SPIR, SPIR-V, LLVM 15.0.6, SLEEF, CUDA, POCL_DEBUG

[ ... ]
Patched sys.path, added: '/users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11'
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11/silx, configfile: ../../../pytest.ini
plugins: mock-3.8.2, xvfb-2.0.0
collected 2 items                                                                                                                                                                            

build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testCppMedFilt2d PASSED                                                                     [ 50%]
build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testOpenCLMedFilt2d PASSED                                                                  [100%]

===================================================================================== 2 passed in 1.65s ======================================================================================
[2024-03-11 12:23:12.822077758] POCL: in fn POclReleaseContext at line 48:
  *** INFO ***  | REFCOUNTS |  Release Context 36 (0xc5c5530), Refcount: 1

PoCL5: OpenCL 3.0 PoCL 5.0 Linux, Debug+Asserts, RELOC, SPIR, SPIR-V, LLVM 15.0.6, SLEEF, POCL_DEBUG

Patched sys.path, added: '/users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11'
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /users/kieffer/workspace-400/silx/build/lib.linux-x86_64-3.11/silx, configfile: ../../../pytest.ini
plugins: mock-3.8.2, xvfb-2.0.0
collected 2 items                                                                                                                                                                            

build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testCppMedFilt2d PASSED                                                                     [ 50%]
build/lib.linux-x86_64-3.11/silx/image/test/test_medianfilter.py::TestMedianFilterEngines::testOpenCLMedFilt2d PASSED                                                                  [100%]

===================================================================================== 2 passed in 0.52s ======================================================================================
[2024-03-11 12:28:26.268747955] POCL: in fn POclReleaseContext at line 53:
  *** INFO ***  | REFCOUNTS |  Release Context 20 (0x2c071c0), Refcount: 1

apparently it works with PoCL5 and LLVM15 (debian stable)

from silx.

kif avatar kif commented on June 5, 2024

I managed to get it crashing with:
OpenCL 3.0 PoCL 5.0 Linux, Debug+Asserts, RELOC, SPIR, SPIR-V, LLVM 16.0.6, SLEEF, POCL_DEBUG

from silx.

kif avatar kif commented on June 5, 2024

So the regression appears to be more in LLVM than in PoCL ...

from silx.

t20100 avatar t20100 commented on June 5, 2024

This has been fixed in pocl: pocl/pocl#1435 (comment)

Please reopen if needed

from silx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.