OmniSciDB  a5dc49c757
 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 190 of file QueryExecutionContext.cpp.

Referenced by QueryExecutionContext::launchGpuCode().

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

+ Here is the caller graph for this function: