Commit 4fb9b76f authored by LDOUBLEV's avatar LDOUBLEV
Browse files

fix get gpu id

parent a09bcf5c
......@@ -311,10 +311,6 @@ def create_predictor(args, mode, logger):
def get_infer_gpuid():
#cmd = "nvidia-smi"
#res = os.popen(cmd).readlines()
#if len(res) == 0:
# return None
cmd = "env | grep CUDA_VISIBLE_DEVICES"
env_cuda = os.popen(cmd).readlines()
if len(env_cuda) == 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment