Skip to content

Commit

Permalink
Update README and setup script
Browse files Browse the repository at this point in the history
Introduce TensorFlow in README.
No need to preprocess a repo with SrcXML.
Set locale in the setup script.
  • Loading branch information
basicthinker committed Aug 9, 2017
1 parent f287e37 commit c6c5f5a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,30 @@ cd misc/
./apply_patch.py
```

2. Generate XML representations of repos
2. Install Jupyter

Download and install srcML: <http://www.srcml.org/>.
Reference <http://jupyter.org/install.html>.

Download target repos into `./repos` (the assumed default path).
E.g.:
E.g., Ubuntu:
```
git clone https://github.com/torvalds/linux.git ./repos/linux
git -C ./repos/linux checkout v4.10
sudo -H pip3 install --upgrade pip
sudo -H pip3 install jupyter
```

Run graphs/srcml. E.g.:
```
./graphs/srcml.py ./repos/linux ./repos/linux-4.10-xml/
```
3. Install TensorFlow

3. Install Jupyter
Follow this tutorial: https://www.tensorflow.org/install/install_sources.

Reference <http://jupyter.org/install.html>.
An example build:

E.g., Ubuntu:
```
sudo -H pip3 install --upgrade pip
sudo -H pip3 install jupyter
bazel build --config=opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
```

When running TensorFlow, get out of the tensorflow source dir. Otherwise,
python would prompt an error message "No module named
pywrap_tensorflow_internal".

4. Run a notebook

All notebooks should be run in the root dir of this project.
Expand Down
2 changes: 2 additions & 0 deletions setup-linux-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

sudo update-locale LANGUAGE="en_US.UTF-8"
sudo update-locale LC_ALL="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

Expand Down

0 comments on commit c6c5f5a

Please sign in to comment.