Skip to content

Disable two GCC 13.3 warnings#439

Merged
matthewdcong merged 1 commit into
openvdb:mainfrom
matthewdcong:disable_gcc13_warnings
Feb 3, 2026
Merged

Disable two GCC 13.3 warnings#439
matthewdcong merged 1 commit into
openvdb:mainfrom
matthewdcong:disable_gcc13_warnings

Conversation

@matthewdcong

Copy link
Copy Markdown
Contributor

GCC 13.3 doesn't correctly statically analyze the PyTorch compile-time logic for autograd (i.e. counting the number of Variables returned from the forward pass) and throw what I believe to be erroneous Warray-bounds and Wstringop-overflow warnings. These are in particular associated with the VolumeRender function and its forward pass which unlike most returns a vector of tensors rather than a single one.

PyTorch encountered a similar error in pytorch/pytorch#137092 and disabled the warning.

@matthewdcong matthewdcong requested a review from a team as a code owner February 2, 2026 22:38
Signed-off-by: Matthew Cong <mcong@nvidia.com>
@matthewdcong matthewdcong force-pushed the disable_gcc13_warnings branch from 1fd5aa3 to 181a21a Compare February 2, 2026 22:38

@harrism harrism left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really want to disable these warnings everywhere? Can you localize it to the problematic files or lines?

The pytorch issue was for something different, they added -Wno-error=nonnull, specifically for a test target.

@matthewdcong

Copy link
Copy Markdown
Contributor Author

I tried to localize it but wasn't able to find a solution. It doesn't work to surround the header because the actual ordering could be different due to transitive includes. Furthermore, surrounding the function doesn't work either. I even tried converting it to a tuple instead of a vector at the top level but that doesn't work either 😞

@matthewdcong

Copy link
Copy Markdown
Contributor Author

It's not the same error, but a similar one, also occurring in __builtin_memmove.

@harrism

harrism commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

OK, I'll approve.

@matthewdcong matthewdcong merged commit 183fdc1 into openvdb:main Feb 3, 2026
32 of 38 checks passed
harrism added a commit to harrism/fvdb-core that referenced this pull request Mar 12, 2026
gcc-toolset-14 (GCC 14.2.1) triggers a false -Wmaybe-uninitialized
warning in NanoVDB's HDDA.h. This is a known class of GCC false
positive (76+ open bugs in GCC bugzilla). Suppress it for both CXX
and CUDA host compiler, matching the precedent from openvdb#439.

Signed-off-by: Mark Harris <mharris@nvidia.com>
swahtz pushed a commit that referenced this pull request Mar 25, 2026
gcc-toolset-14 (GCC 14.2.1) triggers a false -Wmaybe-uninitialized
warning in NanoVDB's HDDA.h. This is a known class of GCC false
positive (76+ open bugs in GCC bugzilla). Suppress it for both CXX
and CUDA host compiler, matching the precedent from #439.

Signed-off-by: Mark Harris <mharris@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants