diff --git a/README.md b/README.md index abd312906d8..7cf8413f921 100644 --- a/README.md +++ b/README.md @@ -30,32 +30,30 @@ cd misc/ ./apply_patch.py ``` -2. Generate XML representations of repos +2. Install Jupyter -Download and install srcML: . +Reference . -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 . +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. diff --git a/setup-linux-ubuntu.sh b/setup-linux-ubuntu.sh index 01c09c5715b..0b4aeba5dd5 100755 --- a/setup-linux-ubuntu.sh +++ b/setup-linux-ubuntu.sh @@ -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"