Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: GeoVisualization - Fix compiler warning that's appearing in Athena #2585

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

junggjo9
Copy link
Contributor

@junggjo9 junggjo9 commented Oct 26, 2023

The athena compiler is throwing a warning if the Visualization library is loaded.

/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx: In member function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const':
/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: warning: 'static' expression 'Acts::s_viewSensitive' of type 'Acts::ViewConfig' passed to pointer or reference function argument of 'Acts::GeometryView3D::drawDetectorVolume' within function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const'; may not be thread-safe
   35 |             Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context());
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:8:
/build/ci-builds/main/Athena/install/AthenaExternals/24.0.15/InstallArea/x86_64-el9-gcc13-opt/include/Acts/Visualization/GeometryView3D.hpp:34:19: note: Declared here:
   34 | static ViewConfig s_viewSensitive = ViewConfig({0, 180, 240});
      |                   ^~~~~~~~~~~~~~~
/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: note: See <https://gitlab.cern.ch/atlas/atlasexternals/tree/master/External/CheckerGccPlugins#thread_plugin>.
   35 |             Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context());

I hope that's fixing the warning.

@github-actions github-actions bot added the Component - Core Affects the Core module label Oct 26, 2023
@junggjo9 junggjo9 changed the title Fix: GeoVisualization - Fix compiler warning that's appearing in Athena fix: GeoVisualization - Fix compiler warning that's appearing in Athena Oct 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

📊: Physics performance monitoring for 3912634

Full contents
🟥 summary not found!

@paulgessinger paulgessinger added this to the next milestone Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #2585 (9415fdf) into main (df34a3a) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head 9415fdf differs from pull request most recent head 3912634. Consider uploading reports for the commit 3912634 to get more accurate results

@@           Coverage Diff           @@
##             main    #2585   +/-   ##
=======================================
  Coverage   49.63%   49.63%           
=======================================
  Files         471      471           
  Lines       26687    26687           
  Branches    12277    12277           
=======================================
  Hits        13245    13245           
  Misses       4746     4746           
  Partials     8696     8696           
Files Coverage Δ
Core/src/Visualization/GeometryView3D.cpp 36.21% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@paulgessinger
Copy link
Member

Which compiler did this show up in? I'm a bit surprised this passes our CI here. Maybe we're not configuring the warnings the same way?

@junggjo9
Copy link
Contributor Author

I don't know the details of the configuration, it's probably a different warning configuration.

@paulgessinger paulgessinger merged commit 6b5a2f1 into acts-project:main Oct 26, 2023
46 of 52 checks passed
paulgessinger pushed a commit that referenced this pull request Oct 26, 2023
…na (#2585)

The athena compiler is throwing a warning if the Visualization library
is loaded.
```
/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx: In member function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const':
/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: warning: 'static' expression 'Acts::s_viewSensitive' of type 'Acts::ViewConfig' passed to pointer or reference function argument of 'Acts::GeometryView3D::drawDetectorVolume' within function 'virtual Acts::Experimental::DetectorComponent ActsTrk::SimpleCylinderDetBuilderTool::construct(const Acts::GeometryContext&) const'; may not be thread-safe
   35 |             Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context());
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:8:
/build/ci-builds/main/Athena/install/AthenaExternals/24.0.15/InstallArea/x86_64-el9-gcc13-opt/include/Acts/Visualization/GeometryView3D.hpp:34:19: note: Declared here:
   34 | static ViewConfig s_viewSensitive = ViewConfig({0, 180, 240});
      |                   ^~~~~~~~~~~~~~~
/var/lib/jenkins/workspace/CI-MERGE-REQUEST-EL9/main/Tracking/Acts/ActsGeometry/src/SimpleCylinderDetBuilderTool.cxx:35:53: note: See <https://gitlab.cern.ch/atlas/atlasexternals/tree/master/External/CheckerGccPlugins#thread_plugin>.
   35 |             Acts::GeometryView3D::drawDetectorVolume(helper, *cylinderDetectorVolume, gctx->context());

```
I hope that's  fixing the warning.
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Oct 26, 2023
@paulgessinger paulgessinger modified the milestones: next, v31.0.0 Nov 6, 2023
@paulgessinger paulgessinger removed the Fails Athena tests This PR causes a failure in the Athena tests label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants