# Cuda OpenGL interoperability error 999

**URL:** <https://forums.developer.nvidia.com/t/cuda-opengl-interoperability-error-999/231118>\
**Category:** CUDA Setup and Installation\
**Tags:** opengl, linux, cuda\
**Created:** [October 18, 2022, 11:43am UTC](https://forums.developer.nvidia.com/t/cuda-opengl-interoperability-error-999/231118 "2022-10-18T11:43:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael.steiner](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rafael.steiner](https://forums.developer.nvidia.com/u/rafael.steiner)\
**Post date:** [October 18, 2022, 11:43am UTC](https://forums.developer.nvidia.com/t/cuda-opengl-interoperability-error-999/231118/1 "2022-10-18T11:43:32Z")

</div>

When trying to run the oceanFFT example I get the following error

```auto
./oceanFFT 
NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

[CUDA FFT Ocean Simulation]

Left mouse button - rotate
Middle mouse button - pan
Right mouse button - zoom
'w' key - toggle wireframe
[CUDA FFT Ocean Simulation] 
GPU Device 0: "Ampere" with compute capability 8.6

CUDA error at oceanFFT.cpp:304 code=999(cudaErrorUnknown) "cudaGraphicsGLRegisterBuffer(&cuda_heightVB_resource, heightVertexBuffer, cudaGraphicsMapFlagsWriteDiscard)" 

```

What could be the reasons for this?

Thanks!
