-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Closed
Description
Here I have compiled with the clang-cl.exe frontend replacing the standard visual studio 2015 cl.exe
binary. I first installed http://llvm.org/pre-releases/win-snapshots/LLVM-5.0.0-r295586-win64.exe from http://llvm.org/builds , then:
PS C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin\amd64> cp 'C:\Program Files\LLVM\msbuild-bin\cl.exe' .
This results in the following test failures:
======================================================================
FAIL: test_umath.TestComplexFunctions.test_branch_cuts(<ufunc 'arcsin'>, [-2, 2], [1j, 1j], 1, -1, True)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\mb312\AppData\Roaming\Python\Python35\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\repos\numpy\numpy\core\tests\test_umath.py", line 2075, in _check_branch_cut
assert_(np.all(np.absolute(y0.imag - yp.imag) < atol), (y0, yp))
File "C:\repos\numpy\numpy\testing\utils.py", line 91, in assert_
raise AssertionError(smsg)
AssertionError: (array([-1.57079633+0.j, 1.57079633+0.j]), array([-1.57079633+1.3169579j, 1.57079633+1.3169579j]))
======================================================================
FAIL: test_umath.TestComplexFunctions.test_branch_cuts(<ufunc 'arcsinh'>, [-2j, 2j], [1, 1], -1, 1, True)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\mb312\AppData\Roaming\Python\Python35\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\repos\numpy\numpy\core\tests\test_umath.py", line 2074, in _check_branch_cut
assert_(np.all(np.absolute(y0.real - yp.real) < atol), (y0, yp))
File "C:\repos\numpy\numpy\testing\utils.py", line 91, in assert_
raise AssertionError(smsg)
AssertionError: (array([ 0.-1.57079633j, 0.+1.57079633j]), array([ 1.3169579-1.57079633j, 1.3169579+1.57079633j]))
======================================================================
FAIL: test_umath.TestComplexFunctions.test_branch_cuts_complex64(<ufunc 'arcsin'>, [-2, 2], [1j, 1j], 1, -1, True, <clas
s 'numpy.complex64'>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\mb312\AppData\Roaming\Python\Python35\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\repos\numpy\numpy\core\tests\test_umath.py", line 2075, in _check_branch_cut
assert_(np.all(np.absolute(y0.imag - yp.imag) < atol), (y0, yp))
File "C:\repos\numpy\numpy\testing\utils.py", line 91, in assert_
raise AssertionError(smsg)
AssertionError: (array([-1.57079637+0.j, 1.57079637+0.j], dtype=complex64), array([-1.57078254+1.31695795j, 1.57078254
+1.31695795j], dtype=complex64))
======================================================================
FAIL: test_umath.TestComplexFunctions.test_branch_cuts_complex64(<ufunc 'arcsinh'>, [-2j, 2j], [1, 1], -1, 1, True, <cla
ss 'numpy.complex64'>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\mb312\AppData\Roaming\Python\Python35\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\repos\numpy\numpy\core\tests\test_umath.py", line 2074, in _check_branch_cut
assert_(np.all(np.absolute(y0.real - yp.real) < atol), (y0, yp))
File "C:\repos\numpy\numpy\testing\utils.py", line 91, in assert_
raise AssertionError(smsg)
AssertionError: (array([ 0.-1.57079637j, 0.+1.57079637j], dtype=complex64), array([ 1.31695795-1.57078254j, 1.31695795
+1.57078254j], dtype=complex64))
======================================================================
FAIL: test_umath.TestComplexFunctions.test_loss_of_precision(<class 'numpy.complex64'>,)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\mb312\AppData\Roaming\Python\Python35\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\repos\numpy\numpy\core\tests\test_umath.py", line 1969, in check_loss_of_precision
assert_(np.all(d < 1e-15))
File "C:\repos\numpy\numpy\testing\utils.py", line 91, in assert_
raise AssertionError(smsg)
AssertionError
There are no test errors compiling and testing the same numpy checkout with Visual C++ cl.exe
(numpy commit 9bba99d). Any hints as to what might be going on?
Metadata
Metadata
Assignees
Labels
No labels