remove docs (#5287)

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
This commit is contained in:
Nicki Skafte 2020-12-28 20:32:53 +01:00 committed by GitHub
parent 9ebbfece5e
commit eb1d61caaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -239,23 +239,6 @@ Note in particular the difference between `gpus=0`, `gpus=[0]` and `gpus="0"`.
to be in "exclusive mode", such that only one process at a time can access them.
For more details see the :ref:`Trainer guide <trainer>`.
Remove CUDA flags
^^^^^^^^^^^^^^^^^
CUDA flags make certain GPUs visible to your script.
Lightning sets these for you automatically, there's NO NEED to do this yourself.
.. testcode::
# lightning will set according to what you give the trainer
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
However, when using a cluster, Lightning will NOT set these flags (and you should not either).
SLURM will set these for you.
For more details see the :ref:`SLURM cluster guide <slurm>`.
----------
Distributed modes