CUDA Error: code=304 cudaGraphicsGLRegisterBuffer(. . .) fails

I cloned samples from GitHub - NVIDIA/cuda-samples: Samples for CUDA Developers which demonstrates features in CUDA Toolkit and build and executed many samples. Those samples that do not use the diplay seem to use Tesla T4 correctly as a com putng. However, those that must conect to the display adapter Intel HD Graphics 530 fails as

CUDA error at C:\Users\Toshimi MIoura\source\repos\GitHub Samples\Samples\5_Domain_Specific\bicubicTexture\bicubicTexture.cpp:463
code=304(cudaErrorOperatingSystem) “cudaGraphicsGLRegisterBuffer( &cuda_pbo_resource, pbo, cudaGraphicsMapFlagsWriteDiscard)”

C:\Users\Toshimi MIoura\source\repos\GitHub Samples\bin\win64\Debug\bicubicTexture.exe (process 6920) exited with code 1.

I will appreciate any useful information.

I receive an error message
“Sorry, you can’t post the word ‘pu tin’; it’s not allowed”.