@@ -28,7 +28,7 @@ def test_codegen_with_max_inline_threshold():
2828 and pipeline to compile both host callable "kernels" and device-only
2929 "device_func" functions.
3030
31- Unless the inline_threshold is set to 3 , the `spir_func` function is not
31+ Unless the inline_threshold is set to >0 , the `spir_func` function is not
3232 inlined into the wrapper function. The test checks if the `spir_func`
3333 function is fully inlined into the wrapper. The test is rather rudimentary
3434 and only checks the count of function in the generated module.
@@ -39,7 +39,7 @@ def test_codegen_with_max_inline_threshold():
3939 i64arr_ty = DpnpNdArray (ndim = 1 , dtype = int64 , layout = "C" , queue = queue_ty )
4040 kernel_sig = types .void (ItemType (1 ), i64arr_ty , i64arr_ty , i64arr_ty )
4141
42- disp = dpex_exp .kernel (inline_threshold = 3 )(kernel_func )
42+ disp = dpex_exp .kernel (inline_threshold = 1 )(kernel_func )
4343 disp .compile (kernel_sig )
4444 kcres = disp .overloads [kernel_sig .args ]
4545 llvm_ir_mod = kcres .library ._final_module
@@ -60,7 +60,7 @@ def test_codegen_without_max_inline_threshold():
6060 i64arr_ty = DpnpNdArray (ndim = 1 , dtype = int64 , layout = "C" , queue = queue_ty )
6161 kernel_sig = types .void (ItemType (1 ), i64arr_ty , i64arr_ty , i64arr_ty )
6262
63- disp = dpex_exp .kernel (kernel_func )
63+ disp = dpex_exp .kernel (inline_threshold = 0 )( kernel_func )
6464 disp .compile (kernel_sig )
6565 kcres = disp .overloads [kernel_sig .args ]
6666 llvm_ir_mod = kcres .library ._final_module
0 commit comments