-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
v0.5.5 does not compile #410
Comments
@DiamonDinoia : What exactly are you compiling? Is it an example program from the repository? If not, please provide a link to a |
Hi, a sample can be found here: https://github.com/DiamonDinoia/test-cuda/tree/master/cuda-api-wrappers |
@DiamonDinoia : Can't reproduce with GCC 7.x, CUDA 11.6.5, and compilation command-line:
but to be honest - the build failed for even earlier due to CUDA language standard selection. CMake tried to force C++17, despite the system not having the Do you experience this issue when compiling with -std=c++11 or -std=c++14? |
It works with -std=c++11. It breaks with -std=c++14 onwards. I get a different error though:
|
If the language standard is the issue you might want to force it to 11 here: cuda-api-wrappers/CMakeLists.txt Line 47 in 5338353
instead of at least 11. |
I can now reproduce these erroneous results with C++14 , and just the following source:
and command-line:
I thought fixing #411 may fix it, but it's not enough / not it.. |
Please try again with the latest revisin on the develop branch. I believe the fix for #415 should do the trick. |
I still see the same issue: -- CPM: adding package cudawrappers@ (development to cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360)
-- Configuring done
-- Generating done
Consolidate compiler generated dependencies of target test_executable
[ 50%] Building CUDA object CMakeFiles/test_executable.dir/vectorAdd.cu.o
/usr/include/c++/9/bits/stringfwd.h(73): error: allocator is not a template
/usr/include/c++/9/bits/stringfwd.h(79): error: basic_string is not a template
/usr/include/c++/9/bits/stringfwd.h(83): error: basic_string is not a template
/usr/include/c++/9/bits/stringfwd.h(93): error: basic_string is not a template
/usr/include/c++/9/bits/stringfwd.h(96): error: basic_string is not a template
/usr/include/c++/9/cwchar(64): error: the global scope has no "mbstate_t"
/usr/include/c++/9/cwchar(141): error: the global scope has no "wint_t"
/usr/include/c++/9/cwchar(143): error: the global scope has no "btowc"
/usr/include/c++/9/cwchar(144): error: the global scope has no "fgetwc"
/usr/include/c++/9/cwchar(145): error: the global scope has no "fgetws"
/usr/include/c++/9/cwchar(146): error: the global scope has no "fputwc"
/usr/include/c++/9/cwchar(147): error: the global scope has no "fputws"
/usr/include/c++/9/cwchar(148): error: the global scope has no "fwide"
/usr/include/c++/9/cwchar(149): error: the global scope has no "fwprintf"
/usr/include/c++/9/cwchar(150): error: the global scope has no "fwscanf"
/usr/include/c++/9/cwchar(151): error: the global scope has no "getwc"
/usr/include/c++/9/cwchar(152): error: the global scope has no "getwchar"
/usr/include/c++/9/cwchar(153): error: the global scope has no "mbrlen"
/usr/include/c++/9/cwchar(154): error: the global scope has no "mbrtowc"
/usr/include/c++/9/cwchar(155): error: the global scope has no "mbsinit"
/usr/include/c++/9/cwchar(156): error: the global scope has no "mbsrtowcs"
/usr/include/c++/9/cwchar(157): error: the global scope has no "putwc"
/usr/include/c++/9/cwchar(158): error: the global scope has no "putwchar"
/usr/include/c++/9/cwchar(160): error: the global scope has no "swprintf"
/usr/include/c++/9/cwchar(162): error: the global scope has no "swscanf"
/usr/include/c++/9/cwchar(163): error: the global scope has no "ungetwc"
/usr/include/c++/9/cwchar(164): error: the global scope has no "vfwprintf"
/usr/include/c++/9/cwchar(166): error: the global scope has no "vfwscanf"
/usr/include/c++/9/cwchar(169): error: the global scope has no "vswprintf"
/usr/include/c++/9/cwchar(172): error: the global scope has no "vswscanf"
/usr/include/c++/9/cwchar(174): error: the global scope has no "vwprintf"
/usr/include/c++/9/cwchar(176): error: the global scope has no "vwscanf"
/usr/include/c++/9/cwchar(178): error: the global scope has no "wcrtomb"
/usr/include/c++/9/cwchar(179): error: the global scope has no "wcscat"
/usr/include/c++/9/cwchar(180): error: the global scope has no "wcscmp"
/usr/include/c++/9/cwchar(181): error: the global scope has no "wcscoll"
/usr/include/c++/9/cwchar(182): error: the global scope has no "wcscpy"
/usr/include/c++/9/cwchar(183): error: the global scope has no "wcscspn"
/usr/include/c++/9/cwchar(184): error: the global scope has no "wcsftime"
/usr/include/c++/9/cwchar(185): error: the global scope has no "wcslen"
/usr/include/c++/9/cwchar(186): error: the global scope has no "wcsncat"
/usr/include/c++/9/cwchar(187): error: the global scope has no "wcsncmp"
/usr/include/c++/9/cwchar(188): error: the global scope has no "wcsncpy"
/usr/include/c++/9/cwchar(189): error: the global scope has no "wcsrtombs"
/usr/include/c++/9/cwchar(190): error: the global scope has no "wcsspn"
/usr/include/c++/9/cwchar(191): error: the global scope has no "wcstod"
/usr/include/c++/9/cwchar(193): error: the global scope has no "wcstof"
/usr/include/c++/9/cwchar(195): error: the global scope has no "wcstok"
/usr/include/c++/9/cwchar(196): error: the global scope has no "wcstol"
/usr/include/c++/9/cwchar(197): error: the global scope has no "wcstoul"
/usr/include/c++/9/cwchar(198): error: the global scope has no "wcsxfrm"
/usr/include/c++/9/cwchar(199): error: the global scope has no "wctob"
/usr/include/c++/9/cwchar(200): error: the global scope has no "wmemcmp"
/usr/include/c++/9/cwchar(201): error: the global scope has no "wmemcpy"
/usr/include/c++/9/cwchar(202): error: the global scope has no "wmemmove"
/usr/include/c++/9/cwchar(203): error: the global scope has no "wmemset"
/usr/include/c++/9/cwchar(204): error: the global scope has no "wprintf"
/usr/include/c++/9/cwchar(205): error: the global scope has no "wscanf"
/usr/include/c++/9/cwchar(206): error: the global scope has no "wcschr"
/usr/include/c++/9/cwchar(207): error: the global scope has no "wcspbrk"
/usr/include/c++/9/cwchar(208): error: the global scope has no "wcsrchr"
/usr/include/c++/9/cwchar(209): error: the global scope has no "wcsstr"
/usr/include/c++/9/cwchar(210): error: the global scope has no "wmemchr"
/usr/include/c++/9/cwchar(251): error: the global scope has no "wcstold"
/usr/include/c++/9/cwchar(260): error: the global scope has no "wcstoll"
/usr/include/c++/9/cwchar(261): error: the global scope has no "wcstoull"
/usr/include/c++/9/cwchar(267): error: namespace "__gnu_cxx" has no member "wcstold"
/usr/include/c++/9/cwchar(268): error: namespace "__gnu_cxx" has no member "wcstoll"
/usr/include/c++/9/cwchar(269): error: namespace "__gnu_cxx" has no member "wcstoull"
/usr/include/c++/9/cwchar(283): error: namespace "cuda::std" has no member "wcstof"
/usr/include/c++/9/cwchar(286): error: namespace "cuda::std" has no member "vfwscanf"
/usr/include/c++/9/cwchar(289): error: namespace "cuda::std" has no member "vswscanf"
/usr/include/c++/9/cwchar(292): error: namespace "cuda::std" has no member "vwscanf"
/usr/include/c++/9/cwchar(296): error: namespace "cuda::std" has no member "wcstold"
/usr/include/c++/9/cwchar(297): error: namespace "cuda::std" has no member "wcstoll"
/usr/include/c++/9/cwchar(298): error: namespace "cuda::std" has no member "wcstoull"
/usr/include/c++/9/bits/char_traits.h(67): error: namespace "cuda::std" has no member "mbstate_t"
/usr/include/c++/9/bits/char_traits.h(108): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(110): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(114): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(117): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(120): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(123): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(149): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(160): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(173): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(184): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(195): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/bits/char_traits.h(205): error: namespace "cuda::std" has no member "size_t"
/usr/include/c++/9/cstdint(52): error: the global scope has no "int_fast8_t"
/usr/include/c++/9/cstdint(53): error: the global scope has no "int_fast16_t"
/usr/include/c++/9/cstdint(54): error: the global scope has no "int_fast32_t"
/usr/include/c++/9/cstdint(55): error: the global scope has no "int_fast64_t"
/usr/include/c++/9/cstdint(57): error: the global scope has no "int_least8_t"
/usr/include/c++/9/cstdint(58): error: the global scope has no "int_least16_t"
/usr/include/c++/9/cstdint(59): error: the global scope has no "int_least32_t"
/usr/include/c++/9/cstdint(60): error: the global scope has no "int_least64_t"
/usr/include/c++/9/cstdint(62): error: the global scope has no "intmax_t"
/usr/include/c++/9/cstdint(63): error: the global scope has no "intptr_t"
/usr/include/c++/9/cstdint(65): error: the global scope has no "uint8_t"
Error limit reached.
|
Please do a pull --rebase of development, and try again. I think I've got the remaining part of the problem. |
[ 50%] Building CUDA object CMakeFiles/test_executable.dir/vectorAdd.cu.o
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(364): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(377): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(408): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(420): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(528): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::block_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(529): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(540): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::block_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(541): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::block_dimensions_t>" has no member "reset"
/mnt/ccnas2/tdp/mb5119/cpm/cudawrappers/340bacd6661789acf30ac77677811050e1cc9360/src/cuda/api/launch_config_builder.hpp(542): error: class "std::experimental::fundamentals_v1::optional<cuda::grid::overall_dimensions_t>" has no member "reset" |
grrr... ok, but it's an improvement. Maybe it'll like assigning a nullopt better. |
Try again? I pushed another change to development. And - thank you so much for your patience. It's difficult to debug when you can't quite reproduce the issue as someone else experiences it. |
Is working now! |
@DiamonDinoia : Great. I will soon make a beta of another release (which will be v0.5.6, not v0.6) |
If you could address #418 before releasing the beta, I would be grateful |
Hi,
I am using gcc-11 and I am unable to compile with the following error:
The text was updated successfully, but these errors were encountered: