arrayfire / arrayfire/arrayfire_opengl_interop

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

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
12
Forks
6
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.