Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Update Makefile #151

Merged
merged 27 commits into from
Oct 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ easy-install: install
easy-install: update-bash-config

easy-install:
#$(_INFO) Complete! #(_END)
#$(_INFO) Complete! $(_END)


# Target for setup.py
Expand Down Expand Up @@ -203,21 +203,22 @@ install-dependencies: $(NODE_TARBALL) $(YARN_TARBALL) $(SERVE_TARBALL)
.PHONY: install-python-modules
install-python-modules:
#$(_INFO) Installing Python SDK $(_END)
cd src/sdk/pynni && python3 setup.py install $(PIP_MODE)
cd src/sdk/pynni && $(PIP_INSTALL) $(PIP_MODE) .
Crysple marked this conversation as resolved.
Show resolved Hide resolved

#$(_INFO) Installing nnictl $(_END)
cd tools && python3 setup.py install $(PIP_MODE)
cd tools && $(PIP_INSTALL) $(PIP_MODE) .

.PHONY: install-node-modules
install-node-modules:
mkdir -p $(INSTALL_PREFIX)/nni
rm -rf ${PWD}/src/nni_manager/dist/node_modules

#$(_INFO) Installing NNI Manager $(_END)
cp -rT src/nni_manager/dist $(INSTALL_PREFIX)/nni/nni_manager
cp -rT src/nni_manager/node_modules $(INSTALL_PREFIX)/nni/nni_manager/node_modules
cp -rT ${PWD}/src/nni_manager/dist $(INSTALL_PREFIX)/nni/nni_manager
cp -rT ${PWD}/src/nni_manager/node_modules $(INSTALL_PREFIX)/nni/nni_manager/node_modules

#$(_INFO) Installing Web UI $(_END)
cp -rT src/webui/build $(INSTALL_PREFIX)/nni/webui
cp -rT ${PWD}/src/webui/build $(INSTALL_PREFIX)/nni/webui


.PHONY: install-dev-modules
Expand All @@ -231,11 +232,11 @@ install-dev-modules:
mkdir -p $(INSTALL_PREFIX)/nni

#$(_INFO) Installing NNI Manager $(_END)
ln -sf $(PWD)/src/nni_manager/dist $(INSTALL_PREFIX)/nni/nni_manager
ln -sf $(PWD)/src/nni_manager/node_modules $(INSTALL_PREFIX)/nni/nni_manager/node_modules
ln -sf ${PWD}/src/nni_manager/dist $(INSTALL_PREFIX)/nni/nni_manager
ln -sf ${PWD}/src/nni_manager/node_modules $(INSTALL_PREFIX)/nni/nni_manager/node_modules

#$(_INFO) Installing Web UI $(_END)
ln -sf $(PWD)/src/webui/build $(INSTALL_PREFIX)/nni/webui
ln -sf ${PWD}/src/webui/build $(INSTALL_PREFIX)/nni/webui


.PHONY: install-scripts
Expand Down
2 changes: 1 addition & 1 deletion README.Makefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The targets will be detailed later.

## Dependencies

NNI requires at least Node.js, Yarn, and setuptools to build, while PIP and TypeScript are also recommended.
NNI requires at least Node.js, Yarn, and PIP to build, while TypeScript is also recommended.

NNI requires Node.js, serve, and all dependency libraries to run.
Required Node.js libraries (including TypeScript) can be installed by Yarn, and required Python libraries can be installed by setuptools or PIP.
Expand Down
6 changes: 1 addition & 5 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash
make install-dependencies
make build
make dev-install
make install-examples
make update-bash-config
make easy-install
source ~/.bashrc
2 changes: 1 addition & 1 deletion src/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"antd": "^3.9.3",
"antd": "^3.8.1",
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
"echarts": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/webui/src/components/SlideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SlideBar extends React.Component<{}, {}> {
<ul className="nav">
<li>
<IndexLink to={'/oview'} activeClassName="high">
<Icon className="icon" type="experiment" theme="outlined" />Overview
<Icon className="icon" type="rocket" />Overview
<Icon className="floicon" type="right" />
</IndexLink>
</li>
Expand Down Expand Up @@ -41,7 +41,7 @@ class SlideBar extends React.Component<{}, {}> {
</li>
<li>
<a href="https://github.com/Microsoft/nni/issues" target="_blank">
<Icon className="icon" type="smile" theme="outlined" />Feedback
<Icon className="icon" type="smile" />Feedback
</a>
</li>
</ul>
Expand Down
32 changes: 17 additions & 15 deletions tools/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
##NNI CTL
Crysple marked this conversation as resolved.
Show resolved Hide resolved
## NNI CTL
The NNI CTL module is used to control Neural Network Intelligence, including start a new experiment, stop an experiment and update an experiment etc.
##Environment
## Environment

```
Ubuntu 16.04 or other Linux OS
python >= 3.5
```

##Installation
1.Enter tools directory

2.Use pip3 to install packages
## Installation

2.1 Install for current user:
1. Enter tools directory

2. Use pip3 to install packages
* Install for current user:

pip3 install --user -e .
pip3 install --user -e .

2.2 Install for all users:
* Install for all users:

pip3 install -e .
pip3 install -e .


3.Change the mode of nnictl file
1. Change the mode of nnictl file

chmod +x ./nnictl

4.Add nnictl to your PATH system environment variable.
2. Add nnictl to your PATH system environment variable.

* You could use `export` command to set PATH variable temporary.
* You could use `export` command to set PATH variable temporary.

export PATH={your nnictl path}:$PATH

* Or you could edit your `/etc/profile` file.
* Or you could edit your `/etc/profile` file.

1.sudo vim /etc/profile

Expand All @@ -43,7 +44,8 @@ python >= 3.5
3.source /etc/profile


##To start using NNI CTL
## To start using NNI CTL

please reference to the [NNI CTL document].


Expand Down
2 changes: 1 addition & 1 deletion tools/bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ _nnictl()
fi
}

complete -F _nnictl nnictl
complete -o nospace -F _nnictl nnictl
61 changes: 0 additions & 61 deletions tools/completion

This file was deleted.