11 #ifndef _MULTITASKKERNELNORMALIZER_H___
12 #define _MULTITASKKERNELNORMALIZER_H___
76 if (strcmp(k->
get_name(),
"WeightedDegree") == 0) {
77 SG_INFO(
"using first-element normalization\n");
80 SG_INFO(
"no inner normalization for non-WDK kernel\n");
106 std::sort(vec.begin(), vec.end());
109 std::vector<int32_t>::iterator endLocation = std::unique(vec.begin(), vec.end());
112 int32_t num_vec = std::distance(vec.begin(), endLocation);
149 SG_ERROR(
"normalize_lhs not implemented");
159 SG_ERROR(
"normalize_rhs not implemented");
204 ASSERT(task_lhs < num_tasks && task_lhs >= 0);
205 ASSERT(task_rhs < num_tasks && task_rhs >= 0);
220 ASSERT(task_lhs < num_tasks && task_lhs >= 0);
221 ASSERT(task_rhs < num_tasks && task_rhs >= 0);
230 return "MultitaskKernelNormalizer";