QUICK icon indicating copy to clipboard operation
QUICK copied to clipboard

Warnings from NVIDIA compilers

Open merzlab opened this issue 4 years ago • 3 comments

Nvidia fortran and nvc compilers (nvcompilers/2020) throw a lot of "declared but never referenced" warnings during the compilation. These have to be silenced.

merzlab avatar Jan 27 '21 22:01 merzlab

I assume by silencing you mean cleaning the code by removing variables that are never used.

agoetz avatar Feb 26 '21 01:02 agoetz

@agoetz These are coming from libxc since we use only some parts of the code in CUDA version. We cannot remove them. Adding -Wno-unused-variable into C flag list should easily solve this.

Madu86 avatar Feb 26 '21 02:02 Madu86

Ah, OK. Makes sense. But we should use that flag only for libxc. We don't want unused variables to sneak into our code. Thanks!

agoetz avatar Feb 26 '21 02:02 agoetz

@Madu86 was this addressed?

agoetz avatar Feb 17 '23 05:02 agoetz

Resolved in legacy build at the time but CMake build doesnt support NVIDIA compilers at the moment. Closing this issue now.

Madu86 avatar Feb 17 '23 12:02 Madu86