When I build the source code, sometimes I failed to get ‘PASSED’ by running run_test.py.
(Some builds are ok, but some builds are not.)
Do I need to roll back to the previous commit or can I just ignore the failures/errors?
(I guess that commits in master branch have been passed unit tests.)
The error here comes from magma apparently.
I’m afraid I’m not very familiar with this part of the code but it is used only for linear algebra on the GPU. So if you don’t use these, you will be safe
Also master should always pass the tests (it might have been broken briefly at some point but that should be rare).
I see.
BTW, some other test files like test_cpp_extensions.py seems to be outdated. It outputs errors like
======================================================================
ERROR: test_backward (__main__.TestCppExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_cpp_extensions.py", line 72, in test_backward
mm = cpp_extension.MatrixMultiplier(4, 8)
NameError: name 'cpp_extension' is not defined
======================================================================
ERROR: test_cuda_extension (__main__.TestCppExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_cpp_extensions.py", line 113, in test_cuda_extension
import torch_test_cpp_extension.cuda as cuda_extension
ModuleNotFoundError: No module named 'torch_test_cpp_extension'
I guess the sub-directory cpp_extension has been changed to cpp_extensions recently.