MOT icon indicating copy to clipboard operation
MOT copied to clipboard

Test failures

Open antoscha opened this issue 3 years ago • 1 comments

PYOPENCL_COMPILER_OUTPUT=1 python test_cl_routines.py  [11:15:11]
/usr/lib/python3.9/site-packages/pyopencl/__init__.py:264: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on <pyopencl.Device 'Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz' on 'Intel(R) CPU Runtime for OpenCL(TM) Applications' at 0x557f58218308> succeeded, but said:

Compilation started
Compilation done
Linking started
Linking done
Device build started
Device build done
Kernel <kernel_lmmin> was not vectorized
Done.
  warn(text, CompilerWarning)
/usr/lib/python3.9/site-packages/pyopencl/__init__.py:264: CompilerWarning: From-binary build succeeded, but resulted in non-empty logs:
Build on <pyopencl.Device 'Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz' on 'Intel(R) CPU Runtime for OpenCL(TM) Applications' at 0x557f58218308> succeeded, but said:

Device build started
Device build done
Reload Program Binary Object.
  warn(text, CompilerWarning)
F/usr/lib/python3.9/site-packages/pyopencl/__init__.py:264: CompilerWarning: Built kernel retrieved from cache. Original from-source build had warnings:
Build on <pyopencl.Device 'Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz' on 'Intel(R) CPU Runtime for OpenCL(TM) Applications' at 0x557f58218308> succeeded, but said:

Compilation started
Compilation done
Linking started
Linking done
Device build started
Device build done
Kernel <kernel_nmsimplex> was not vectorized
Done.
  warn(text, CompilerWarning)
F
======================================================================
FAIL: test_model (__main__.TestLSQNonLinExample)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/MOT-0.11.3/tests/test_cl_routines.py", line 90, in test_model
    self.assertAlmostEqual(v[0, ind], 0.2578, places=3, msg=method)
AssertionError: 0.3 != 0.2578 within 3 places (0.04220001192092898 difference) : Levenberg-Marquardt

======================================================================
FAIL: test_model (__main__.TestRosenbrock)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/MOT-0.11.3/tests/test_cl_routines.py", line 56, in test_model
    self.assertAlmostEqual(v[0, ind], 1, places=3, msg=method)
AssertionError: -0.9620513 != 1 within 3 places (1.962051272392273 difference) : Nelder-Mead

----------------------------------------------------------------------
Ran 2 tests in 0.121s

FAILED (failures=2)

Arch Linux pyopencl==2021.1.4 scipy==1.7.3 numpy==1.21.2

antoscha avatar Nov 25 '21 09:11 antoscha

I unfortunately don't have time to look into this at the moment. OpenCL can sometimes be a little finicky. I'll put it on the list for the next time I have a chance to work on this.

robbert-harms avatar Dec 10 '21 09:12 robbert-harms