[runtime error] Error in cugl_interop.cpp:48: cudaMemcpy
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- computer-graphics
Research direction
Run ./cugl_interop in the repository and inspect cugl_interop.cpp:48, where cudaMemcpy(opengl_ptr, d_ptr, size, cudaMemcpyDeviceToDevice) returns invalid argument. Check the pointer and size assumptions around that call and the ArrayFire/OpenGL interoperability setup. Done means the sample runs without this CUDA error on the reported environment.
Written by the indexing model from the issue text.
Description
Any pointer on how to fix it?
joe@joe-OMEN-15:~/gitee/arrayfire_opengl_interop$ ./cugl_interop
ArrayFire v3.8.2 (CUDA, 64-bit Linux, build 5752f2dc)
Platform: CUDA Runtime 11.6, Driver: 515.48.07
[0] NVIDIA GeForce GTX 1060, 6070 MB, CUDA Compute 6.1
file shader.vert loaded
file shader.frag loaded
CUDA Error in cugl_interop.cpp:48: cudaMemcpy(opengl_ptr, d_ptr, size, cudaMemcpyDeviceToDevice)
Returned: invalid argument.
- Dominant language
- C++
- Stars
- 12
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
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.
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100