MCPcopy Create free account
hub / github.com/NVIDIA/DALI / check_numba_compatibility_cpu

Function check_numba_compatibility_cpu

dali/test/python/test_utils.py:942–959  ·  view source on GitHub ↗
(if_skip=True)

Source from the content-addressed store, hash-verified

940
941
942def 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
962def check_numba_compatibility_gpu(if_skip=True, use_experimental: bool = False):

Callers 4

setUpMethod · 0.90
test_numba_pluginFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected