NVIDIA / NVIDIA/cuvs

Deprecated warning cccl: Specify an explicit alignment argument

Open
#2,127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

(rapids) coder ➜ ~ $ build-cuvs
Building cuvs C++
Building libcuvs
[2226/2362] Building CUDA object c/tests/CMakeFiles/INTEROP_TEST.dir/core/interop.cu.o
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_container_policy.hpp: In instantiation of 'raft::host_container<T, MR>::~host_container() [with T = float; MR = cuda::mr::__4::__version_bump_ver4_::synchronous_resource_ref<cuda::mr::__4::host_accessible>]':
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/mdarray.hpp:182:1:   required from 'auto raft::make_host_mdarray(const resources&, cuda::std::__4::extents<IndexType, Exts ...>) [with ElementType = float; IndexType = int; LayoutPolicy = cuda::std::__4::layout_right; long unsigned int ...Extents = {18446744073709551615}]'
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_mdarray.hpp:272:65:   required from 'auto raft::make_host_vector(const resources&, IndexType) [with ElementType = float; IndexType = int; LayoutPolicy = cuda::std::__4::layout_right]'
/home/coder/cuvs/c/tests/core/interop.cu:23:44:   required from here
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_container_policy.hpp:63:73: warning: 'void cuda::mr::__4::__ibasic_resource< <template-parameter-1-1> >::deallocate_sync(void*, size_t) [with <template-parameter-1-1> = {cuda::__4::__ireference<cuda::__4::__iset_<cuda::__4::__iequality_comparable<>, cuda::__4::__icopyable<>, cuda::mr::__4::__with_property<cuda::mr::__4::host_accessible>::__iproperty<>, cuda::mr::__4::__with_property<cuda::mr::__4::dynamic_accessibility_property>::__iproperty<>, cuda::mr::__4::__ibasic_resource<> > >}; size_t = long unsigned int]' is deprecated: Specify an explicit alignment argument. The default alignment will be removed in a future release. [-Wdeprecated-declarations]
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/cccl-src/lib/cmake/libcudacxx/../../../libcudacxx/include/cuda/__memory_resource/any_resource.h:149:1: note: declared here
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_container_policy.hpp: In instantiation of 'raft::host_container<T, MR>::host_container(size_type, MR) [with T = float; MR = cuda::mr::__4::__version_bump_ver4_::synchronous_resource_ref<cuda::mr::__4::host_accessible>; size_type = long unsigned int]':
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_container_policy.hpp:134:8:   required from 'raft::host_container_policy<ElementType>::container_type raft::host_container_policy<ElementType>::create(const raft::resources&, size_t) [with ElementType = float; container_type = raft::host_container<float, cuda::mr::__4::__version_bump_ver4_::synchronous_resource_ref<cuda::mr::__4::host_accessible> >; size_t = long unsigned int]'
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/mdarray.hpp:196:135:   required from 'constexpr raft::mdarray<ElementType, Extents, LayoutPolicy, ContainerPolicy>::mdarray(const raft::resources&, const mapping_type&, container_policy_type&) [with ElementType = float; Extents = cuda::std::__4::extents<int, 18446744073709551615>; LayoutPolicy = cuda::std::__4::layout_right; ContainerPolicy = raft::host_device_accessor<raft::host_container_policy<float>, raft::memory_type::host>; mapping_type = cuda::std::__4::layout_right::mapping<cuda::std::__4::extents<int, 18446744073709551615> >; container_policy_type = raft::host_device_accessor<raft::host_container_policy<float>, raft::memory_type::host>]'
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_mdarray.hpp:85:37:   required from 'auto raft::make_host_mdarray(const resources&, cuda::std::__4::extents<IndexType, Exts ...>) [with ElementType = float; IndexType = int; LayoutPolicy = cuda::std::__4::layout_right; long unsigned int ...Extents = {18446744073709551615}]'
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_mdarray.hpp:272:65:   required from 'auto raft::make_host_vector(const resources&, IndexType) [with ElementType = float; IndexType = int; LayoutPolicy = cuda::std::__4::layout_right]'
/home/coder/cuvs/c/tests/core/interop.cu:23:44:   required from here
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/raft-src/cpp/include/raft/core/host_container_policy.hpp:54:135: warning: 'void* cuda::mr::__4::__ibasic_resource< <template-parameter-1-1> >::allocate_sync(size_t) [with <template-parameter-1-1> = {cuda::__4::__ireference<cuda::__4::__iset_<cuda::__4::__iequality_comparable<>, cuda::__4::__icopyable<>, cuda::mr::__4::__with_property<cuda::mr::__4::host_accessible>::__iproperty<>, cuda::mr::__4::__with_property<cuda::mr::__4::dynamic_accessibility_property>::__iproperty<>, cuda::mr::__4::__ibasic_resource<> > >}; size_t = long unsigned int]' is deprecated: Specify an explicit alignment argument. The default alignment will be removed in a future release. [-Wdeprecated-declarations]
/home/coder/cuvs/cpp/build/conda/cuda-12.9/release/_deps/cccl-src/lib/cmake/libcudacxx/../../../libcudacxx/include/cuda/__memory_resource/any_resource.h:137:1: note: declared here

Reference logs:
cuda 12.9, arm64
https://github.com/rapidsai/cuvs/actions/runs/26426615482/job/77791593777?pr=2125

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the build-cuvs warning with the CUDA 12.9 arm64 configuration and trace it from c/tests/core/interop.cu into raft/core/host_container_policy.hpp and the CCCL any_resource.h declaration. Done means the build no longer emits the deprecated allocate_sync or deallocate_sync warnings, with the interop test still building successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.