Skip to content

Commit

Permalink
[SYCLomatic #1220] Bring back some check of --helper-function-prefere…
Browse files Browse the repository at this point in the history
…nce.

Signed-off-by: Tang, Jiajun [email protected]
  • Loading branch information
tangjj11 committed Aug 31, 2023
1 parent 445df57 commit e0a8c68
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,24 @@ def migrate_test():
"out_no_q_d/kernel2.dp.cpp", "dpct::get_current_device", False
)

# Check "dpct::get_default_queue" without option.
# res = res and check_file_contain_or_not(
# "out_default/kernel1.dp.cpp", "dpct::get_default_queue", True
# )
# res = res and check_file_contain_or_not(
# "out_default/kernel2.dp.cpp", "dpct::get_default_queue", True
# )

# Check "dpct::get_default_queue" with option --helper-function-preference=no-queue-device.
# res = res and check_file_contain_or_not(
# "out_no_q_d/main.dp.cpp", "dpct::get_default_queue", False
# )
# res = res and check_file_contain_or_not(
# "out_no_q_d/kernel1.dp.cpp", "dpct::get_default_queue", False
# )
# res = res and check_file_contain_or_not(
# "out_no_q_d/kernel2.dp.cpp", "dpct::get_default_queue", False
# )
# Check "dpct::get_in_order_queue" without option.
res = res and check_file_contain_or_not(
"out_default/kernel1.dp.cpp", "dpct::get_in_order_queue", True
)
res = res and check_file_contain_or_not(
"out_default/kernel2.dp.cpp", "dpct::get_in_order_queue", True
)

# Check "dpct::get_in_order_queue" with option --helper-function-preference=no-queue-device.
res = res and check_file_contain_or_not(
"out_no_q_d/main.dp.cpp", "dpct::get_in_order_queue", False
)
res = res and check_file_contain_or_not(
"out_no_q_d/kernel1.dp.cpp", "dpct::get_in_order_queue", False
)
res = res and check_file_contain_or_not(
"out_no_q_d/kernel2.dp.cpp", "dpct::get_in_order_queue", False
)

# Check "dpct::device_ext" without option.
res = res and check_file_contain_or_not(
Expand Down

0 comments on commit e0a8c68

Please sign in to comment.