parallel101 / parallel101/course
请教老师第8课cuda并行部分10_stencil部分bug
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.2k
- Forks
- 556
- PR merge metrics
- No merged PRs in 30d
Description
环境:ubuntu22.04
gcc:9
运行时出现/usr/include/c++/9/bits/stl_vector.h(130): error: no instance of constructor "CudaAllocator::CudaAllocator [with T=float]" matches the argument list
detected during instantiation of "std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp=float, _Alloc=CudaAllocator]"
(337): here
这个问题
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the lesson 8, section 10 stencil example on Ubuntu 22.04 with GCC 9 and inspect the CudaAllocator construction error reported in stl_vector.h. Done means the example builds and runs without this constructor error, with the cause and required change documented in the issue.
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
- 20/100