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

missing initializer for member ‘cuda::device::pci_location_t::function’ #353

Closed
DiamonDinoia opened this issue Jun 3, 2022 · 2 comments

Comments

@DiamonDinoia
Copy link

Hi,
When compiling the library I get this warning, it does not seem to cause any problem but it should be worth fixing or silencing:

src/cuda/api/device_properties.hpp: In member function ‘cuda::device::pci_location_t cuda::device::properties_t::pci_id() const’:
src/cuda/api/device_properties.hpp:128:84: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  128 |  pci_location_t pci_id() const noexcept { return { pciDomainID, pciBusID, pciDeviceID }; }
      |                                                                                    ^
src/cuda/api/device.hpp: In member function ‘cuda::device::pci_location_t cuda::device_t::pci_id() const’:
src/cuda/api/device.hpp:284:49: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  284 |   return {pci_domain_id, pci_bus_id, pci_device_id};
      |                                                 ^
src/cuda/api/device_properties.hpp: In member function ‘cuda::device::pci_location_t cuda::device::properties_t::pci_id() const’:
src/cuda/api/device_properties.hpp:128:84: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  128 |  pci_location_t pci_id() const noexcept { return { pciDomainID, pciBusID, pciDeviceID }; }
      |                                                                                    ^
src/cuda/api/device.hpp: In member function ‘cuda::device::pci_location_t cuda::device_t::pci_id() const’:
src/cuda/api/device.hpp:284:49: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  284 |   return {pci_domain_id, pci_bus_id, pci_device_id};
      |                                                 ^
src/cuda/api/device_properties.hpp: In member function ‘cuda::device::pci_location_t cuda::device::properties_t::pci_id() const’:
src/cuda/api/device_properties.hpp:128:84: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  128 |  pci_location_t pci_id() const noexcept { return { pciDomainID, pciBusID, pciDeviceID }; }
      |                                                                                    ^
src/cuda/api/device.hpp: In member function ‘cuda::device::pci_location_t cuda::device_t::pci_id() const’:
src/cuda/api/device.hpp:284:49: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  284 |   return {pci_domain_id, pci_bus_id, pci_device_id};
      |                                                 ^
src/cuda/api/device_properties.hpp: In member function ‘cuda::device::pci_location_t cuda::device::properties_t::pci_id() const’:
src/cuda/api/device_properties.hpp:128:84: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  128 |  pci_location_t pci_id() const noexcept { return { pciDomainID, pciBusID, pciDeviceID }; }
      |                                                                                    ^
src/cuda/api/device.hpp: In member function ‘cuda::device::pci_location_t cuda::device_t::pci_id() const’:
src/cuda/api/device.hpp:284:49: warning: missing initializer for member ‘cuda::device::pci_location_t::function’ [-Wmissing-field-initializers]
  284 |   return {pci_domain_id, pci_bus_id, pci_device_id};
      |                                                 ^
@eyalroz
Copy link
Owner

eyalroz commented Jun 3, 2022

Hello @DiamonDinoia ,

Can you tell me which compiler are you using? And - which version of cuda-api-wrappers?

@DiamonDinoia
Copy link
Author

Hi,

gcc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0 and cuda-api-wrappers v0.5.0

eyalroz added a commit that referenced this issue Jun 3, 2022
@eyalroz eyalroz self-assigned this Jun 3, 2022
eyalroz added a commit that referenced this issue Jun 3, 2022
eyalroz added a commit that referenced this issue Jun 20, 2022
eyalroz added a commit that referenced this issue Jun 20, 2022
eyalroz added a commit that referenced this issue Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants