Skip to content

1D lagrange computations are not getting inlined at least on M4 #4272

@GiudGiud

Description

@GiudGiud

I think it's because of the libmesh_error
See the profiles:
w/ the error
1.07s 2.65% 41.52% 1.07s 2.65% libMesh::fe_lagrange_1D_linear_shape
w/o the error. Notice it disappeared, and it didnt weigh down fe_lagrange_2D_shape much either

Showing top 50 nodes out of 231
      flat  flat%   sum%        cum   cum%
     9.60s 22.32% 22.32%      9.80s 22.79%  tcmalloc::CentralFreeList::Populate
     2.19s  5.09% 27.41%      3.08s  7.16%  MooseMesh::cacheInfo
     1.91s  4.44% 31.85%      2.21s  5.14%  MatSetValues_SeqAIJ
     1.71s  3.98% 35.83%     42.33s 98.42%  [libsasl2.2.dylib]
     1.23s  2.86% 38.69%      2.83s  6.58%  libMesh::BoundaryInfo::boundary_ids
     1.07s  2.49% 41.18%      1.07s  2.49%  libMesh::Elem::which_child_am_i
     1.02s  2.37% 43.55%      1.02s  2.37%  hypre_BoomerAMGRelaxHybridGaussSeidel_core
     0.81s  1.88% 45.43%      1.37s  3.19%  MooseVariableData::computeValuesInternal
     0.76s  1.77% 47.20%      0.76s  1.77%  libMesh::Face::dim
     0.75s  1.74% 48.94%      0.75s  1.74%  libMesh::H1FETransformation::map_dphi
     0.69s  1.60% 50.55%      0.69s  1.60%  (anonymous namespace)::fe_lagrange_2D_shape
     0.62s  1.44% 51.99%      0.67s  1.56%  VecSetValues_Seq
     0.58s  1.35% 53.34%      1.10s  2.56%  Kernel::computeResidual
     0.54s  1.26% 54.59%      0.61s  1.42%  libMesh::Elem::contains_vertex_of
     0.46s  1.07% 55.66%      0.46s  1.07%  MooseMesh::getNodeBlockIds
     0.46s  1.07% 56.73%      0.86s  2.00%  libMesh::FEMap::compute_affine_map
     0.43s     1% 57.73%      1.75s  4.07%  tc_delete
     0.40s  0.93% 58.66%      0.53s  1.23%  libMesh::Predicates::level::operator()
     0.40s  0.93% 59.59%     10.99s 25.55%  tc_new

full profile w/ the error

      flat  flat%   sum%        cum   cum%
     9.12s 22.57% 22.57%      9.35s 23.14%  tcmalloc::CentralFreeList::Populate
     1.87s  4.63% 27.20%      2.24s  5.54%  MatSetValues_SeqAIJ
     1.69s  4.18% 31.38%     39.78s 98.44%  [libsasl2.2.dylib]
     1.61s  3.98% 35.36%      2.56s  6.34%  MooseMesh::cacheInfo
     1.42s  3.51% 38.88%      2.75s  6.81%  libMesh::BoundaryInfo::boundary_ids
     1.07s  2.65% 41.52%      1.07s  2.65%  libMesh::fe_lagrange_1D_linear_shape
     0.99s  2.45% 43.97%      0.99s  2.45%  hypre_BoomerAMGRelaxHybridGaussSeidel_core
     0.91s  2.25% 46.23%      0.97s  2.40%  libMesh::Elem::which_child_am_i
     0.85s  2.10% 48.33%      1.48s  3.66%  MooseVariableData::computeValuesInternal
     0.61s  1.51% 49.84%      0.61s  1.51%  libMesh::FEMap::compute_single_point_map
     0.60s  1.48% 51.32%      0.60s  1.48%  libMesh::H1FETransformation::map_dphi
     0.55s  1.36% 52.68%      0.60s  1.48%  libMesh::Elem::contains_vertex_of
     0.54s  1.34% 54.02%      1.61s  3.98%  (anonymous namespace)::fe_lagrange_2D_shape
     0.54s  1.34% 55.36%      0.99s  2.45%  Kernel::computeResidual
     0.47s  1.16% 56.52%      0.47s  1.16%  libMesh::Face::dim
     0.46s  1.14% 57.66%      0.46s  1.14%  MooseMesh::getNodeBlockIds
     0.40s  0.99% 58.65%      1.14s  2.82%  libMesh::FEMap::compute_affine_map
     0.39s  0.97% 59.61%      0.44s  1.09%  libMesh::Predicates::level::operator()
     0.37s  0.92% 60.53%     10.38s 25.69%  tc_new
     0.36s  0.89% 61.42%      0.36s  0.89%  PetscSFSetUpRanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions