示例#1
0
 def test_cpu():
     ret = ti.call_internal("test_internal_func_args", 1.0, 2.0, 3)
     assert ret == 9
示例#2
0
 def test():
     for _ in range(10):
         ti.call_internal("do_nothing")
示例#3
0
 def test():
     ti.call_internal("test_node_allocator")
示例#4
0
 def test_cpu():
     ti.call_internal("test_node_allocator_gc_cpu")
示例#5
0
 def test():
     ti.call_internal("test_list_manager")
示例#6
0
 def test():
     ti.call_internal("refresh_counter")
示例#7
0
 def func():
     ti.call_internal("test_stack")
示例#8
0
 def test():
     for i in range(32):
         ti.call_internal("test_shfl")
示例#9
0
 def test():
     for i in range(48):
         if i % 2 == 0:
             ti.call_internal("test_active_mask")