pyopencl icon indicating copy to clipboard operation
pyopencl copied to clipboard

Tests fail on FreeBSD

Open yurivict opened this issue 7 years ago • 6 comments

============================================================================ test session starts ============================================================================
platform freebsd11 -- Python 3.6.6, pytest-3.6.4, py-1.6.0, pluggy-0.6.0
rootdir: /usr/ports/devel/py-pyopencl/work-py36/pyopencl-2018.2, inifile:
collected 207 items                                                                                                                                                         

test_algorithm.py *** Signal 6

OS: FreeBSD 11.2 amd64 py-pyopencl-2018.2

yurivict avatar Sep 21 '18 06:09 yurivict

  • With what OpenCL implemenation (ICD)?
  • Could you run with python -m pytest -v --capture=no?

inducer avatar Sep 21 '18 06:09 inducer

Also, is this a regression, i.e. did 2018.1.x work?

inducer avatar Sep 21 '18 06:09 inducer

With what OpenCL implemenation (ICD)?

Number of platforms                               1
  Platform Name                                   Portable Computing Language
  Platform Vendor                                 The pocl project
  Platform Version                                OpenCL 2.0 pocl 0.14, LLVM 4.0.1
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             POCL

Could you run with python -m pytest -v --capture=no?

============================================================================ test session starts ============================================================================
platform freebsd11 -- Python 2.7.15, pytest-3.6.4, py-1.6.0, pluggy-0.6.0 -- /usr/local/bin/python2.7
cachedir: ../.pytest_cache
rootdir: /usr/ports/devel/py-pyopencl/work-py27/pyopencl-2018.2, inifile:
collected 207 items                                                                                                                                                         

test_algorithm.py::test_elwise_kernel[<context factory for <pyopencl.Device 'Intel(R) Core(TM) i7 CPU         930  @ 2.80GHz' on 'Portable Computing Language'>] Assertion failed: (has_meta_for_every_arg && "kernel_arg_addr_space meta incomplete"), function int pocl_get_kernel_arg_function_metadata(const char *, llvm::Module *, cl_kernel), file /wrkdirs/usr/ports/lang/pocl/work/pocl-0.14/lib/CL/pocl_llvm_api.cc, line 748.
*** Signal 6

Also, is this a regression, i.e. did 2018.1.x work?

2018.1.1 also had this problem.

yurivict avatar Sep 21 '18 07:09 yurivict

This looks like pocl may have an issue, more than pyopencl. Does pocl work with a hello-world-level OpenCL program (in C)?

inducer avatar Sep 21 '18 16:09 inducer

Hello-world program from this site works: https://us.fixstars.com/opencl/book/OpenCLProgrammingBook/first-opencl-program/

yurivict avatar Sep 21 '18 17:09 yurivict

Could you compile PyOpenCL with tracing and figure out which call fails?

inducer avatar Sep 22 '18 01:09 inducer