(if_skip=True)
| 940 | |
| 941 | |
| 942 | def check_numba_compatibility_cpu(if_skip=True): |
| 943 | import numba |
| 944 | |
| 945 | # There's a bug in LLVM JIT linker that makes the tests fail |
| 946 | # randomly on 64-bit ARM platform for some NUMBA versions. |
| 947 | # |
| 948 | # Numba bug: |
| 949 | # https://github.com/numba/numba/issues/8567 |
| 950 | if platform.processor().lower() in ("arm64", "aarch64", "armv8") and ( |
| 951 | Version(numba.__version__) >= Version("0.57.0") |
| 952 | and Version(numba.__version__) < Version("0.59.0") |
| 953 | ): |
| 954 | if if_skip: |
| 955 | raise SkipTest() |
| 956 | else: |
| 957 | return False |
| 958 | if not if_skip: |
| 959 | return True |
| 960 | |
| 961 | |
| 962 | def check_numba_compatibility_gpu(if_skip=True, use_experimental: bool = False): |
no outgoing calls
no test coverage detected