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

pytest tests/arm/test_arm.py is failing #131

Open
cclauss opened this issue Sep 22, 2022 · 1 comment
Open

pytest tests/arm/test_arm.py is failing #131

cclauss opened this issue Sep 22, 2022 · 1 comment

Comments

@cclauss
Copy link
Contributor

cclauss commented Sep 22, 2022

% pytest tests/arm/test_arm.py

================================== test session starts ==================================
platform darwin -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: /Users/cclauss/Python/itinerant_futurizer/PeachPy
collected 1 item

tests/arm/test_arm.py F                                                           [100%]

======================================= FAILURES ========================================
____________________________________ TestARM.runTest ____________________________________

self = <tests.arm.test_arm.TestARM testMethod=runTest>

    def runTest(self):

        # Implement function void add_1(const uint32_t *src, uint32_t *dst, size_t length)
        source_arg = Argument(ptr(const_uint32_t))
        destination_arg = Argument(ptr(uint32_t))
        length_arg = Argument(size_t)

        # This optimized kernel will target Intel Nehalem processors. Any instructions which are not
        # supported on Intel Nehalem (e.g. AVX instructions) will generate an error. If you don't have
        # a particular target in mind, use "Unknown"
>       with Function("add_1", (source_arg, destination_arg, length_arg), abi=ABI.GnuEABIHF, report_generation=False) as add_function:
E       NameError: name 'ABI' is not defined

tests/arm/test_arm.py:17: NameError
================================ short test summary info ================================
FAILED tests/arm/test_arm.py::TestARM::runTest - NameError: name 'ABI' is not defined
=================================== 1 failed in 0.03s ===================================
@Maratyszcza
Copy link
Owner

arm directory and this test in particular is a remnant of the old version of PeachPy. Probably best to remove the arm directory altogether.

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