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
Support for sm_100 was added to <nv/__detail/__target_macros> in #1745, so it works for NVCC. But the corresponding change was not made to <nv/target>. When compiling with NVC++, the macro NV_PROVIDES_SM_100 references sm_100, but that doesn't exist and compilation fails.
How to Reproduce
$ cat sm100.cpp
#include <nv/target>
int main() {
if target (provides(nv::target::sm_100)) { return 100; }
}
$ nvc++ sm100.cpp
"sm100.cpp", line 3: error: namespace "nv::target" has no member "sm_100"
if target (provides(nv::target::sm_100)) { return 100; }
^
"sm100.cpp", line 3: error: identifier "provides" is undefined
if target (provides(nv::target::sm_100)) { return 100; }
^
2 errors detected in the compilation of "sm100.cpp".
Expected behavior
nv::target::sm_100 should be defined when <nv/target> is included.
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered:
Is this a duplicate?
Type of Bug
Compile-time Error
Component
libcu++
Describe the bug
Support for sm_100 was added to
<nv/__detail/__target_macros>
in #1745, so it works for NVCC. But the corresponding change was not made to<nv/target>
. When compiling with NVC++, the macroNV_PROVIDES_SM_100
referencessm_100
, but that doesn't exist and compilation fails.How to Reproduce
Expected behavior
nv::target::sm_100
should be defined when<nv/target>
is included.Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: