def skip_if_cc_major_lt(self, min_required, reason):
        """
        Skip the current test if the compute capability of the device is
        less than `min_required`.
        """
        ctx = cuda.current_context()
        cc_major = ctx.device.compute_capability[0]
        if cc_major < min_required:
            self.skipTest(reason)

        Skip the current test if the compute capability of the device is
        less than `min_required`.
        
numba/cuda/tests/cudadrv/test_managed_alloc.py