You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using GPU to run this program, but the GPU usage is very low. How can I increase the GPU usage to make the program execute faster? What settings in the code need to be changed to make the best possible use of the GPU? 谢谢您
The text was updated successfully, but these errors were encountered:
The former setting intialize gpu in main.py and set the device flag in "config.py->GlobalConfig".
The latter setting disables gpu memory sharing between HMP experiments, which slightly increases speed and safety.
Then, in wherever you'd like to use gpu:
from config import GlobalConfig as cfg
...
model.to(cfg.device)
tensor.to(cfg.device)
I am using GPU to run this program, but the GPU usage is very low. How can I increase the GPU usage to make the program execute faster? What settings in the code need to be changed to make the best possible use of the GPU? 谢谢您
The text was updated successfully, but these errors were encountered: