Skip to content

Commit 699717e

Browse files
committed
Tools/ApplicationDebugger: update jacobi sample.
* Restructure the source code: - the common parts are moved to jacobi.cpp; - the computation parts have two flavors: - bugged.cpp contains computation with bugs; - fixed.cpp contains fixed computation; * Simplify reductions; * Update README. Signed-off-by: Saiapova, Natalia <[email protected]>
1 parent 8bf34a5 commit 699717e

File tree

7 files changed

+690
-764
lines changed

7 files changed

+690
-764
lines changed

Tools/ApplicationDebugger/jacobi/CMakeLists.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ endif ()
3131
set (PROJECT_NAME_BUGGED "${PROJECT_NAME}-bugged")
3232
set (PROJECT_NAME_FIXED "${PROJECT_NAME}-fixed")
3333

34-
add_executable (${PROJECT_NAME_BUGGED} src/jacobi-bugged.cpp)
35-
add_executable (${PROJECT_NAME_FIXED} src/jacobi-fixed.cpp)
34+
add_executable (${PROJECT_NAME_BUGGED} src/jacobi.cpp)
35+
add_executable (${PROJECT_NAME_FIXED} src/jacobi.cpp)
36+
target_compile_definitions (${PROJECT_NAME_FIXED} PRIVATE FIXED)
3637

3738
# Add custom target for starting a debug session
3839
add_custom_target (debug-session

0 commit comments

Comments
 (0)