Skip to content
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

Fix invalid use of incomplete type error by including <array> #165

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

JacobLevinson
Copy link
Contributor

Fixes the incomplete type error highlighted in @danikhan632 recent pr by instead putting "#include " in runtime/common/common.h so that it is automatically included in the others.

This fixed the issue for me:
In file included from /home/jacob/vortex/runtime/rtlsim/vortex.cpp:14:
/home/jacob/vortex/runtime/rtlsim/vortex.cpp: In member function ‘int vx_device::mpm_query(uint32_t, uint32_t, uint64_t*)’:
/home/jacob/vortex/runtime/rtlsim/vortex.cpp:235:51: error: invalid use of incomplete type ‘std::unordered_map<unsigned int, std::array<long unsigned int, 32> >::mapped_type’ {aka ‘struct std::array<long unsigned int, 32>’}
235 | CHECK_ERR(this->download(mpm_cache_[core_id].data(), mpm_mem_addr, 32 * sizeof(uint64_t)), {

@tinebp tinebp merged commit 3d51b8b into vortexgpgpu:master Aug 3, 2024
16 checks passed
@JacobLevinson JacobLevinson deleted the fix-incomplete-type-error branch August 3, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants