OmniSciDB  085a039ca4
 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 189 of file QueryExecutionContext.cpp.

Referenced by QueryExecutionContext::launchGpuCode().

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

+ Here is the caller graph for this function: