neka-nat / cupoch

Robotics with GPU computing
MIT License
898 stars 108 forks source link

Error: OS call failed or operation not supported on this OS phong_shader.cu:330 #118

Closed ambitious-octopus closed 11 months ago

ambitious-octopus commented 1 year ago

i am trying to use this script (https://github.com/neka-nat/cupoch/blob/master/examples/python/robotics/collision_voxelgrid.py) on pop-os 22.04 unfortunately i get this error.

collision::CollisionResult with 120 collisions.
Error: OS call failed or operation not supported on this OS phong_shader.cu:330
>> uname -a
Linux pop-os 6.2.6-76060206-generic x86_64 GNU/Linux
neka-nat commented 11 months ago

Thanks for the report! You can try the following https://forums.developer.nvidia.com/t/cudaerrorunknown-cudagraphicsglregisterbuffer/64406/10

cd examples/python/basic
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia python visualization.py