Jetson Nano with J101 Carrier Board fails to run pre-installed VPI Demos and CUDA samples

To test my newly arrived Jetson Nano with J101 carrier board, I compiled the pre-installed CUDA samples, which worked perfectly.
But running some of the samples fails. Seems like OpenGL related stuff does not work.
For example “deviceQuery” runs without error, but “Mandelbrot” does not run and shows the error message:

code=219(cudaErrorInvalidGraphicsContext) “cudaGraphicsGLRegisterBuffer(&cuda_pbo_resource, gl_PBO, cudaGraphicsMapFlagsWriteDiscard)”

Also running the pre-installed VPI Demos is not possible.
Starting “VPI Remap Demo v1.2” shows the error:

ERROR: cudaGraphicsGLRegisterBuffer: cudaErrorInvalidGraphicsContext

Any help in figuring out what’s wrong is appreciated.