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

Tesla T4 seems to be working correctly if display is not used.
The current display adapter is Intel HD Graphics.
If Nvidia GeForce GT720 is used, can this problem be solved?

I will appreciate any helpful information.