Skip to content

IterativeGridGenerator.cpp:43:25: error: ‘d’ not specified in enclosing ‘parallel’ #127

@jschueller

Description

@jschueller

sgpp fails to build with gcc 9.x:

optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.cpp: In member function ‘void sgpp::optimization::IterativeGridGenerator::evalFunction(size_t)’:
optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.cpp:43:25: error: ‘d’ not specified in enclosing ‘parallel’
   43 |     base::DataVector x(d);
      |                         ^
optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.cpp:41:9: error: enclosing ‘parallel’
   41 | #pragma omp parallel shared(fX, oldGridSize, gridStorage) default(none)
      |         ^~~
optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.cpp:55:9: error: ‘curGridSize’ not specified in enclosing ‘parallel’
   55 | #pragma omp for
      |         ^~~
optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.cpp:41:9: error: enclosing ‘parallel’
   41 | #pragma omp parallel shared(fX, oldGridSize, gridStorage) default(none)
      |         ^~~
scons: *** [optimization/src/sgpp/optimization/gridgen/IterativeGridGenerator.os] Error 1
optimization/src/sgpp/optimization/optimizer/unconstrained/DifferentialEvolution.cpp: In member function ‘virtual void sgpp::optimization::optimizer::DifferentialEvolution::optimize()’:
optimization/src/sgpp/optimization/optimizer/unconstrained/DifferentialEvolution.cpp:135:27: error: ‘d’ not specified in enclosing ‘parallel’
  135 |       base::DataVector y(d);
      |                           ^
optimization/src/sgpp/optimization/optimizer/unconstrained/DifferentialEvolution.cpp:132:9: error: enclosing ‘parallel’
  132 | #pragma omp parallel shared(k, a_k, b_k, c_k, j_k, prob_k, xOld, fx, fCurrentOpt, xOptIndex, \
      |         ^~~
scons: *** [optimization/src/sgpp/optimization/optimizer/unconstrained/DifferentialEvolution.os] Error 1
scons: building terminated because of errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCrashes, freezes, compilation/run-time errors, undesirable behavior, wrong info in help/docsfixedIssues that have been fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions