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
When executing the step "train psmnet with 4 TITAN X GPUs" there's an annoying warning caused by the necessity of using Python2.7 and pytorch, in full:
torch/nn/parallel/data_parallel.py:25: UserWarning:
There is an imbalance between your GPUs. You may want to exclude GPU 1 which
has less than 75% of the memory or cores of GPU 0. You can do so by setting
the device_ids argument to DataParallel, or by setting the CUDA_VISIBLE_DEVICES
environment variable.
I suspect it could prevent the usage of multi-gpu. Luckily, there's an easy fix for it. Go to the file in question causing the warning (torch/nn/parallel/data_parallel.py), and at the top of the file, add the following line:
from __future__ import division
Try again. In case you run into the following issue:
ImportError: No module named future
Just install future, e.g. using one of the following commands:
conda install future
pip3 install future
The text was updated successfully, but these errors were encountered:
kotchin
changed the title
warnings.warn(imbalance_warn.format(device_ids[min_pos], device_ids[max_pos]))
There is an imbalance between your GPUs
Jul 4, 2019
When executing the step "train psmnet with 4 TITAN X GPUs" there's an annoying warning caused by the necessity of using Python2.7 and pytorch, in full:
I suspect it could prevent the usage of multi-gpu. Luckily, there's an easy fix for it. Go to the file in question causing the warning (torch/nn/parallel/data_parallel.py), and at the top of the file, add the following line:
from __future__ import division
Try again. In case you run into the following issue:
Just install future, e.g. using one of the following commands:
The text was updated successfully, but these errors were encountered: