Is there anyone who knows that…
When I attach below code in python file(in main.py),
import os
os.environment["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environment["CUDA_VISIBLE_DEVICES"] = "0"

it does’t work the same as CUDA_VISIBLE_DEVICES=0 python main.py do.
The former one doesn’t specify(divide) GPU but, the latter one works well.
It seems strange to me.
Thanks ahead.