Ejemplo n.º 1
0
def test_sub_perf(thread, method):
    if method == "cuda_asm" and thread.api.get_id() != cluda.cuda_id():
        pytest.skip()
    if method == "c_from_asm":
        pytest.skip()

    check_func_performance("sub(), " + method, thread, ntt.sub(method=method),
                           ref_sub, 'ff_number', ['ff_number', 'ff_number'])
Ejemplo n.º 2
0
def test_sub(thread, method):
    if method == "cuda_asm" and thread.api.get_id() != cluda.cuda_id():
        pytest.skip()
    check_func(thread, ntt.sub(method=method), ref_sub, 'ff_number',
               ['ff_number', 'ff_number'])