[runtime error] Error in cugl_interop.cpp:48: cudaMemcpy

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

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

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

  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.

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.