-
Notifications
You must be signed in to change notification settings - Fork 166
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
Build warnings in <cuda/std/barrier>
#998
Comments
Any updates on this issue? I can put up a PR removing the argument |
@davedsth can you look at this? |
Unsure if we have internal changes pending that might fix this. David might know more. |
Internal changes are coming but we haven't addressed the completion arguments |
Updates: unused parameters are growing /home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In function ‘void cuda::__4::init(cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>*, ptrdiff_t, cuda::std::__4::__empty_completion)’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:143:155: warning: unused parameter ‘__completion’ [-Wunused-parameter]
143 | friend void init(barrier * __b, std::ptrdiff_t __expected, std::__empty_completion __completion = std::__empty_completion()) {
| ~~~~~~~~~~~ ^
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In member function ‘bool cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::__test_wait_sm_80(cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::arrival_token) const’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:247:47: warning: unused parameter ‘__token’ [-Wunused-parameter]
247 | inline bool __test_wait_sm_80(arrival_token __token) const {
| ~~~~~~~~~~~~~~^~~~~~~
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In member function ‘bool cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::__test_wait_parity_sm_80(bool) const’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:357:36: warning: unused parameter ‘__phase_parity’ [-Wunused-parameter]
357 | inline bool __test_wait_parity_sm_80(bool __phase_parity) const { It was only |
@PointKernel Which version of libcu++ is this? Can you provide info on the compiler, flags, and how barrier is instatiated? |
libcu++ version: compiler flag and build log: cd /home/yunsongw/Work/cuCollections/build/examples && /usr/local/cuda/bin/nvcc -forward-unknown-to-host-compiler -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -I/home/yunsongw/Work/cuCollections/examples -I/home/yunsongw/Work/cuCollections/include -I/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include -I/home/yunsongw/Work/cuCollections/build/_deps/thrust-src -I/home/yunsongw/Work/cuCollections/build/_deps/thrust-src/dependencies/cub -isystem=/usr/local/cuda/include -O3 -DNDEBUG --generate-code=arch=compute_75,code=[compute_75,sm_75] --compiler-options=-Wall --compiler-options=-Wextra --expt-extended-lambda --expt-relaxed-constexpr -Xcompiler -Wno-subobject-linkage -std=c++17 -MD -MT examples/CMakeFiles/STATIC_SET_HOST_BULK_EXAMPLE.dir/static_set/host_bulk_example.cu.o -MF CMakeFiles/STATIC_SET_HOST_BULK_EXAMPLE.dir/static_set/host_bulk_example.cu.o.d -x cu -c /home/yunsongw/Work/cuCollections/examples/static_set/host_bulk_example.cu -o CMakeFiles/STATIC_SET_HOST_BULK_EXAMPLE.dir/static_set/host_bulk_example.cu.o
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In function ‘void cuda::__4::init(cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>*, ptrdiff_t, cuda::std::__4::__empty_completion)’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:143:155: warning: unused parameter ‘__completion’ [-Wunused-parameter]
143 | friend void init(barrier * __b, std::ptrdiff_t __expected, std::__empty_completion __completion = std::__empty_completion()) {
| ~~~~~~~~~~~ ^
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In member function ‘bool cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::__test_wait_sm_80(cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::arrival_token) const’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:247:47: warning: unused parameter ‘__token’ [-Wunused-parameter]
247 | inline bool __test_wait_sm_80(arrival_token __token) const {
| ~~~~~~~~~~~~~~^~~~~~~
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier: In member function ‘bool cuda::__4::barrier<cuda::std::__4::__detail::thread_scope_block>::__test_wait_parity_sm_80(bool) const’:
/home/yunsongw/Work/cuCollections/build/_deps/libcudacxx-src/lib/cmake/libcudacxx/../../../include/cuda/std/barrier:357:36: warning: unused parameter ‘__phase_parity’ [-Wunused-parameter]
357 | inline bool __test_wait_parity_sm_80(bool __phase_parity) const {
| ~~~~~^~~~~~~~~~~~~~
The warnings come out even we just include the header but not use it, here is the godbolt repro: https://godbolt.org/z/dzq6orsW3 |
Perfect! Thank you for the repro! |
@PointKernel could you please verify that the issue is gone with ToT? |
Somehow this issue came out again with recent CTK, e.g. https://godbolt.org/z/fGEocq58T. |
That looks like a old library version. There is no line 143 in <cuda/std/barrier> @wmaxey those changes should be in 12.1 shouldnt they? |
To provide more information on this issue. If you check our CI run details,
And we are fetching the same version of libcudacxx in both cases: -- CPM: adding package [email protected] (branch/1.9.1)
-- Found libcudacxx: /home/coder/cuCollections/build/local/_deps/libcudacxx-src/lib/cmake/libcudacxx/libcudacxx-config.cmake (found version "1.9.1.0") |
Having build warnings when
CMAKE_CUDA_ARCHITECTURES=75
:Worthing reporting to libcudacxx.
Otherwise, LGTM.
Originally posted by @PointKernel in NVIDIA/cuCollections#201 (review)
The text was updated successfully, but these errors were encountered: