OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{QueryExecutionContext.cpp} Namespace Reference

Functions

int32_t aggregate_error_codes (const std::vector< int32_t > &error_codes)
 

Function Documentation

int32_t anonymous_namespace{QueryExecutionContext.cpp}::aggregate_error_codes ( const std::vector< int32_t > &  error_codes)

Definition at line 185 of file QueryExecutionContext.cpp.

Referenced by QueryExecutionContext::launchGpuCode().

185  {
186  // Check overflow / division by zero / interrupt first
187  for (const auto err : error_codes) {
188  if (err > 0) {
189  return err;
190  }
191  }
192  for (const auto err : error_codes) {
193  if (err) {
194  return err;
195  }
196  }
197  return 0;
198 }

+ Here is the caller graph for this function: