Skip to content

LogHistogram#1410

Open
ct-clmsn wants to merge 11 commits intosstsimulator:develfrom
ct-clmsn:loghistogram
Open

LogHistogram#1410
ct-clmsn wants to merge 11 commits intosstsimulator:develfrom
ct-clmsn:loghistogram

Conversation

@ct-clmsn
Copy link

@ct-clmsn ct-clmsn commented Aug 20, 2025

initial import of LogBinHistogram for #359 which is related to #381

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT FAIL labels Aug 20, 2025
@github-actions
Copy link

CLANG-FORMAT TEST - FAILED (on last commit):
Run > ./scripts/clang-format-test.sh using clang-format v20 to check formatting

@github-actions github-actions bot added AT: CMAKE-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Aug 20, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@github-actions github-actions bot added the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Aug 20, 2025
@github-actions
Copy link

CLANG-FORMAT TEST - FAILED (on last commit):
Run > ./scripts/clang-format-test.sh using clang-format v20 to check formatting

@github-actions github-actions bot removed the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Aug 20, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Aug 20, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@github-actions
Copy link

CLANG-FORMAT TEST - FAILED (on last commit):
Run > ./scripts/clang-format-test.sh using clang-format v20 to check formatting

@github-actions
Copy link

CLANG-FORMAT TEST - FAILED (on last commit):
Run > ./scripts/clang-format-test.sh using clang-format v20 to check formatting

@github-actions github-actions bot removed the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Aug 20, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT FAIL labels Aug 20, 2025
@github-actions
Copy link

CLANG-FORMAT TEST - PASSED

@github-actions github-actions bot added the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Aug 20, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@ct-clmsn
Copy link
Author

@feldergast I'm not sure what the linting check is unhappy with - could use a second glance.

@berquist
Copy link
Member

I had to approve your workflow to run, but you can see it here: https://github.com/sstsimulator/sst-core/actions/runs/17130304179/job/48593800032?pr=1410

@ct-clmsn
Copy link
Author

ct-clmsn commented Aug 21, 2025

@berquist those lines look equivalent ... it's kind of throwing me off, is this a spacing issue?

@feldergast
Copy link
Contributor

If you have pre-commit set up on your system, you can just run "pre-commit run --all" and it should do the proper formatting as part of those checks. If not, getting that working may be easier than getting clang-format20 on your system.

@berquist
Copy link
Member

It is hard to read from the diff, because most don't display it well, but if you do what Scott says, you'll see that it's trailing whitespace. You can also see that "trim trailing whitespace" failed before running clang-format.

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT FAIL labels Aug 22, 2025
@github-actions
Copy link

CLANG-FORMAT TEST - PASSED

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Aug 22, 2025
@github-actions
Copy link

CMAKE-FORMAT TEST - PASSED

@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO INSPECTION HAS BEEN PERFORMED ON THIS PULL REQUEST! - This PR must be inspected by setting label 'AT: PRE-TEST INSPECTED'.

Copy link
Contributor

@feldergast feldergast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Administrative review: Approved by @leekillough

@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED by label AT: PRE-TEST INSPECTED! Autotester is Removing Label; this inspection will remain valid until a new commit to source branch is performed.

@sst-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements

  • Build Num: 2373
  • Status: STARTED

Build Information

Test Name: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MR-2

  • Build Num: 2327
  • Status: STARTED

Build Information

Test Name: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MT-2

  • Build Num: 2326
  • Status: STARTED

Build Information

Test Name: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-core_Make-Dist

  • Build Num: 971
  • Status: STARTED

Build Information

Test Name: SST__AutotestGen2_NewFW_OSX-15-XC15-ARM2_OMPI-4.1.6_PY3.10_sst-elements

  • Build Num: 877
  • Status: STARTED

Using Repos:

Repo: CORE (ct-clmsn/sst-core)
  • Branch: loghistogram
  • SHA: 9508e90
  • Mode: TEST_REPO
Repo: SQE (sstsimulator/sst-sqe)
  • Branch: devel
  • SHA: 1e54a5e211d27c88697dab709c0b1d3293cd4a1e
  • Mode: SUPPORT_REPO
Repo: ELEMENTS (sstsimulator/sst-elements)
  • Branch: devel
  • SHA: ad0782067f71d28b5aeebc341391b976bf6fd818
  • Mode: SUPPORT_REPO
Repo: MACRO (sstsimulator/sst-macro)
  • Branch: devel
  • SHA: 489f035111339bbd94e9db661a68c1b2cd7faf77
  • Mode: SUPPORT_REPO

Pull Request Author: ct-clmsn

@sst-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Jenkins Testing: 1 or more Jobs FAILED

Note: Testing will normally be attempted again in approx. 4 Hrs. If a change to the PR source branch occurs, the testing will be attempted again on next available autotester run.

Pull Request Auto Testing has FAILED (click to expand)

Job: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements

  • Result: FAILED
  • Build #: 2373
  • URL: Jenkins server at https://sst-jenkins.sandia.gov/view/SST/job/SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements/2373/consoleFull
  • Job: - Status: FAILURE

Job: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MR-2

  • Result: FAILED
  • Build #: 2327
  • URL: Jenkins server at https://sst-jenkins.sandia.gov/view/SST/job/SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MR-2/2327/consoleFull
  • Job: - Status: FAILURE

Job: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MT-2

  • Result: FAILED
  • Build #: 2326
  • URL: Jenkins server at https://sst-jenkins.sandia.gov/view/SST/job/SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MT-2/2326/consoleFull
  • Job: - Status: FAILURE

Job: SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-core_Make-Dist

  • Result: FAILED
  • Build #: 971
  • URL: Jenkins server at https://sst-jenkins.sandia.gov/view/SST/job/SST__AutotestGen2_NewFW_sst-test_OMPI-4.1.4_PY3.9_sst-core_Make-Dist/971/consoleFull
  • Job: - Status: FAILURE

Job: SST__AutotestGen2_NewFW_OSX-15-XC15-ARM2_OMPI-4.1.6_PY3.10_sst-elements

  • Result: FAILED
  • Build #: 877
  • URL: Jenkins server at https://sst-jenkins.sandia.gov/view/SST/job/SST__AutotestGen2_NewFW_OSX-15-XC15-ARM2_OMPI-4.1.6_PY3.10_sst-elements/877/consoleFull
  • Job: - Status: FAILURE

@feldergast feldergast added the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Dec 1, 2025
@feldergast
Copy link
Contributor

Looks like core has diverged too far. This PR fails with missing type declarations. Will need to be rebased, fix and repushed.

@leekillough
Copy link
Contributor

I have created https://github.com/leekillough/sst-core/tree/loghistogram which is merged with devel and squashed with git reset --soft but I get compilation errors which indicate possibly unfinished work, or dependence on removed features like StatisticBase::StatMode_t and StatisticBase::STAT_MODE_COUNT:

In file included from ../../../../src/sst/core/statapi/statbase.cc:20:
../../../../src/sst/core/statapi/statlghistogram.h:308:30: error: ‘SST::Statistics::StatisticBase::StatMode_t’ has not been declared
  308 |     bool isStatModeSupported(StatisticBase::StatMode_t mode) const override
      |                              ^~~~~~~~~~~~~
../../../../src/sst/core/statapi/statlghistogram.h: In member function ‘bool SST::Statistics::LogBinHistogramStatistic<BinDataType>::isStatModeSupported(int) const’:
../../../../src/sst/core/statapi/statlghistogram.h:311:29: error: ‘STAT_MODE_COUNT’ is not a member of ‘SST::Statistics::StatisticBase’
  311 |         case StatisticBase::STAT_MODE_COUNT:
      |                             ^~~~~~~~~~~~~~~
../../../../src/sst/core/statapi/statlghistogram.h:312:29: error: ‘STAT_MODE_PERIODIC’ is not a member of ‘SST::Statistics::StatisticBase’
  312 |         case StatisticBase::STAT_MODE_PERIODIC:
      |                             ^~~~~~~~~~~~~~~~~~
../../../../src/sst/core/statapi/statlghistogram.h:313:29: error: ‘STAT_MODE_DUMP_AT_END’ is not a member of ‘SST::Statistics::StatisticBase’
  313 |         case StatisticBase::STAT_MODE_DUMP_AT_END:
      |                             ^~~~~~~~~~~~~~~~~~~~~
../../../../src/sst/core/statapi/statlghistogram.h: In instantiation of ‘class SST::Statistics::LogBinHistogramStatistic<int>’:
../../../../src/sst/core/statapi/statbase.cc:247:1:   required from here
../../../../src/sst/core/statapi/statlghistogram.h:308:10: error: ‘bool SST::Statistics::LogBinHistogramStatistic<BinDataType>::isStatModeSupported(int) const [with BinDataType = int]’ marked ‘override’, but does not override
  308 |     bool isStatModeSupported(StatisticBase::StatMode_t mode) const override
      |          ^~~~~~~~~~~~~~~~~~~

If this feature is still desired, someone else will need to spend some time bringing the code up-to-date.

return false;
}
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The isStatModeSupported() function can be removed. The STAT_MODE_* types no longer exist and the default implementation of the function is correct for statlghistogram. Background: The function signature changed to take a bool indicating COUNT (false) or PERIODIC (true). DUMP_AT_END was always unused and no longer exists.

@jleidel
Copy link
Contributor

jleidel commented Dec 10, 2025

@gvoskuilen any guidance here to port the code to the latest stats codebase?

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

Labels

AT: CLANG-FORMAT PASS AT: CMAKE-FORMAT PASS AT: WIP Mark PR as a Work in Progress (No Autotesting Performed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants