File tree Expand file tree Collapse file tree
include/osp/bsp/scheduler/GreedySchedulers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,6 +118,22 @@ target_compile_options(ProjectExecutableFlags INTERFACE
118118 >
119119)
120120
121+ # Flag for address sanitizer
122+ option (ENABLE_ASAN "Enable Address Sanitizer" OFF )
123+ if (ENABLE_ASAN)
124+ message (STATUS "Address sanitizer enabled." )
125+ target_compile_options (ProjectExecutableFlags INTERFACE -fsanitize=address )
126+ target_link_options (ProjectExecutableFlags INTERFACE -fsanitize=address )
127+ endif ()
128+
129+ # Flag for undefined behaviour sanitizer
130+ option (ENABLE_UBSAN "Enable Undefined Behaviour Sanitizer" OFF )
131+ if (ENABLE_UBSAN)
132+ message (STATUS "Undefined behaviour sanitizer enabled." )
133+ target_compile_options (ProjectExecutableFlags INTERFACE -fsanitize=undefined )
134+ target_link_options (ProjectExecutableFlags INTERFACE -fsanitize=undefined )
135+ endif ()
136+
121137# --- Find External Libraries ---
122138# Find COPT libraries
123139find_package (COPT )
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class CilkScheduler : public Scheduler<GraphT> {
171171
172172 // Find new ready jobs
173173 while (!finishTimes.empty () && finishTimes.begin ()->first == time) {
174- const TvPair & currentPair = *finishTimes.begin ();
174+ const TvPair currentPair = *finishTimes.begin ();
175175 finishTimes.erase (finishTimes.begin ());
176176 const VertexIdxT<GraphT> &node = currentPair.second ;
177177 if (node != std::numeric_limits<VertexIdxT<GraphT>>::max ()) {
You can’t perform that action at this time.
0 commit comments