ROCm / ROCm/hipCollections

[Documentation]: error: variable has incomplete type 'void'

Open
#11 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Description of errors

I try to port a cuda project which use cuCollections to rocm/hip. So I include hipCollections as a third_part one. But when I try to build and compile it, it throws an error: "hipCollections/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh:1192:10: error: variable has incomplete type 'void'"

/home/loong/Codes/pyg-lib-rocm/pyg_lib/csrc/classes/rocm/hash_map.hip:125:19: note: in instantiation of function template specialization 'std::make_unique<pyg::classes::(anonymous namespace)::CUDAHashMapImpl<short>, const at::Tensor &, double &>' requested here
  125 |       map_ = std::make_unique<CUDAHashMapImpl<scalar_t>>(key, load_factor);
      |                   ^
In file included from /home/loong/Codes/pyg-lib-rocm/pyg_lib/csrc/classes/rocm/hash_map.hip:8:
In file included from /home/loong/Codes/pyg-lib-rocm/third_party/hipCollections/include/cuco/static_map.cuh:44:
In file included from /home/loong/Codes/pyg-lib-rocm/third_party/hipCollections/include/cuco/static_map_ref.cuh:36:
/home/loong/Codes/pyg-lib-rocm/third_party/hipCollections/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh:1192:10: error: variable has incomplete type 'void'
 1192 |     auto old_key =
      |          ^

Ubuntu 24.04 LTS
Radeon RX 7900 XTX
ROCm 6.4.3

Attach any links, screenshots, or additional evidence you think will be helpful.

No response

Contributor guide

No contributing guide indexed for this repository

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 ROCm 6.4.3 build on Ubuntu 24.04 with the reported Radeon RX 7900 XTX, then inspect hipCollections/include/cuco/detail/open_addressing/open_addressing_ref_impl.cuh at line 1192 and the include path through static_map.cuh and static_map_ref.cuh. Compare the instantiation from hash_map.hip at line 125 and confirm the build no longer reports the incomplete void type.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.