Beispiel #1
0
def test_add_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("add(), " + method, thread, ntt.add(method=method),
                           ref_add, 'ff_number', ['ff_number', 'ff_number'])
Beispiel #2
0
def test_add(thread, method):
    if method == "cuda_asm" and thread.api.get_id() != cluda.cuda_id():
        pytest.skip()
    check_func(thread, ntt.add(method=method), ref_add, 'ff_number',
               ['ff_number', 'ff_number'])