DGX GPU accessing problem

I am working on DGX system having 4 GPU cores with docker. I was trying to access the GPU 0 to train my tensorflow code. I used
import os

I could not able to access the gpu from DGX system. Anyone please help me to solve this issue.

Hello, this forum is dedicated to discussions related to using the cuda-memcheck tools.
Questions related to CUDA can be raised at CUDA - NVIDIA Developer Forums