(if_skip=True, use_experimental: bool = False)
| 960 | |
| 961 | |
| 962 | def check_numba_compatibility_gpu(if_skip=True, use_experimental: bool = False): |
| 963 | if use_experimental: |
| 964 | from nvidia.dali.plugin.numba.experimental import NumbaFunction |
| 965 | else: |
| 966 | from nvidia.dali.plugin.numba import NumbaFunction |
| 967 | |
| 968 | if not NumbaFunction._check_minimal_numba_version( |
| 969 | False |
| 970 | ) or not NumbaFunction._check_cuda_compatibility(False): |
| 971 | if if_skip: |
| 972 | raise SkipTest() |
| 973 | else: |
| 974 | return False |
| 975 | if not if_skip: |
| 976 | return True |
| 977 | |
| 978 | |
| 979 | def create_sign_off_registry(): |
no test coverage detected