You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
The function cub::DeviceCount in file cub/util_device.cuh defines a static variable in a host-only region within a host/device function. NVC++ is being changed to report a compiler error when a device function or a host/device function defines any static variables. NVC++ is currently not smart enough to figure out that the static variable is defined in a host-only region, so it reports an error in DeviceCount. Fixing NVC++ to recognize this situation will take a while. In the meantime, cub::DeviceCount should be changed to not define a static variable. The definition of the static variable should be moved to a separate host-only function.
The text was updated successfully, but these errors were encountered:
A future release of NVC++ will report an error for local static variables
that are defined in device functions and host/device functions, even if
the variable is defined within a host-only region of the function. To
avoid errors, move the local static variable that stores the device count
from cub::DeviceCount() to a separate host-only function.
FixNVIDIA#1217
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The function cub::DeviceCount in file cub/util_device.cuh defines a static variable in a host-only region within a host/device function. NVC++ is being changed to report a compiler error when a device function or a host/device function defines any static variables. NVC++ is currently not smart enough to figure out that the static variable is defined in a host-only region, so it reports an error in DeviceCount. Fixing NVC++ to recognize this situation will take a while. In the meantime, cub::DeviceCount should be changed to not define a static variable. The definition of the static variable should be moved to a separate host-only function.
The text was updated successfully, but these errors were encountered: