summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@mit.edu>2017-06-14 06:04:45 -0400
committerAdam Paszke <adam.paszke@gmail.com>2017-06-14 12:04:45 +0200
commit9fd354e643b20a15e26e8fe5f0543d35ac0f91f8 (patch)
treeb4127398d69f2cebda4fb0524287531d18c7e6ba /CONTRIBUTING.md
parentc8e9bc493bf653c2744d944c60dc830c7ac2d0f1 (diff)
downloadpytorch-9fd354e643b20a15e26e8fe5f0543d35ac0f91f8.tar.gz
pytorch-9fd354e643b20a15e26e8fe5f0543d35ac0f91f8.tar.bz2
pytorch-9fd354e643b20a15e26e8fe5f0543d35ac0f91f8.zip
More accurate build instructions based on @apaszke's comments. (#1800)
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f3da120acb..6538064052 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -106,10 +106,11 @@ not very optimized for incremental rebuilds, this will actually be very slow.
Far better is to only request rebuilds of the parts of the project you are
working on:
-- Working on `torch/csrc`? Run `python setup.py build_ext` to rebuild.
+- Working on `torch/csrc`? Run `python setup.py develop` to rebuild
+ (NB: no `build` here!)
- Working on `torch/lib/TH`, did not make any cmake changes, and just want to
- see if it compiles? Run `(cd torch/lib/build/TH && make install -j40)`. This
+ see if it compiles? Run `(cd torch/lib/build/TH && make install -j$(getconf _NPROCESSORS_ONLN))`. This
applies for any other subdirectory of `torch/lib`. **Warning: Changes you
make here will not be visible from Python.** See below.