xtgeo 4.10.0__cp310-cp310-win_amd64.whl → 4.11.0__cp310-cp310-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xtgeo might be problematic. Click here for more details.

Files changed (546) hide show
  1. xtgeo/_cxtgeo.cp310-win_amd64.pyd +0 -0
  2. xtgeo/_internal.cp310-win_amd64.pyd +0 -0
  3. xtgeo/common/version.py +16 -3
  4. xtgeo/cube/_cube_window_attributes.py +13 -4
  5. xtgeo/grid3d/_grid_etc1.py +10 -5
  6. xtgeo/grid3d/grid.py +22 -6
  7. xtgeo/metadata/metadata.py +20 -13
  8. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/METADATA +1 -1
  9. xtgeo-4.11.0.dist-info/RECORD +117 -0
  10. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/WHEEL +1 -1
  11. xtgeo/include/eigen3/Eigen/Cholesky +0 -45
  12. xtgeo/include/eigen3/Eigen/CholmodSupport +0 -48
  13. xtgeo/include/eigen3/Eigen/Core +0 -384
  14. xtgeo/include/eigen3/Eigen/Dense +0 -7
  15. xtgeo/include/eigen3/Eigen/Eigen +0 -2
  16. xtgeo/include/eigen3/Eigen/Eigenvalues +0 -60
  17. xtgeo/include/eigen3/Eigen/Geometry +0 -59
  18. xtgeo/include/eigen3/Eigen/Householder +0 -29
  19. xtgeo/include/eigen3/Eigen/IterativeLinearSolvers +0 -48
  20. xtgeo/include/eigen3/Eigen/Jacobi +0 -32
  21. xtgeo/include/eigen3/Eigen/KLUSupport +0 -41
  22. xtgeo/include/eigen3/Eigen/LU +0 -47
  23. xtgeo/include/eigen3/Eigen/MetisSupport +0 -35
  24. xtgeo/include/eigen3/Eigen/OrderingMethods +0 -70
  25. xtgeo/include/eigen3/Eigen/PaStiXSupport +0 -49
  26. xtgeo/include/eigen3/Eigen/PardisoSupport +0 -35
  27. xtgeo/include/eigen3/Eigen/QR +0 -50
  28. xtgeo/include/eigen3/Eigen/QtAlignedMalloc +0 -39
  29. xtgeo/include/eigen3/Eigen/SPQRSupport +0 -34
  30. xtgeo/include/eigen3/Eigen/SVD +0 -50
  31. xtgeo/include/eigen3/Eigen/Sparse +0 -34
  32. xtgeo/include/eigen3/Eigen/SparseCholesky +0 -37
  33. xtgeo/include/eigen3/Eigen/SparseCore +0 -69
  34. xtgeo/include/eigen3/Eigen/SparseLU +0 -50
  35. xtgeo/include/eigen3/Eigen/SparseQR +0 -36
  36. xtgeo/include/eigen3/Eigen/StdDeque +0 -27
  37. xtgeo/include/eigen3/Eigen/StdList +0 -26
  38. xtgeo/include/eigen3/Eigen/StdVector +0 -27
  39. xtgeo/include/eigen3/Eigen/SuperLUSupport +0 -64
  40. xtgeo/include/eigen3/Eigen/UmfPackSupport +0 -40
  41. xtgeo/include/eigen3/Eigen/src/Cholesky/LDLT.h +0 -688
  42. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT.h +0 -558
  43. xtgeo/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +0 -99
  44. xtgeo/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +0 -682
  45. xtgeo/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +0 -413
  46. xtgeo/include/eigen3/Eigen/src/Core/Array.h +0 -417
  47. xtgeo/include/eigen3/Eigen/src/Core/ArrayBase.h +0 -226
  48. xtgeo/include/eigen3/Eigen/src/Core/ArrayWrapper.h +0 -209
  49. xtgeo/include/eigen3/Eigen/src/Core/Assign.h +0 -90
  50. xtgeo/include/eigen3/Eigen/src/Core/AssignEvaluator.h +0 -1010
  51. xtgeo/include/eigen3/Eigen/src/Core/Assign_MKL.h +0 -178
  52. xtgeo/include/eigen3/Eigen/src/Core/BandMatrix.h +0 -353
  53. xtgeo/include/eigen3/Eigen/src/Core/Block.h +0 -448
  54. xtgeo/include/eigen3/Eigen/src/Core/BooleanRedux.h +0 -162
  55. xtgeo/include/eigen3/Eigen/src/Core/CommaInitializer.h +0 -164
  56. xtgeo/include/eigen3/Eigen/src/Core/ConditionEstimator.h +0 -175
  57. xtgeo/include/eigen3/Eigen/src/Core/CoreEvaluators.h +0 -1741
  58. xtgeo/include/eigen3/Eigen/src/Core/CoreIterators.h +0 -132
  59. xtgeo/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +0 -183
  60. xtgeo/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +0 -1001
  61. xtgeo/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +0 -197
  62. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +0 -103
  63. xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +0 -132
  64. xtgeo/include/eigen3/Eigen/src/Core/DenseBase.h +0 -701
  65. xtgeo/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +0 -685
  66. xtgeo/include/eigen3/Eigen/src/Core/DenseStorage.h +0 -652
  67. xtgeo/include/eigen3/Eigen/src/Core/Diagonal.h +0 -258
  68. xtgeo/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +0 -391
  69. xtgeo/include/eigen3/Eigen/src/Core/DiagonalProduct.h +0 -28
  70. xtgeo/include/eigen3/Eigen/src/Core/Dot.h +0 -318
  71. xtgeo/include/eigen3/Eigen/src/Core/EigenBase.h +0 -160
  72. xtgeo/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +0 -150
  73. xtgeo/include/eigen3/Eigen/src/Core/Fuzzy.h +0 -155
  74. xtgeo/include/eigen3/Eigen/src/Core/GeneralProduct.h +0 -465
  75. xtgeo/include/eigen3/Eigen/src/Core/GenericPacketMath.h +0 -1040
  76. xtgeo/include/eigen3/Eigen/src/Core/GlobalFunctions.h +0 -194
  77. xtgeo/include/eigen3/Eigen/src/Core/IO.h +0 -258
  78. xtgeo/include/eigen3/Eigen/src/Core/IndexedView.h +0 -237
  79. xtgeo/include/eigen3/Eigen/src/Core/Inverse.h +0 -117
  80. xtgeo/include/eigen3/Eigen/src/Core/Map.h +0 -171
  81. xtgeo/include/eigen3/Eigen/src/Core/MapBase.h +0 -310
  82. xtgeo/include/eigen3/Eigen/src/Core/MathFunctions.h +0 -2057
  83. xtgeo/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +0 -200
  84. xtgeo/include/eigen3/Eigen/src/Core/Matrix.h +0 -565
  85. xtgeo/include/eigen3/Eigen/src/Core/MatrixBase.h +0 -547
  86. xtgeo/include/eigen3/Eigen/src/Core/NestByValue.h +0 -85
  87. xtgeo/include/eigen3/Eigen/src/Core/NoAlias.h +0 -109
  88. xtgeo/include/eigen3/Eigen/src/Core/NumTraits.h +0 -335
  89. xtgeo/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +0 -232
  90. xtgeo/include/eigen3/Eigen/src/Core/PermutationMatrix.h +0 -605
  91. xtgeo/include/eigen3/Eigen/src/Core/PlainObjectBase.h +0 -1128
  92. xtgeo/include/eigen3/Eigen/src/Core/Product.h +0 -191
  93. xtgeo/include/eigen3/Eigen/src/Core/ProductEvaluators.h +0 -1179
  94. xtgeo/include/eigen3/Eigen/src/Core/Random.h +0 -218
  95. xtgeo/include/eigen3/Eigen/src/Core/Redux.h +0 -515
  96. xtgeo/include/eigen3/Eigen/src/Core/Ref.h +0 -381
  97. xtgeo/include/eigen3/Eigen/src/Core/Replicate.h +0 -142
  98. xtgeo/include/eigen3/Eigen/src/Core/Reshaped.h +0 -454
  99. xtgeo/include/eigen3/Eigen/src/Core/ReturnByValue.h +0 -119
  100. xtgeo/include/eigen3/Eigen/src/Core/Reverse.h +0 -217
  101. xtgeo/include/eigen3/Eigen/src/Core/Select.h +0 -164
  102. xtgeo/include/eigen3/Eigen/src/Core/SelfAdjointView.h +0 -365
  103. xtgeo/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +0 -47
  104. xtgeo/include/eigen3/Eigen/src/Core/Solve.h +0 -188
  105. xtgeo/include/eigen3/Eigen/src/Core/SolveTriangular.h +0 -235
  106. xtgeo/include/eigen3/Eigen/src/Core/SolverBase.h +0 -168
  107. xtgeo/include/eigen3/Eigen/src/Core/StableNorm.h +0 -251
  108. xtgeo/include/eigen3/Eigen/src/Core/StlIterators.h +0 -463
  109. xtgeo/include/eigen3/Eigen/src/Core/Stride.h +0 -116
  110. xtgeo/include/eigen3/Eigen/src/Core/Swap.h +0 -68
  111. xtgeo/include/eigen3/Eigen/src/Core/Transpose.h +0 -464
  112. xtgeo/include/eigen3/Eigen/src/Core/Transpositions.h +0 -386
  113. xtgeo/include/eigen3/Eigen/src/Core/TriangularMatrix.h +0 -1001
  114. xtgeo/include/eigen3/Eigen/src/Core/VectorBlock.h +0 -96
  115. xtgeo/include/eigen3/Eigen/src/Core/VectorwiseOp.h +0 -784
  116. xtgeo/include/eigen3/Eigen/src/Core/Visitor.h +0 -381
  117. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +0 -372
  118. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +0 -228
  119. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +0 -1574
  120. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +0 -115
  121. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +0 -422
  122. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +0 -362
  123. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +0 -2303
  124. xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +0 -89
  125. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +0 -417
  126. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +0 -90
  127. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +0 -2937
  128. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +0 -221
  129. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +0 -629
  130. xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +0 -2711
  131. xtgeo/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +0 -258
  132. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +0 -700
  133. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +0 -117
  134. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +0 -1649
  135. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +0 -110
  136. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Half.h +0 -942
  137. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +0 -49
  138. xtgeo/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +0 -120
  139. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +0 -103
  140. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +0 -1685
  141. xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +0 -80
  142. xtgeo/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +0 -23
  143. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +0 -648
  144. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +0 -387
  145. xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +0 -1233
  146. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +0 -584
  147. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +0 -183
  148. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +0 -75
  149. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +0 -4587
  150. xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +0 -1419
  151. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +0 -351
  152. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +0 -199
  153. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +0 -1505
  154. xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +0 -142
  155. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +0 -44
  156. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +0 -752
  157. xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +0 -49
  158. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +0 -232
  159. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +0 -301
  160. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +0 -670
  161. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +0 -694
  162. xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +0 -85
  163. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +0 -426
  164. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +0 -233
  165. xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +0 -1060
  166. xtgeo/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +0 -177
  167. xtgeo/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +0 -541
  168. xtgeo/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +0 -189
  169. xtgeo/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +0 -166
  170. xtgeo/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +0 -25
  171. xtgeo/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +0 -1131
  172. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +0 -2645
  173. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +0 -517
  174. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +0 -317
  175. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +0 -145
  176. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +0 -124
  177. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +0 -518
  178. xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +0 -136
  179. xtgeo/include/eigen3/Eigen/src/Core/products/Parallelizer.h +0 -180
  180. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +0 -544
  181. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +0 -295
  182. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +0 -262
  183. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +0 -118
  184. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +0 -133
  185. xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +0 -94
  186. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +0 -472
  187. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +0 -317
  188. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +0 -350
  189. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +0 -255
  190. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +0 -337
  191. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +0 -167
  192. xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +0 -148
  193. xtgeo/include/eigen3/Eigen/src/Core/util/BlasUtil.h +0 -583
  194. xtgeo/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +0 -512
  195. xtgeo/include/eigen3/Eigen/src/Core/util/Constants.h +0 -563
  196. xtgeo/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +0 -106
  197. xtgeo/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +0 -322
  198. xtgeo/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +0 -186
  199. xtgeo/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +0 -272
  200. xtgeo/include/eigen3/Eigen/src/Core/util/MKL_support.h +0 -137
  201. xtgeo/include/eigen3/Eigen/src/Core/util/Macros.h +0 -1464
  202. xtgeo/include/eigen3/Eigen/src/Core/util/Memory.h +0 -1163
  203. xtgeo/include/eigen3/Eigen/src/Core/util/Meta.h +0 -812
  204. xtgeo/include/eigen3/Eigen/src/Core/util/NonMPL2.h +0 -3
  205. xtgeo/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +0 -31
  206. xtgeo/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +0 -51
  207. xtgeo/include/eigen3/Eigen/src/Core/util/StaticAssert.h +0 -221
  208. xtgeo/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +0 -293
  209. xtgeo/include/eigen3/Eigen/src/Core/util/XprHelper.h +0 -856
  210. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +0 -346
  211. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +0 -462
  212. xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +0 -91
  213. xtgeo/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +0 -622
  214. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +0 -418
  215. xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +0 -226
  216. xtgeo/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +0 -374
  217. xtgeo/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +0 -158
  218. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +0 -657
  219. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +0 -558
  220. xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +0 -77
  221. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +0 -904
  222. xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +0 -87
  223. xtgeo/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +0 -561
  224. xtgeo/include/eigen3/Eigen/src/Geometry/AlignedBox.h +0 -486
  225. xtgeo/include/eigen3/Eigen/src/Geometry/AngleAxis.h +0 -247
  226. xtgeo/include/eigen3/Eigen/src/Geometry/EulerAngles.h +0 -114
  227. xtgeo/include/eigen3/Eigen/src/Geometry/Homogeneous.h +0 -501
  228. xtgeo/include/eigen3/Eigen/src/Geometry/Hyperplane.h +0 -282
  229. xtgeo/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +0 -235
  230. xtgeo/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +0 -232
  231. xtgeo/include/eigen3/Eigen/src/Geometry/Quaternion.h +0 -870
  232. xtgeo/include/eigen3/Eigen/src/Geometry/Rotation2D.h +0 -199
  233. xtgeo/include/eigen3/Eigen/src/Geometry/RotationBase.h +0 -206
  234. xtgeo/include/eigen3/Eigen/src/Geometry/Scaling.h +0 -188
  235. xtgeo/include/eigen3/Eigen/src/Geometry/Transform.h +0 -1563
  236. xtgeo/include/eigen3/Eigen/src/Geometry/Translation.h +0 -202
  237. xtgeo/include/eigen3/Eigen/src/Geometry/Umeyama.h +0 -166
  238. xtgeo/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +0 -168
  239. xtgeo/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +0 -110
  240. xtgeo/include/eigen3/Eigen/src/Householder/Householder.h +0 -176
  241. xtgeo/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +0 -545
  242. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +0 -226
  243. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +0 -212
  244. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +0 -229
  245. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +0 -394
  246. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +0 -453
  247. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +0 -444
  248. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +0 -198
  249. xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +0 -117
  250. xtgeo/include/eigen3/Eigen/src/Jacobi/Jacobi.h +0 -483
  251. xtgeo/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +0 -358
  252. xtgeo/include/eigen3/Eigen/src/LU/Determinant.h +0 -117
  253. xtgeo/include/eigen3/Eigen/src/LU/FullPivLU.h +0 -877
  254. xtgeo/include/eigen3/Eigen/src/LU/InverseImpl.h +0 -432
  255. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU.h +0 -624
  256. xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +0 -83
  257. xtgeo/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +0 -351
  258. xtgeo/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +0 -137
  259. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Amd.h +0 -435
  260. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +0 -1863
  261. xtgeo/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +0 -153
  262. xtgeo/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +0 -678
  263. xtgeo/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +0 -545
  264. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +0 -674
  265. xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +0 -97
  266. xtgeo/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +0 -635
  267. xtgeo/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +0 -713
  268. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR.h +0 -434
  269. xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +0 -68
  270. xtgeo/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +0 -335
  271. xtgeo/include/eigen3/Eigen/src/SVD/BDCSVD.h +0 -1366
  272. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD.h +0 -812
  273. xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +0 -91
  274. xtgeo/include/eigen3/Eigen/src/SVD/SVDBase.h +0 -376
  275. xtgeo/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +0 -414
  276. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +0 -697
  277. xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +0 -174
  278. xtgeo/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +0 -378
  279. xtgeo/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +0 -274
  280. xtgeo/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +0 -352
  281. xtgeo/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +0 -67
  282. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +0 -270
  283. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +0 -571
  284. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +0 -206
  285. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +0 -370
  286. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +0 -722
  287. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +0 -150
  288. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +0 -342
  289. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +0 -138
  290. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDot.h +0 -98
  291. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +0 -29
  292. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMap.h +0 -305
  293. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +0 -1518
  294. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +0 -398
  295. xtgeo/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +0 -178
  296. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +0 -181
  297. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +0 -49
  298. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRef.h +0 -397
  299. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +0 -659
  300. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +0 -124
  301. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +0 -198
  302. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +0 -92
  303. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +0 -189
  304. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +0 -186
  305. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseVector.h +0 -478
  306. xtgeo/include/eigen3/Eigen/src/SparseCore/SparseView.h +0 -254
  307. xtgeo/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +0 -315
  308. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU.h +0 -923
  309. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +0 -66
  310. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +0 -226
  311. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +0 -110
  312. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +0 -375
  313. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +0 -80
  314. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +0 -181
  315. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +0 -179
  316. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +0 -107
  317. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +0 -280
  318. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +0 -126
  319. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +0 -130
  320. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +0 -223
  321. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +0 -258
  322. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +0 -137
  323. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +0 -136
  324. xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +0 -83
  325. xtgeo/include/eigen3/Eigen/src/SparseQR/SparseQR.h +0 -758
  326. xtgeo/include/eigen3/Eigen/src/StlSupport/StdDeque.h +0 -116
  327. xtgeo/include/eigen3/Eigen/src/StlSupport/StdList.h +0 -106
  328. xtgeo/include/eigen3/Eigen/src/StlSupport/StdVector.h +0 -131
  329. xtgeo/include/eigen3/Eigen/src/StlSupport/details.h +0 -84
  330. xtgeo/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +0 -1025
  331. xtgeo/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +0 -642
  332. xtgeo/include/eigen3/Eigen/src/misc/Image.h +0 -82
  333. xtgeo/include/eigen3/Eigen/src/misc/Kernel.h +0 -79
  334. xtgeo/include/eigen3/Eigen/src/misc/RealSvd2x2.h +0 -55
  335. xtgeo/include/eigen3/Eigen/src/misc/blas.h +0 -440
  336. xtgeo/include/eigen3/Eigen/src/misc/lapack.h +0 -152
  337. xtgeo/include/eigen3/Eigen/src/misc/lapacke.h +0 -16292
  338. xtgeo/include/eigen3/Eigen/src/misc/lapacke_mangling.h +0 -17
  339. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +0 -358
  340. xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +0 -696
  341. xtgeo/include/eigen3/Eigen/src/plugins/BlockMethods.h +0 -1442
  342. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +0 -115
  343. xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +0 -177
  344. xtgeo/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +0 -262
  345. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +0 -152
  346. xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +0 -95
  347. xtgeo/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +0 -149
  348. xtgeo/include/eigen3/signature_of_eigen3_matrix_library +0 -1
  349. xtgeo/include/eigen3/unsupported/Eigen/AdolcForward +0 -159
  350. xtgeo/include/eigen3/unsupported/Eigen/AlignedVector3 +0 -234
  351. xtgeo/include/eigen3/unsupported/Eigen/ArpackSupport +0 -30
  352. xtgeo/include/eigen3/unsupported/Eigen/AutoDiff +0 -46
  353. xtgeo/include/eigen3/unsupported/Eigen/BVH +0 -95
  354. xtgeo/include/eigen3/unsupported/Eigen/CXX11/Tensor +0 -137
  355. xtgeo/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +0 -42
  356. xtgeo/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +0 -74
  357. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +0 -554
  358. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +0 -329
  359. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +0 -247
  360. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +0 -1176
  361. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +0 -1559
  362. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +0 -1093
  363. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +0 -518
  364. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +0 -377
  365. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +0 -1023
  366. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +0 -73
  367. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +0 -6
  368. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +0 -1413
  369. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +0 -575
  370. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +0 -1650
  371. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +0 -1679
  372. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +0 -456
  373. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +0 -1132
  374. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +0 -544
  375. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +0 -214
  376. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +0 -347
  377. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +0 -137
  378. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +0 -6
  379. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +0 -104
  380. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +0 -389
  381. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +0 -1048
  382. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +0 -409
  383. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +0 -236
  384. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +0 -490
  385. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +0 -236
  386. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +0 -983
  387. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +0 -703
  388. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +0 -388
  389. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +0 -669
  390. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +0 -379
  391. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +0 -237
  392. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +0 -191
  393. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +0 -488
  394. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +0 -302
  395. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +0 -33
  396. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +0 -99
  397. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +0 -44
  398. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +0 -79
  399. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +0 -603
  400. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +0 -738
  401. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +0 -247
  402. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +0 -82
  403. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +0 -263
  404. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +0 -216
  405. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +0 -98
  406. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +0 -327
  407. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +0 -311
  408. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +0 -1102
  409. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +0 -708
  410. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +0 -291
  411. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +0 -322
  412. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +0 -998
  413. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +0 -6
  414. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +0 -966
  415. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +0 -582
  416. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +0 -454
  417. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +0 -465
  418. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +0 -528
  419. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +0 -513
  420. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +0 -471
  421. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +0 -161
  422. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +0 -346
  423. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +0 -303
  424. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +0 -264
  425. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +0 -249
  426. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +0 -629
  427. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +0 -293
  428. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +0 -236
  429. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +0 -338
  430. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +0 -669
  431. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +0 -67
  432. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +0 -249
  433. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +0 -486
  434. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +0 -236
  435. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +0 -23
  436. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +0 -40
  437. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +0 -301
  438. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +0 -48
  439. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +0 -20
  440. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +0 -537
  441. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +0 -88
  442. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +0 -261
  443. xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +0 -158
  444. xtgeo/include/eigen3/unsupported/Eigen/EulerAngles +0 -43
  445. xtgeo/include/eigen3/unsupported/Eigen/FFT +0 -419
  446. xtgeo/include/eigen3/unsupported/Eigen/IterativeSolvers +0 -51
  447. xtgeo/include/eigen3/unsupported/Eigen/KroneckerProduct +0 -36
  448. xtgeo/include/eigen3/unsupported/Eigen/LevenbergMarquardt +0 -49
  449. xtgeo/include/eigen3/unsupported/Eigen/MPRealSupport +0 -213
  450. xtgeo/include/eigen3/unsupported/Eigen/MatrixFunctions +0 -504
  451. xtgeo/include/eigen3/unsupported/Eigen/MoreVectorization +0 -24
  452. xtgeo/include/eigen3/unsupported/Eigen/NonLinearOptimization +0 -140
  453. xtgeo/include/eigen3/unsupported/Eigen/NumericalDiff +0 -56
  454. xtgeo/include/eigen3/unsupported/Eigen/OpenGLSupport +0 -322
  455. xtgeo/include/eigen3/unsupported/Eigen/Polynomials +0 -137
  456. xtgeo/include/eigen3/unsupported/Eigen/Skyline +0 -39
  457. xtgeo/include/eigen3/unsupported/Eigen/SparseExtra +0 -54
  458. xtgeo/include/eigen3/unsupported/Eigen/SpecialFunctions +0 -103
  459. xtgeo/include/eigen3/unsupported/Eigen/Splines +0 -35
  460. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +0 -108
  461. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +0 -730
  462. xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +0 -220
  463. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +0 -293
  464. xtgeo/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +0 -223
  465. xtgeo/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +0 -790
  466. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +0 -355
  467. xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +0 -305
  468. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +0 -261
  469. xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +0 -449
  470. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +0 -187
  471. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +0 -511
  472. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +0 -335
  473. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +0 -436
  474. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +0 -90
  475. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +0 -154
  476. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +0 -267
  477. xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +0 -193
  478. xtgeo/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +0 -305
  479. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +0 -84
  480. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +0 -202
  481. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +0 -160
  482. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +0 -188
  483. xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +0 -396
  484. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +0 -441
  485. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +0 -569
  486. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +0 -373
  487. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +0 -705
  488. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +0 -368
  489. xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +0 -117
  490. xtgeo/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +0 -95
  491. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +0 -601
  492. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +0 -657
  493. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +0 -66
  494. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +0 -70
  495. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +0 -107
  496. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +0 -79
  497. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +0 -298
  498. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +0 -91
  499. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +0 -30
  500. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +0 -99
  501. xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +0 -49
  502. xtgeo/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +0 -130
  503. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +0 -280
  504. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +0 -428
  505. xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +0 -143
  506. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +0 -352
  507. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +0 -862
  508. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +0 -212
  509. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +0 -295
  510. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +0 -259
  511. xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +0 -89
  512. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +0 -122
  513. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +0 -1079
  514. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +0 -404
  515. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +0 -282
  516. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +0 -247
  517. xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +0 -349
  518. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +0 -286
  519. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +0 -68
  520. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +0 -357
  521. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +0 -66
  522. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +0 -1959
  523. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +0 -118
  524. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +0 -67
  525. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +0 -167
  526. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +0 -58
  527. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +0 -330
  528. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +0 -58
  529. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +0 -2045
  530. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +0 -79
  531. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +0 -46
  532. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +0 -16
  533. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +0 -46
  534. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +0 -16
  535. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +0 -369
  536. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +0 -54
  537. xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +0 -34
  538. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +0 -507
  539. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +0 -431
  540. xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +0 -93
  541. xtgeo/share/eigen3/cmake/Eigen3Config.cmake +0 -37
  542. xtgeo/share/eigen3/cmake/Eigen3ConfigVersion.cmake +0 -65
  543. xtgeo/share/eigen3/cmake/Eigen3Targets.cmake +0 -106
  544. xtgeo/share/eigen3/cmake/UseEigen3.cmake +0 -6
  545. xtgeo-4.10.0.dist-info/RECORD +0 -651
  546. {xtgeo-4.10.0.dist-info → xtgeo-4.11.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -1,1048 +0,0 @@
1
- // This file is part of Eigen, a lightweight C++ template library
2
- // for linear algebra.
3
- //
4
- // Mehdi Goli Codeplay Software Ltd.
5
- // Ralph Potter Codeplay Software Ltd.
6
- // Luke Iwanski Codeplay Software Ltd.
7
- // Contact: <eigen@codeplay.com>
8
- // Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
9
-
10
- //
11
- // This Source Code Form is subject to the terms of the Mozilla
12
- // Public License v. 2.0. If a copy of the MPL was not distributed
13
- // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
14
-
15
- #if defined(EIGEN_USE_SYCL) && !defined(EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H)
16
- #define EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H
17
- #include <unordered_set>
18
-
19
- namespace Eigen {
20
-
21
- namespace TensorSycl {
22
- namespace internal {
23
-
24
- /// Cache all the device information needed
25
- struct SyclDeviceInfo {
26
- SyclDeviceInfo(cl::sycl::queue queue)
27
- : local_mem_type(
28
- queue.get_device()
29
- .template get_info<cl::sycl::info::device::local_mem_type>()),
30
- max_work_item_sizes(
31
- queue.get_device()
32
- .template get_info<
33
- cl::sycl::info::device::max_work_item_sizes>()),
34
- max_mem_alloc_size(
35
- queue.get_device()
36
- .template get_info<
37
- cl::sycl::info::device::max_mem_alloc_size>()),
38
- max_compute_units(queue.get_device()
39
- .template get_info<
40
- cl::sycl::info::device::max_compute_units>()),
41
- max_work_group_size(
42
- queue.get_device()
43
- .template get_info<
44
- cl::sycl::info::device::max_work_group_size>()),
45
- local_mem_size(
46
- queue.get_device()
47
- .template get_info<cl::sycl::info::device::local_mem_size>()),
48
- platform_name(queue.get_device()
49
- .get_platform()
50
- .template get_info<cl::sycl::info::platform::name>()),
51
- device_name(queue.get_device()
52
- .template get_info<cl::sycl::info::device::name>()),
53
- device_vendor(
54
- queue.get_device()
55
- .template get_info<cl::sycl::info::device::vendor>()) {}
56
-
57
- cl::sycl::info::local_mem_type local_mem_type;
58
- cl::sycl::id<3> max_work_item_sizes;
59
- unsigned long max_mem_alloc_size;
60
- unsigned long max_compute_units;
61
- unsigned long max_work_group_size;
62
- size_t local_mem_size;
63
- std::string platform_name;
64
- std::string device_name;
65
- std::string device_vendor;
66
- };
67
-
68
- } // end namespace internal
69
- } // end namespace TensorSycl
70
-
71
- typedef TensorSycl::internal::buffer_data_type_t buffer_scalar_t;
72
- // All devices (even AMD CPU with intel OpenCL runtime) that support OpenCL and
73
- // can consume SPIR or SPIRV can use the Eigen SYCL backend and consequently
74
- // TensorFlow via the Eigen SYCL Backend.
75
- EIGEN_STRONG_INLINE auto get_sycl_supported_devices()
76
- -> decltype(cl::sycl::device::get_devices()) {
77
- #ifdef EIGEN_SYCL_USE_DEFAULT_SELECTOR
78
- return {cl::sycl::device(cl::sycl::default_selector())};
79
- #else
80
- std::vector<cl::sycl::device> supported_devices;
81
- auto platform_list = cl::sycl::platform::get_platforms();
82
- for (const auto &platform : platform_list) {
83
- auto device_list = platform.get_devices();
84
- auto platform_name =
85
- platform.template get_info<cl::sycl::info::platform::name>();
86
- std::transform(platform_name.begin(), platform_name.end(),
87
- platform_name.begin(), ::tolower);
88
- for (const auto &device : device_list) {
89
- auto vendor = device.template get_info<cl::sycl::info::device::vendor>();
90
- std::transform(vendor.begin(), vendor.end(), vendor.begin(), ::tolower);
91
- bool unsupported_condition =
92
- (device.is_cpu() && platform_name.find("amd") != std::string::npos &&
93
- vendor.find("apu") == std::string::npos) ||
94
- (platform_name.find("experimental") != std::string::npos) ||
95
- device.is_host();
96
- if (!unsupported_condition) {
97
- supported_devices.push_back(device);
98
- }
99
- }
100
- }
101
- return supported_devices;
102
- #endif
103
- }
104
-
105
- class QueueInterface {
106
- public:
107
- /// Creating device by using cl::sycl::selector or cl::sycl::device.
108
- template <typename DeviceOrSelector>
109
- explicit QueueInterface(
110
- const DeviceOrSelector &dev_or_sel, cl::sycl::async_handler handler,
111
- unsigned num_threads = std::thread::hardware_concurrency())
112
- : m_queue(dev_or_sel, handler),
113
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
114
- m_prog(m_queue.get_context(), get_sycl_supported_devices()),
115
- #endif
116
- m_thread_pool(num_threads),
117
- m_device_info(m_queue) {
118
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
119
- m_prog.build_with_kernel_type<DeviceOrSelector>();
120
- auto f = [&](cl::sycl::handler &cgh) {
121
- cgh.single_task<DeviceOrSelector>(m_prog.get_kernel<DeviceOrSelector>(),
122
- [=]() {})
123
- };
124
- EIGEN_SYCL_TRY_CATCH(m_queue.submit(f));
125
- #endif
126
- }
127
-
128
- template <typename DeviceOrSelector>
129
- explicit QueueInterface(
130
- const DeviceOrSelector &dev_or_sel,
131
- unsigned num_threads = std::thread::hardware_concurrency())
132
- : QueueInterface(dev_or_sel,
133
- [this](cl::sycl::exception_list l) {
134
- this->exception_caught_ = this->sycl_async_handler(l);
135
- },
136
- num_threads) {}
137
-
138
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
139
- EIGEN_STRONG_INLINE cl::sycl::program &program() const { return m_prog; }
140
- #endif
141
-
142
- /// Attach an existing buffer to the pointer map, Eigen will not reuse it
143
- EIGEN_STRONG_INLINE void *attach_buffer(
144
- cl::sycl::buffer<buffer_scalar_t, 1> &buf) const {
145
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
146
- return static_cast<void *>(pMapper.add_pointer(buf));
147
- }
148
-
149
- /// Detach previously attached buffer
150
- EIGEN_STRONG_INLINE void detach_buffer(void *p) const {
151
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
152
- TensorSycl::internal::SYCLfree<false>(p, pMapper);
153
- }
154
-
155
- /// Allocating device pointer. This pointer is actually an 8 bytes host
156
- /// pointer used as key to access the sycl device buffer. The reason is that
157
- /// we cannot use device buffer as a pointer as a m_data in Eigen leafNode
158
- /// expressions. So we create a key pointer to be used in Eigen expression
159
- /// construction. When we convert the Eigen construction into the sycl
160
- /// construction we use this pointer as a key in our buffer_map and we make
161
- /// sure that we dedicate only one buffer only for this pointer. The device
162
- /// pointer would be deleted by calling deallocate function.
163
- EIGEN_STRONG_INLINE void *allocate(size_t num_bytes) const {
164
- #if EIGEN_MAX_ALIGN_BYTES > 0
165
- size_t align = num_bytes % EIGEN_MAX_ALIGN_BYTES;
166
- if (align > 0) {
167
- num_bytes += EIGEN_MAX_ALIGN_BYTES - align;
168
- }
169
- #endif
170
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
171
- return TensorSycl::internal::SYCLmalloc(num_bytes, pMapper);
172
- }
173
-
174
- EIGEN_STRONG_INLINE void *allocate_temp(size_t num_bytes) const {
175
- #if EIGEN_MAX_ALIGN_BYTES > 0
176
- size_t align = num_bytes % EIGEN_MAX_ALIGN_BYTES;
177
- if (align > 0) {
178
- num_bytes += EIGEN_MAX_ALIGN_BYTES - align;
179
- }
180
- #endif
181
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
182
- #ifndef EIGEN_SYCL_NO_REUSE_BUFFERS
183
- if (scratch_buffers.empty()) {
184
- return TensorSycl::internal::SYCLmalloc(num_bytes, pMapper);
185
- ;
186
- } else {
187
- for (auto it = scratch_buffers.begin(); it != scratch_buffers.end();) {
188
- auto buff = pMapper.get_buffer(*it);
189
- if (buff.get_size() >= num_bytes) {
190
- auto ptr = *it;
191
- scratch_buffers.erase(it);
192
- return ptr;
193
- } else {
194
- ++it;
195
- }
196
- }
197
- return TensorSycl::internal::SYCLmalloc(num_bytes, pMapper);
198
- }
199
- #else
200
- return TensorSycl::internal::SYCLmalloc(num_bytes, pMapper);
201
- #endif
202
- }
203
- template <typename data_t>
204
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSycl::internal::RangeAccess<
205
- cl::sycl::access::mode::read_write, data_t>
206
- get(data_t *data) const {
207
- return get_range_accessor<cl::sycl::access::mode::read_write, data_t>(data);
208
- }
209
- template <typename data_t>
210
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE data_t *get(
211
- TensorSycl::internal::RangeAccess<cl::sycl::access::mode::read_write,
212
- data_t>
213
- data) const {
214
- return static_cast<data_t *>(data.get_virtual_pointer());
215
- }
216
-
217
- EIGEN_STRONG_INLINE void deallocate_temp(void *p) const {
218
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
219
- #ifndef EIGEN_SYCL_NO_REUSE_BUFFERS
220
- scratch_buffers.insert(p);
221
- #else
222
- TensorSycl::internal::SYCLfree(p, pMapper);
223
- #endif
224
- }
225
- template <cl::sycl::access::mode AcMd, typename T>
226
- EIGEN_STRONG_INLINE void deallocate_temp(
227
- const TensorSycl::internal::RangeAccess<AcMd, T> &p) const {
228
- deallocate_temp(p.get_virtual_pointer());
229
- }
230
-
231
- /// This is used to deallocate the device pointer. p is used as a key inside
232
- /// the map to find the device buffer and delete it.
233
- EIGEN_STRONG_INLINE void deallocate(void *p) const {
234
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
235
- TensorSycl::internal::SYCLfree(p, pMapper);
236
- }
237
-
238
- EIGEN_STRONG_INLINE void deallocate_all() const {
239
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
240
- TensorSycl::internal::SYCLfreeAll(pMapper);
241
- #ifndef EIGEN_SYCL_NO_REUSE_BUFFERS
242
- scratch_buffers.clear();
243
- #endif
244
- }
245
-
246
- /// The memcpyHostToDevice is used to copy the data from host to device
247
- /// The destination pointer could be deleted before the copy happend which is
248
- /// why a callback function is needed. By default if none is provided, the
249
- /// function is blocking.
250
- EIGEN_STRONG_INLINE void memcpyHostToDevice(
251
- void *dst, const void *src, size_t n,
252
- std::function<void()> callback) const {
253
- static const auto write_mode = cl::sycl::access::mode::discard_write;
254
- static const auto global_access = cl::sycl::access::target::global_buffer;
255
- typedef cl::sycl::accessor<buffer_scalar_t, 1, write_mode, global_access>
256
- write_accessor;
257
- if (n == 0) {
258
- if (callback) callback();
259
- return;
260
- }
261
- n /= sizeof(buffer_scalar_t);
262
- auto f = [&](cl::sycl::handler &cgh) {
263
- write_accessor dst_acc = get_range_accessor<write_mode>(cgh, dst, n);
264
- buffer_scalar_t const *ptr = static_cast<buffer_scalar_t const *>(src);
265
- auto non_deleter = [](buffer_scalar_t const *) {};
266
- std::shared_ptr<const buffer_scalar_t> s_ptr(ptr, non_deleter);
267
- cgh.copy(s_ptr, dst_acc);
268
- };
269
- cl::sycl::event e;
270
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(f));
271
- synchronize_and_callback(e, callback);
272
- }
273
-
274
- /// The memcpyDeviceToHost is used to copy the data from device to host.
275
- /// The source pointer could be deleted before the copy happend which is
276
- /// why a callback function is needed. By default if none is provided, the
277
- /// function is blocking.
278
- EIGEN_STRONG_INLINE void memcpyDeviceToHost(
279
- void *dst, const void *src, size_t n,
280
- std::function<void()> callback) const {
281
- static const auto read_mode = cl::sycl::access::mode::read;
282
- static const auto global_access = cl::sycl::access::target::global_buffer;
283
- typedef cl::sycl::accessor<buffer_scalar_t, 1, read_mode, global_access>
284
- read_accessor;
285
- if (n == 0) {
286
- if (callback) callback();
287
- return;
288
- }
289
- n /= sizeof(buffer_scalar_t);
290
- auto f = [&](cl::sycl::handler &cgh) {
291
- read_accessor src_acc = get_range_accessor<read_mode>(cgh, src, n);
292
- buffer_scalar_t *ptr = static_cast<buffer_scalar_t *>(dst);
293
- auto non_deleter = [](buffer_scalar_t *) {};
294
- std::shared_ptr<buffer_scalar_t> s_ptr(ptr, non_deleter);
295
- cgh.copy(src_acc, s_ptr);
296
- };
297
- cl::sycl::event e;
298
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(f));
299
- synchronize_and_callback(e, callback);
300
- }
301
-
302
- /// The memcpy function.
303
- /// No callback is required here as both arguments are on the device
304
- /// and SYCL can handle the dependency.
305
- EIGEN_STRONG_INLINE void memcpy(void *dst, const void *src, size_t n) const {
306
- static const auto read_mode = cl::sycl::access::mode::read;
307
- static const auto write_mode = cl::sycl::access::mode::discard_write;
308
- if (n == 0) {
309
- return;
310
- }
311
- n /= sizeof(buffer_scalar_t);
312
- auto f = [&](cl::sycl::handler &cgh) {
313
- auto src_acc = get_range_accessor<read_mode>(cgh, src, n);
314
- auto dst_acc = get_range_accessor<write_mode>(cgh, dst, n);
315
- cgh.copy(src_acc, dst_acc);
316
- };
317
- cl::sycl::event e;
318
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(f));
319
- async_synchronize(e);
320
- }
321
-
322
- /// the memset function.
323
- /// No callback is required here as both arguments are on the device
324
- /// and SYCL can handle the dependency.
325
- EIGEN_STRONG_INLINE void memset(void *data, int c, size_t n) const {
326
- static const auto write_mode = cl::sycl::access::mode::discard_write;
327
- if (n == 0) {
328
- return;
329
- }
330
- n /= sizeof(buffer_scalar_t);
331
- auto f = [&](cl::sycl::handler &cgh) {
332
- auto dst_acc = get_range_accessor<write_mode>(cgh, data, n);
333
- // The cast to uint8_t is here to match the behaviour of the standard
334
- // memset. The cast to buffer_scalar_t is needed to match the type of the
335
- // accessor (in case buffer_scalar_t is not uint8_t)
336
- cgh.fill(dst_acc, static_cast<buffer_scalar_t>(static_cast<uint8_t>(c)));
337
- };
338
- cl::sycl::event e;
339
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(f));
340
- async_synchronize(e);
341
- }
342
-
343
- /// Get a range accessor to the virtual pointer's device memory. This range
344
- /// accessor will allow access to the memory from the pointer to the end of
345
- /// the buffer.
346
- ///
347
- /// NOTE: Inside a kernel the range accessor will always be indexed from the
348
- /// start of the buffer, so the offset in the accessor is only used by
349
- /// methods like handler::copy and will not be available inside a kernel.
350
- template <cl::sycl::access::mode AcMd, typename T>
351
- EIGEN_STRONG_INLINE TensorSycl::internal::RangeAccess<AcMd, T>
352
- get_range_accessor(const void *ptr) const {
353
- static const auto global_access = cl::sycl::access::target::global_buffer;
354
- static const auto is_place_holder = cl::sycl::access::placeholder::true_t;
355
- typedef TensorSycl::internal::RangeAccess<AcMd, T> ret_type;
356
- typedef const TensorSycl::internal::buffer_data_type_t *internal_ptr_t;
357
-
358
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
359
-
360
- auto original_buffer = pMapper.get_buffer(ptr);
361
- const ptrdiff_t offset = pMapper.get_offset(ptr);
362
- const ptrdiff_t typed_offset = offset / sizeof(T);
363
- eigen_assert(typed_offset >= 0);
364
- const auto typed_size = original_buffer.get_size() / sizeof(T);
365
- auto buffer = original_buffer.template reinterpret<
366
- typename Eigen::internal::remove_const<T>::type>(
367
- cl::sycl::range<1>(typed_size));
368
- const ptrdiff_t size = buffer.get_count() - typed_offset;
369
- eigen_assert(size >= 0);
370
- typedef cl::sycl::accessor<typename Eigen::internal::remove_const<T>::type,
371
- 1, AcMd, global_access, is_place_holder>
372
- placeholder_accessor_t;
373
- const auto start_ptr = static_cast<internal_ptr_t>(ptr) - offset;
374
- return ret_type(placeholder_accessor_t(buffer, cl::sycl::range<1>(size),
375
- cl::sycl::id<1>(typed_offset)),
376
- static_cast<size_t>(typed_offset),
377
- reinterpret_cast<std::intptr_t>(start_ptr));
378
- }
379
-
380
- /// Get a range accessor to the virtual pointer's device memory with a
381
- /// specified size.
382
- template <cl::sycl::access::mode AcMd, typename Index>
383
- EIGEN_STRONG_INLINE cl::sycl::accessor<
384
- buffer_scalar_t, 1, AcMd, cl::sycl::access::target::global_buffer>
385
- get_range_accessor(cl::sycl::handler &cgh, const void *ptr,
386
- const Index n_bytes) const {
387
- static const auto global_access = cl::sycl::access::target::global_buffer;
388
- eigen_assert(n_bytes >= 0);
389
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
390
- auto buffer = pMapper.get_buffer(ptr);
391
- const ptrdiff_t offset = pMapper.get_offset(ptr);
392
- eigen_assert(offset >= 0);
393
- eigen_assert(offset + n_bytes <= buffer.get_size());
394
- return buffer.template get_access<AcMd, global_access>(
395
- cgh, cl::sycl::range<1>(n_bytes), cl::sycl::id<1>(offset));
396
- }
397
-
398
- /// Creation of sycl accessor for a buffer. This function first tries to find
399
- /// the buffer in the buffer_map. If found it gets the accessor from it, if
400
- /// not, the function then adds an entry by creating a sycl buffer for that
401
- /// particular pointer.
402
- template <cl::sycl::access::mode AcMd>
403
- EIGEN_STRONG_INLINE cl::sycl::accessor<
404
- buffer_scalar_t, 1, AcMd, cl::sycl::access::target::global_buffer>
405
- get_sycl_accessor(cl::sycl::handler &cgh, const void *ptr) const {
406
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
407
- return pMapper.get_buffer(ptr)
408
- .template get_access<AcMd, cl::sycl::access::target::global_buffer>(
409
- cgh);
410
- }
411
-
412
- EIGEN_STRONG_INLINE cl::sycl::buffer<buffer_scalar_t, 1> get_sycl_buffer(
413
- const void *ptr) const {
414
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
415
- return pMapper.get_buffer(ptr);
416
- }
417
-
418
- EIGEN_STRONG_INLINE ptrdiff_t get_offset(const void *ptr) const {
419
- std::lock_guard<std::mutex> lock(pmapper_mutex_);
420
- return pMapper.get_offset(ptr);
421
- }
422
-
423
- template <typename OutScalar, typename sycl_kernel, typename Lhs,
424
- typename Rhs, typename OutPtr, typename Range, typename Index,
425
- typename... T>
426
- EIGEN_ALWAYS_INLINE void binary_kernel_launcher(const Lhs &lhs,
427
- const Rhs &rhs, OutPtr outptr,
428
- Range thread_range,
429
- Index scratchSize,
430
- T... var) const {
431
- auto kernel_functor = [=](cl::sycl::handler &cgh) {
432
- // binding the placeholder accessors to a commandgroup handler
433
- lhs.bind(cgh);
434
- rhs.bind(cgh);
435
- outptr.bind(cgh);
436
- typedef cl::sycl::accessor<OutScalar, 1,
437
- cl::sycl::access::mode::read_write,
438
- cl::sycl::access::target::local>
439
- LocalAccessor;
440
-
441
- LocalAccessor scratch(cl::sycl::range<1>(scratchSize), cgh);
442
- cgh.parallel_for(
443
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
444
- program().template get_kernel<sycl_kernel>(),
445
- #endif
446
- thread_range, sycl_kernel(scratch, lhs, rhs, outptr, var...));
447
- };
448
- cl::sycl::event e;
449
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(kernel_functor));
450
- async_synchronize(e);
451
- }
452
-
453
- template <typename OutScalar, typename sycl_kernel, typename InPtr,
454
- typename OutPtr, typename Range, typename Index, typename... T>
455
- EIGEN_ALWAYS_INLINE void unary_kernel_launcher(const InPtr &inptr,
456
- OutPtr &outptr,
457
- Range thread_range,
458
- Index scratchSize,
459
- T... var) const {
460
- auto kernel_functor = [=](cl::sycl::handler &cgh) {
461
- // binding the placeholder accessors to a commandgroup handler
462
- inptr.bind(cgh);
463
- outptr.bind(cgh);
464
- typedef cl::sycl::accessor<OutScalar, 1,
465
- cl::sycl::access::mode::read_write,
466
- cl::sycl::access::target::local>
467
- LocalAccessor;
468
-
469
- LocalAccessor scratch(cl::sycl::range<1>(scratchSize), cgh);
470
- cgh.parallel_for(
471
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
472
- program().template get_kernel<sycl_kernel>(),
473
- #endif
474
- thread_range, sycl_kernel(scratch, inptr, outptr, var...));
475
- };
476
- cl::sycl::event e;
477
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(kernel_functor));
478
- async_synchronize(e);
479
- }
480
-
481
- template <typename OutScalar, typename sycl_kernel, typename InPtr,
482
- typename Range, typename Index, typename... T>
483
- EIGEN_ALWAYS_INLINE void nullary_kernel_launcher(const InPtr &inptr,
484
- Range thread_range,
485
- Index scratchSize,
486
- T... var) const {
487
- auto kernel_functor = [=](cl::sycl::handler &cgh) {
488
- // binding the placeholder accessors to a commandgroup handler
489
- inptr.bind(cgh);
490
- typedef cl::sycl::accessor<OutScalar, 1,
491
- cl::sycl::access::mode::read_write,
492
- cl::sycl::access::target::local>
493
- LocalAccessor;
494
-
495
- LocalAccessor scratch(cl::sycl::range<1>(scratchSize), cgh);
496
- cgh.parallel_for(
497
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
498
- program().template get_kernel<sycl_kernel>(),
499
- #endif
500
- thread_range, sycl_kernel(scratch, inptr, var...));
501
- };
502
- cl::sycl::event e;
503
- EIGEN_SYCL_TRY_CATCH(e = m_queue.submit(kernel_functor));
504
- async_synchronize(e);
505
- }
506
-
507
-
508
- EIGEN_STRONG_INLINE void synchronize() const {
509
- #ifdef EIGEN_EXCEPTIONS
510
- m_queue.wait_and_throw();
511
- #else
512
- m_queue.wait();
513
- #endif
514
- }
515
-
516
-
517
- EIGEN_STRONG_INLINE void async_synchronize(cl::sycl::event e) const {
518
- set_latest_event(e);
519
- #ifndef EIGEN_SYCL_ASYNC_EXECUTION
520
- synchronize();
521
- #endif
522
- }
523
-
524
- template <typename Index>
525
- EIGEN_STRONG_INLINE void parallel_for_setup(Index n, Index &tileSize,
526
- Index &rng, Index &GRange) const {
527
- tileSize = static_cast<Index>(getNearestPowerOfTwoWorkGroupSize());
528
- tileSize = std::min(static_cast<Index>(EIGEN_SYCL_LOCAL_THREAD_DIM0 *
529
- EIGEN_SYCL_LOCAL_THREAD_DIM1),
530
- static_cast<Index>(tileSize));
531
- rng = n;
532
- if (rng == 0) rng = static_cast<Index>(1);
533
- GRange = rng;
534
- if (tileSize > GRange)
535
- tileSize = GRange;
536
- else if (GRange > tileSize) {
537
- Index xMode = static_cast<Index>(GRange % tileSize);
538
- if (xMode != 0) GRange += static_cast<Index>(tileSize - xMode);
539
- }
540
- }
541
-
542
- /// This is used to prepare the number of threads and also the number of
543
- /// threads per block for sycl kernels
544
- template <typename Index>
545
- EIGEN_STRONG_INLINE void parallel_for_setup(
546
- const std::array<Index, 2> &input_dim, cl::sycl::range<2> &global_range,
547
- cl::sycl::range<2> &local_range) const {
548
- std::array<Index, 2> input_range = input_dim;
549
- Index max_workgroup_Size =
550
- static_cast<Index>(getNearestPowerOfTwoWorkGroupSize());
551
- max_workgroup_Size =
552
- std::min(static_cast<Index>(EIGEN_SYCL_LOCAL_THREAD_DIM0 *
553
- EIGEN_SYCL_LOCAL_THREAD_DIM1),
554
- static_cast<Index>(max_workgroup_Size));
555
- Index pow_of_2 = static_cast<Index>(std::log2(max_workgroup_Size));
556
- local_range[1] =
557
- static_cast<Index>(std::pow(2, static_cast<Index>(pow_of_2 / 2)));
558
- input_range[1] = input_dim[1];
559
- if (input_range[1] == 0) input_range[1] = static_cast<Index>(1);
560
- global_range[1] = input_range[1];
561
- if (local_range[1] > global_range[1])
562
- local_range[1] = global_range[1];
563
- else if (global_range[1] > local_range[1]) {
564
- Index xMode = static_cast<Index>(global_range[1] % local_range[1]);
565
- if (xMode != 0)
566
- global_range[1] += static_cast<Index>(local_range[1] - xMode);
567
- }
568
- local_range[0] = static_cast<Index>(max_workgroup_Size / local_range[1]);
569
- input_range[0] = input_dim[0];
570
- if (input_range[0] == 0) input_range[0] = static_cast<Index>(1);
571
- global_range[0] = input_range[0];
572
- if (local_range[0] > global_range[0])
573
- local_range[0] = global_range[0];
574
- else if (global_range[0] > local_range[0]) {
575
- Index xMode = static_cast<Index>(global_range[0] % local_range[0]);
576
- if (xMode != 0)
577
- global_range[0] += static_cast<Index>(local_range[0] - xMode);
578
- }
579
- }
580
-
581
- /// This is used to prepare the number of threads and also the number of
582
- /// threads per block for sycl kernels
583
- template <typename Index>
584
- EIGEN_STRONG_INLINE void parallel_for_setup(
585
- const std::array<Index, 3> &input_dim, cl::sycl::range<3> &global_range,
586
- cl::sycl::range<3> &local_range) const {
587
- std::array<Index, 3> input_range = input_dim;
588
- Index max_workgroup_Size =
589
- static_cast<Index>(getNearestPowerOfTwoWorkGroupSize());
590
- max_workgroup_Size =
591
- std::min(static_cast<Index>(EIGEN_SYCL_LOCAL_THREAD_DIM0 *
592
- EIGEN_SYCL_LOCAL_THREAD_DIM1),
593
- static_cast<Index>(max_workgroup_Size));
594
- Index pow_of_2 = static_cast<Index>(std::log2(max_workgroup_Size));
595
- local_range[2] =
596
- static_cast<Index>(std::pow(2, static_cast<Index>(pow_of_2 / 3)));
597
- input_range[2] = input_dim[2];
598
- if (input_range[2] == 0) input_range[1] = static_cast<Index>(1);
599
- global_range[2] = input_range[2];
600
- if (local_range[2] > global_range[2])
601
- local_range[2] = global_range[2];
602
- else if (global_range[2] > local_range[2]) {
603
- Index xMode = static_cast<Index>(global_range[2] % local_range[2]);
604
- if (xMode != 0)
605
- global_range[2] += static_cast<Index>(local_range[2] - xMode);
606
- }
607
- pow_of_2 = static_cast<Index>(
608
- std::log2(static_cast<Index>(max_workgroup_Size / local_range[2])));
609
- local_range[1] =
610
- static_cast<Index>(std::pow(2, static_cast<Index>(pow_of_2 / 2)));
611
- input_range[1] = input_dim[1];
612
- if (input_range[1] == 0) input_range[1] = static_cast<Index>(1);
613
- global_range[1] = input_range[1];
614
- if (local_range[1] > global_range[1])
615
- local_range[1] = global_range[1];
616
- else if (global_range[1] > local_range[1]) {
617
- Index xMode = static_cast<Index>(global_range[1] % local_range[1]);
618
- if (xMode != 0)
619
- global_range[1] += static_cast<Index>(local_range[1] - xMode);
620
- }
621
- local_range[0] = static_cast<Index>(max_workgroup_Size /
622
- (local_range[1] * local_range[2]));
623
- input_range[0] = input_dim[0];
624
- if (input_range[0] == 0) input_range[0] = static_cast<Index>(1);
625
- global_range[0] = input_range[0];
626
- if (local_range[0] > global_range[0])
627
- local_range[0] = global_range[0];
628
- else if (global_range[0] > local_range[0]) {
629
- Index xMode = static_cast<Index>(global_range[0] % local_range[0]);
630
- if (xMode != 0)
631
- global_range[0] += static_cast<Index>(local_range[0] - xMode);
632
- }
633
- }
634
-
635
- EIGEN_STRONG_INLINE bool has_local_memory() const {
636
- #if !defined(EIGEN_SYCL_LOCAL_MEM) && defined(EIGEN_SYCL_NO_LOCAL_MEM)
637
- return false;
638
- #elif defined(EIGEN_SYCL_LOCAL_MEM) && !defined(EIGEN_SYCL_NO_LOCAL_MEM)
639
- return true;
640
- #else
641
- return m_device_info.local_mem_type ==
642
- cl::sycl::info::local_mem_type::local;
643
- #endif
644
- }
645
-
646
- EIGEN_STRONG_INLINE unsigned long max_buffer_size() const {
647
- return m_device_info.max_mem_alloc_size;
648
- }
649
-
650
- EIGEN_STRONG_INLINE unsigned long getNumSyclMultiProcessors() const {
651
- return m_device_info.max_compute_units;
652
- }
653
-
654
- EIGEN_STRONG_INLINE unsigned long maxSyclThreadsPerBlock() const {
655
- return m_device_info.max_work_group_size;
656
- }
657
-
658
- EIGEN_STRONG_INLINE cl::sycl::id<3> maxWorkItemSizes() const {
659
- return m_device_info.max_work_item_sizes;
660
- }
661
-
662
- /// No need for sycl it should act the same as CPU version
663
- EIGEN_STRONG_INLINE int majorDeviceVersion() const { return 1; }
664
-
665
- EIGEN_STRONG_INLINE unsigned long maxSyclThreadsPerMultiProcessor() const {
666
- // OpenCL doesnot have such concept
667
- return 2;
668
- }
669
-
670
- EIGEN_STRONG_INLINE size_t sharedMemPerBlock() const {
671
- return m_device_info.local_mem_size;
672
- }
673
-
674
- // This function returns the nearest power of 2 Work-group size which is <=
675
- // maximum device workgroup size.
676
- EIGEN_STRONG_INLINE size_t getNearestPowerOfTwoWorkGroupSize() const {
677
- return getPowerOfTwo(m_device_info.max_work_group_size, false);
678
- }
679
-
680
- EIGEN_STRONG_INLINE std::string getPlatformName() const {
681
- return m_device_info.platform_name;
682
- }
683
-
684
- EIGEN_STRONG_INLINE std::string getDeviceName() const {
685
- return m_device_info.device_name;
686
- }
687
-
688
- EIGEN_STRONG_INLINE std::string getDeviceVendor() const {
689
- return m_device_info.device_vendor;
690
- }
691
-
692
- // This function returns the nearest power of 2
693
- // if roundup is true returns result>=wgsize
694
- // else it return result <= wgsize
695
- EIGEN_STRONG_INLINE size_t getPowerOfTwo(size_t wGSize, bool roundUp) const {
696
- if (roundUp) --wGSize;
697
- wGSize |= (wGSize >> 1);
698
- wGSize |= (wGSize >> 2);
699
- wGSize |= (wGSize >> 4);
700
- wGSize |= (wGSize >> 8);
701
- wGSize |= (wGSize >> 16);
702
- #if EIGEN_ARCH_x86_64 || EIGEN_ARCH_ARM64 || EIGEN_OS_WIN64
703
- wGSize |= (wGSize >> 32);
704
- #endif
705
- return ((!roundUp) ? (wGSize - (wGSize >> 1)) : ++wGSize);
706
- }
707
-
708
- EIGEN_STRONG_INLINE cl::sycl::queue &sycl_queue() const { return m_queue; }
709
-
710
- // This function checks if the runtime recorded an error for the
711
- // underlying stream device.
712
- EIGEN_STRONG_INLINE bool ok() const {
713
- if (!exception_caught_) {
714
- synchronize();
715
- }
716
- return !exception_caught_;
717
- }
718
-
719
- EIGEN_STRONG_INLINE cl::sycl::event get_latest_event() const {
720
- #ifdef EIGEN_SYCL_STORE_LATEST_EVENT
721
- std::lock_guard<std::mutex> lock(event_mutex_);
722
- return latest_events_[std::this_thread::get_id()];
723
- #else
724
- eigen_assert(false);
725
- return cl::sycl::event();
726
- #endif
727
- }
728
-
729
- // destructor
730
- ~QueueInterface() {
731
- pMapper.clear();
732
- #ifndef EIGEN_SYCL_NO_REUSE_BUFFERS
733
- scratch_buffers.clear();
734
- #endif
735
- }
736
-
737
- protected:
738
- EIGEN_STRONG_INLINE void set_latest_event(cl::sycl::event e) const {
739
- #ifdef EIGEN_SYCL_STORE_LATEST_EVENT
740
- std::lock_guard<std::mutex> lock(event_mutex_);
741
- latest_events_[std::this_thread::get_id()] = e;
742
- #else
743
- EIGEN_UNUSED_VARIABLE(e);
744
- #endif
745
- }
746
-
747
- void synchronize_and_callback(cl::sycl::event e,
748
- const std::function<void()> &callback) const {
749
- set_latest_event(e);
750
- if (callback) {
751
- auto callback_ = [=]() {
752
- #ifdef EIGEN_EXCEPTIONS
753
- cl::sycl::event(e).wait_and_throw();
754
- #else
755
- cl::sycl::event(e).wait();
756
- #endif
757
- callback();
758
- };
759
- m_thread_pool.Schedule(std::move(callback_));
760
- } else {
761
- #ifdef EIGEN_EXCEPTIONS
762
- m_queue.wait_and_throw();
763
- #else
764
- m_queue.wait();
765
- #endif
766
- }
767
- }
768
-
769
- bool sycl_async_handler(cl::sycl::exception_list exceptions) const {
770
- bool exception_caught = false;
771
- for (const auto &e : exceptions) {
772
- if (e) {
773
- exception_caught = true;
774
- EIGEN_THROW_X(e);
775
- }
776
- }
777
- return exception_caught;
778
- }
779
-
780
- /// class members:
781
- bool exception_caught_ = false;
782
-
783
- mutable std::mutex pmapper_mutex_;
784
-
785
- #ifdef EIGEN_SYCL_STORE_LATEST_EVENT
786
- mutable std::mutex event_mutex_;
787
- mutable std::unordered_map<std::thread::id, cl::sycl::event> latest_events_;
788
- #endif
789
-
790
- /// std::map is the container used to make sure that we create only one buffer
791
- /// per pointer. The lifespan of the buffer now depends on the lifespan of
792
- /// SyclDevice. If a non-read-only pointer is needed to be accessed on the
793
- /// host we should manually deallocate it.
794
- mutable TensorSycl::internal::PointerMapper pMapper;
795
- #ifndef EIGEN_SYCL_NO_REUSE_BUFFERS
796
- mutable std::unordered_set<void *> scratch_buffers;
797
- #endif
798
- /// sycl queue
799
- mutable cl::sycl::queue m_queue;
800
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
801
- mutable cl::sycl::program m_prog;
802
- #endif
803
-
804
- /// The thread pool is used to wait on events and call callbacks
805
- /// asynchronously
806
- mutable Eigen::ThreadPool m_thread_pool;
807
-
808
- const TensorSycl::internal::SyclDeviceInfo m_device_info;
809
- };
810
-
811
- struct SyclDeviceBase {
812
- /// QueueInterface is not owned. it is the caller's responsibility to destroy
813
- /// it
814
- const QueueInterface *m_queue_stream;
815
- explicit SyclDeviceBase(const QueueInterface *queue_stream)
816
- : m_queue_stream(queue_stream) {}
817
- EIGEN_STRONG_INLINE const QueueInterface *queue_stream() const {
818
- return m_queue_stream;
819
- }
820
- };
821
-
822
- // Here is a sycl device struct which accept the sycl queue interface
823
- // as an input
824
- struct SyclDevice : public SyclDeviceBase {
825
- explicit SyclDevice(const QueueInterface *queue_stream)
826
- : SyclDeviceBase(queue_stream) {}
827
-
828
- // this is the accessor used to construct the evaluator
829
- template <cl::sycl::access::mode AcMd, typename T>
830
- EIGEN_STRONG_INLINE TensorSycl::internal::RangeAccess<AcMd, T>
831
- get_range_accessor(const void *ptr) const {
832
- return queue_stream()->template get_range_accessor<AcMd, T>(ptr);
833
- }
834
-
835
- // get sycl accessor
836
- template <cl::sycl::access::mode AcMd>
837
- EIGEN_STRONG_INLINE cl::sycl::accessor<
838
- buffer_scalar_t, 1, AcMd, cl::sycl::access::target::global_buffer>
839
- get_sycl_accessor(cl::sycl::handler &cgh, const void *ptr) const {
840
- return queue_stream()->template get_sycl_accessor<AcMd>(cgh, ptr);
841
- }
842
-
843
- /// Accessing the created sycl device buffer for the device pointer
844
- EIGEN_STRONG_INLINE cl::sycl::buffer<buffer_scalar_t, 1> get_sycl_buffer(
845
- const void *ptr) const {
846
- return queue_stream()->get_sycl_buffer(ptr);
847
- }
848
-
849
- /// This is used to prepare the number of threads and also the number of
850
- /// threads per block for sycl kernels
851
- template <typename Index>
852
- EIGEN_STRONG_INLINE void parallel_for_setup(Index n, Index &tileSize,
853
- Index &rng, Index &GRange) const {
854
- queue_stream()->parallel_for_setup(n, tileSize, rng, GRange);
855
- }
856
-
857
- /// This is used to prepare the number of threads and also the number of
858
- /// threads per block for sycl kernels
859
- template <typename Index>
860
- EIGEN_STRONG_INLINE void parallel_for_setup(
861
- const std::array<Index, 2> &input_dim, cl::sycl::range<2> &global_range,
862
- cl::sycl::range<2> &local_range) const {
863
- queue_stream()->parallel_for_setup(input_dim, global_range, local_range);
864
- }
865
-
866
- /// This is used to prepare the number of threads and also the number of
867
- /// threads per block for sycl kernels
868
- template <typename Index>
869
- EIGEN_STRONG_INLINE void parallel_for_setup(
870
- const std::array<Index, 3> &input_dim, cl::sycl::range<3> &global_range,
871
- cl::sycl::range<3> &local_range) const {
872
- queue_stream()->parallel_for_setup(input_dim, global_range, local_range);
873
- }
874
-
875
- /// allocate device memory
876
- EIGEN_STRONG_INLINE void *allocate(size_t num_bytes) const {
877
- return queue_stream()->allocate(num_bytes);
878
- }
879
-
880
- EIGEN_STRONG_INLINE void *allocate_temp(size_t num_bytes) const {
881
- return queue_stream()->allocate_temp(num_bytes);
882
- }
883
-
884
- /// deallocate device memory
885
- EIGEN_STRONG_INLINE void deallocate(void *p) const {
886
- queue_stream()->deallocate(p);
887
- }
888
-
889
- EIGEN_STRONG_INLINE void deallocate_temp(void *buffer) const {
890
- queue_stream()->deallocate_temp(buffer);
891
- }
892
- template <cl::sycl::access::mode AcMd, typename T>
893
- EIGEN_STRONG_INLINE void deallocate_temp(
894
- const TensorSycl::internal::RangeAccess<AcMd, T> &buffer) const {
895
- queue_stream()->deallocate_temp(buffer);
896
- }
897
- EIGEN_STRONG_INLINE void deallocate_all() const {
898
- queue_stream()->deallocate_all();
899
- }
900
-
901
- template <typename data_t>
902
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSycl::internal::RangeAccess<
903
- cl::sycl::access::mode::read_write, data_t>
904
- get(data_t *data) const {
905
- return queue_stream()->get(data);
906
- }
907
- template <typename data_t>
908
- EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE data_t *get(
909
- TensorSycl::internal::RangeAccess<cl::sycl::access::mode::read_write,
910
- data_t>
911
- data) const {
912
- return queue_stream()->get(data);
913
- }
914
-
915
- /// attach existing buffer
916
- EIGEN_STRONG_INLINE void *attach_buffer(
917
- cl::sycl::buffer<buffer_scalar_t, 1> &buf) const {
918
- return queue_stream()->attach_buffer(buf);
919
- }
920
- /// detach buffer
921
- EIGEN_STRONG_INLINE void detach_buffer(void *p) const {
922
- queue_stream()->detach_buffer(p);
923
- }
924
- EIGEN_STRONG_INLINE ptrdiff_t get_offset(const void *ptr) const {
925
- return queue_stream()->get_offset(ptr);
926
- }
927
-
928
- // some runtime conditions that can be applied here
929
- EIGEN_STRONG_INLINE bool isDeviceSuitable() const { return true; }
930
-
931
- /// memcpyHostToDevice
932
- template <typename Index>
933
- EIGEN_STRONG_INLINE void memcpyHostToDevice(
934
- Index *dst, const Index *src, size_t n,
935
- std::function<void()> callback = {}) const {
936
- queue_stream()->memcpyHostToDevice(dst, src, n, callback);
937
- }
938
- /// memcpyDeviceToHost
939
- template <typename Index>
940
- EIGEN_STRONG_INLINE void memcpyDeviceToHost(
941
- void *dst, const Index *src, size_t n,
942
- std::function<void()> callback = {}) const {
943
- queue_stream()->memcpyDeviceToHost(dst, src, n, callback);
944
- }
945
- /// the memcpy function
946
- template <typename Index>
947
- EIGEN_STRONG_INLINE void memcpy(void *dst, const Index *src, size_t n) const {
948
- queue_stream()->memcpy(dst, src, n);
949
- }
950
- /// the memset function
951
- EIGEN_STRONG_INLINE void memset(void *data, int c, size_t n) const {
952
- queue_stream()->memset(data, c, n);
953
- }
954
- /// returning the sycl queue
955
- EIGEN_STRONG_INLINE cl::sycl::queue &sycl_queue() const {
956
- return queue_stream()->sycl_queue();
957
- }
958
- #ifdef EIGEN_SYCL_USE_PROGRAM_CLASS
959
- EIGEN_STRONG_INLINE cl::sycl::program &program() const {
960
- return queue_stream()->program();
961
- }
962
- #endif
963
-
964
- EIGEN_STRONG_INLINE size_t firstLevelCacheSize() const { return 48 * 1024; }
965
-
966
- EIGEN_STRONG_INLINE size_t lastLevelCacheSize() const {
967
- // We won't try to take advantage of the l2 cache for the time being, and
968
- // there is no l3 cache on sycl devices.
969
- return firstLevelCacheSize();
970
- }
971
- EIGEN_STRONG_INLINE unsigned long getNumSyclMultiProcessors() const {
972
- return queue_stream()->getNumSyclMultiProcessors();
973
- }
974
- EIGEN_STRONG_INLINE unsigned long maxSyclThreadsPerBlock() const {
975
- return queue_stream()->maxSyclThreadsPerBlock();
976
- }
977
- EIGEN_STRONG_INLINE cl::sycl::id<3> maxWorkItemSizes() const {
978
- return queue_stream()->maxWorkItemSizes();
979
- }
980
- EIGEN_STRONG_INLINE unsigned long maxSyclThreadsPerMultiProcessor() const {
981
- // OpenCL doesnot have such concept
982
- return queue_stream()->maxSyclThreadsPerMultiProcessor();
983
- }
984
- EIGEN_STRONG_INLINE size_t sharedMemPerBlock() const {
985
- return queue_stream()->sharedMemPerBlock();
986
- }
987
- EIGEN_STRONG_INLINE size_t getNearestPowerOfTwoWorkGroupSize() const {
988
- return queue_stream()->getNearestPowerOfTwoWorkGroupSize();
989
- }
990
-
991
- EIGEN_STRONG_INLINE size_t getPowerOfTwo(size_t val, bool roundUp) const {
992
- return queue_stream()->getPowerOfTwo(val, roundUp);
993
- }
994
- /// No need for sycl it should act the same as CPU version
995
- EIGEN_STRONG_INLINE int majorDeviceVersion() const {
996
- return queue_stream()->majorDeviceVersion();
997
- }
998
-
999
- EIGEN_STRONG_INLINE void synchronize() const {
1000
- queue_stream()->synchronize();
1001
- }
1002
- EIGEN_STRONG_INLINE void async_synchronize(
1003
- cl::sycl::event e = cl::sycl::event()) const {
1004
- queue_stream()->async_synchronize(e);
1005
- }
1006
- EIGEN_STRONG_INLINE cl::sycl::event get_latest_event() const {
1007
- return queue_stream()->get_latest_event();
1008
- }
1009
-
1010
- // This function checks if the runtime recorded an error for the
1011
- // underlying stream device.
1012
- EIGEN_STRONG_INLINE bool ok() const { return queue_stream()->ok(); }
1013
-
1014
- EIGEN_STRONG_INLINE bool has_local_memory() const {
1015
- return queue_stream()->has_local_memory();
1016
- }
1017
- EIGEN_STRONG_INLINE long max_buffer_size() const {
1018
- return queue_stream()->max_buffer_size();
1019
- }
1020
- EIGEN_STRONG_INLINE std::string getPlatformName() const {
1021
- return queue_stream()->getPlatformName();
1022
- }
1023
- EIGEN_STRONG_INLINE std::string getDeviceName() const {
1024
- return queue_stream()->getDeviceName();
1025
- }
1026
- EIGEN_STRONG_INLINE std::string getDeviceVendor() const {
1027
- return queue_stream()->getDeviceVendor();
1028
- }
1029
- template <typename OutScalar, typename KernelType, typename... T>
1030
- EIGEN_ALWAYS_INLINE void binary_kernel_launcher(T... var) const {
1031
- queue_stream()->template binary_kernel_launcher<OutScalar, KernelType>(
1032
- var...);
1033
- }
1034
- template <typename OutScalar, typename KernelType, typename... T>
1035
- EIGEN_ALWAYS_INLINE void unary_kernel_launcher(T... var) const {
1036
- queue_stream()->template unary_kernel_launcher<OutScalar, KernelType>(
1037
- var...);
1038
- }
1039
-
1040
- template <typename OutScalar, typename KernelType, typename... T>
1041
- EIGEN_ALWAYS_INLINE void nullary_kernel_launcher(T... var) const {
1042
- queue_stream()->template nullary_kernel_launcher<OutScalar, KernelType>(
1043
- var...);
1044
- }
1045
- };
1046
- } // end namespace Eigen
1047
-
1048
- #endif // EIGEN_CXX11_TENSOR_TENSOR_DEVICE_SYCL_H