Add Development section on README.md
@@ -96,6 +96,51 @@ You can login to the environment with bash, and run the Python interpreter.
$ nvidia-docker run -it cupy/cupy /bin/bash
```
+## Development
+
+Build CuPy from the source code as:
+
+```
+python setup.py develop
+```
+
+Run all tests as:
+
+```
+python -m unittest discover test "test_*.py"
+```
+
+Run a specific test file, or a specific test method respectively:
+
+```
+python -m unittest tests/cupy_tests/cuda_tests/test_memory.py
+python -m unittest tests.cupy_tests.cuda_tests.test_memory.TestMemoryPointer.test_int
+```
+
+### Rebuild pxd files
+
+Currently, we have problems that cython does not rebuild pxd files well with `python setup.py develop`.
+
+Clean `*.cpp` and `*.so` files once with:
+
+```
+git clean -fdx
+```
+
+Then, run `python setup.py develop` again.
+
+### ccache
+
+We do not officially support, but some of the developer members use [ccache](https://ccache.samba.org/) to boost compilation time.
+
+For example, on Ubuntu, set up as followings:
+
+```
+sudo apt-get install ccache
+export PATH=/usr/lib/ccache:$PATH
+```
+
+See [ccache](https://ccache.samba.org/) for details.
## More information
