Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on FreeBSD #245

Open
yurivict opened this issue Sep 21, 2018 · 6 comments
Open

Tests fail on FreeBSD #245

yurivict opened this issue Sep 21, 2018 · 6 comments

Comments

@yurivict
Copy link

============================================================================ 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

@inducer
Copy link
Owner

inducer commented Sep 21, 2018

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

@inducer
Copy link
Owner

inducer commented Sep 21, 2018

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

@yurivict
Copy link
Author

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.

@inducer
Copy link
Owner

inducer commented Sep 21, 2018

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

@yurivict
Copy link
Author

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

@inducer
Copy link
Owner

inducer commented Sep 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants