Skip to content

Conversation

@victorapm
Copy link
Contributor

Fixes for the HIP build.

TODO:

In file included from geos-path/src/coreComponents/linearAlgebra/solvers/BicgstabSolver.cpp:21:
In file included from geos-path/src/coreComponents/linearAlgebra/solvers/BicgstabSolver.hpp:23:
In file included from geos-path/src/coreComponents/linearAlgebra/solvers/KrylovSolver.hpp:23:
In file included from geos-path/src/coreComponents/linearAlgebra/utilities/BlockVectorView.hpp:23:
In file included from geos-path/src/coreComponents/linearAlgebra/common/common.hpp:22:
In file included from geos-path/src/coreComponents/common/DataTypes.hpp:44:
geos-path/src/coreComponents/LvArray/src/ChaiBuffer.hpp:42:67: error: reference to __host__ function 'getInstance' in __host__ __device__ function
   42 |   static chai::ArrayManager & arrayManager = *chai::ArrayManager::getInstance();
      |                                                                   ^
geos-path/src/coreComponents/LvArray/src/ChaiBuffer.hpp:471:27: note: called by 'move'
  471 |     auto & am = internal::getArrayManager();
      |                           ^
geos-path/src/coreComponents/LvArray/src/bufferManipulation.hpp:197:9: note: called by 'free<LvArray::ChaiBuffer<double>>'
  197 |     buf.move( MemorySpace::host, true );
      |         ^
geos-path/src/coreComponents/LvArray/src/Array.hpp:165:25: note: called by '~Array'
  165 |   { bufferManipulation::free( this->m_dataBuffer, this->size() ); }
      |                         ^
geos-path/src/coreComponents/LvArray/src/Array.hpp:164:3: note: called by '~KrylovSolver'
  164 |   ~Array()
      |   ^
geos-path/src/coreComponents/linearAlgebra/solvers/KrylovSolver.hpp:37:7: note: called by '~BicgstabSolver'
   37 | class KrylovSolver : public LinearOperator< VECTOR >
      |       ^
/p/lustre5/vicmagri/projects/geos-tpls/tuolumne/cce-20.0.0/chai-git.4b9060b18b9bec1167026cfb3132bd540c4bd56b_develop-k2k63546saquu7i3h3xitldgipzh22ve/include/chai/ArrayManager.hpp:162:24: note: 'getInstance' declared here
  162 |   static ArrayManager* getInstance();
      |                        ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants