Skip to content

ApplicationDebugger: update make targets with ONEAPI_DEVICE_SELECTOR #1416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Tools/ApplicationDebugger/array-transform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ add_custom_target (debug-session
DEPENDS ${PROJECT_NAME})

# Add custom target for running
add_custom_target(run ./${PROJECT_NAME} cpu
add_custom_target(run ONEAPI_DEVICE_SELECTOR=*:cpu ./${PROJECT_NAME}
DEPENDS ${PROJECT_NAME})

add_custom_target(run-cpu ./${PROJECT_NAME} cpu
add_custom_target(run-cpu ONEAPI_DEVICE_SELECTOR=*:cpu ./${PROJECT_NAME}
DEPENDS ${PROJECT_NAME})

add_custom_target(run-gpu ./${PROJECT_NAME} gpu
add_custom_target(run-gpu ONEAPI_DEVICE_SELECTOR=level_zero:gpu ./${PROJECT_NAME}
DEPENDS ${PROJECT_NAME})

add_custom_target(run-fpga ./${PROJECT_NAME} accelerator
add_custom_target(run-fpga ONEAPI_DEVICE_SELECTOR=*:fpga ./${PROJECT_NAME}
DEPENDS ${PROJECT_NAME})
14 changes: 7 additions & 7 deletions Tools/ApplicationDebugger/jacobi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@ add_custom_target (debug-session
DEPENDS ${PROJECT_NAME_BUGGED})

# Add custom target for running
add_custom_target(run ./${PROJECT_NAME_BUGGED} cpu
add_custom_target(run ONEAPI_DEVICE_SELECTOR=*:cpu ./${PROJECT_NAME_BUGGED}
DEPENDS ${PROJECT_NAME_BUGGED})

add_custom_target(run-cpu-fixed ./${PROJECT_NAME_FIXED} cpu
add_custom_target(run-cpu-fixed ONEAPI_DEVICE_SELECTOR=*:cpu ./${PROJECT_NAME_FIXED}
DEPENDS ${PROJECT_NAME_FIXED})
add_custom_target(run-cpu ./${PROJECT_NAME_BUGGED} cpu
add_custom_target(run-cpu ONEAPI_DEVICE_SELECTOR=*:cpu ./${PROJECT_NAME_BUGGED}
DEPENDS ${PROJECT_NAME_BUGGED})

add_custom_target(run-gpu-fixed ./${PROJECT_NAME_FIXED} gpu
add_custom_target(run-gpu-fixed ONEAPI_DEVICE_SELECTOR=level_zero:gpu ./${PROJECT_NAME_FIXED}
DEPENDS ${PROJECT_NAME_FIXED})
add_custom_target(run-gpu ./${PROJECT_NAME_BUGGED} gpu
add_custom_target(run-gpu ONEAPI_DEVICE_SELECTOR=level_zero:gpu ./${PROJECT_NAME_BUGGED}
DEPENDS ${PROJECT_NAME_BUGGED})

add_custom_target(run-fpga-fixed ./${PROJECT_NAME_FIXED} accelerator
add_custom_target(run-fpga-fixed ONEAPI_DEVICE_SELECTOR=*:fpga ./${PROJECT_NAME_FIXED}
DEPENDS ${PROJECT_NAME_FIXED})
add_custom_target(run-fpga ./${PROJECT_NAME_BUGGED} accelerator
add_custom_target(run-fpga ONEAPI_DEVICE_SELECTOR=*:fpga ./${PROJECT_NAME_BUGGED}
DEPENDS ${PROJECT_NAME_BUGGED})