{"action":"created","comment":{"url":"https://api.github.com/repos/dmlc/mxnet/pulls/comments/97702547","pull_request_review_id":18318210,"id":97702547,"diff_hunk":"@@ -0,0 +1,164 @@\n+# Installing MXNet on CentOS\n+MXNet currently supports Python, R, Julia, and Scala. For users on CentOS, MXNet provides [a docker installation guide](http://mxnet.io/get_started/docker_setup.html). If you don't have docker environment, please install MXNet step by step.\n+\n+Note: If you are not familiar with CentOS or building progress, we encourage you to [install or deploy MXNet environment on Ubuntu](http://mxnet.io/get_started/ubuntu_setup.html). \n+\n+## Minimum Requirements\n+Make sure you have the root permission, and `yum` is properly installed.\n+\n+To install MXNet on CentOS, you must have the following:\n+\n+1. gcc, g++ (4.8 or later)\n+2. python2, python-numpy, python-pip, clang\n+3. graphviz, jupyter (pip or yum install)\n+4. OpenBLAS\n+5. CUDA for GPU\n+6. opencv (do not use yum to install opencv, some shared libs may not be installed) and cmake\n+\n+### Basic packages\n+Make sure your machine is connected to Internet. A few installations need to download (`git clone` or `wget`) some packages from Internet.\n+\n+```bash\n+\t# Install gcc-4.8/make and other development tools\n+\tsudo yum install -y gcc\n+\tsudo yum install -y gcc-c++\n+\tsudo yum install -y clang\n+\n+\t# Install Python, Numpy, pip and set up tools.\n+\tsudo yum groupinstall -y \"Development Tools\"\n+\tsudo yum install -y python27 python27-setuptools python27-tools python-pip\n+\tsudo yum install -y python27-numpy \n+\n+\t# install graphviz, jupyter\n+\tsudo pip install graphviz\n+\tsudo pip install jupyter\n+```\n+### Install OpenBLAS\n+Note that OpenBLAS can be replaced by other BLAS libs, e.g, Intel MKL.\n+\n+```bash\n+\t# Install OpenBLAS at /usr/local/openblas\n+\tgit clone https://github.com/xianyi/OpenBLAS\n+\tcd OpenBLAS\n+\tmake -j $(($(nproc) + 1))\n+\tsudo make PREFIX=/usr/local install\n+\tcd ..\n+```\n+### Install CUDA for GPU\n+If you plan to build with GPU, you need to set up the environment for CUDA and CUDNN.\n+\n+First, download and install [CUDA 8 toolkit](https://developer.nvidia.com/cuda-toolkit).\n+\n+Then download [cudnn 5](https://developer.nvidia.com/cudnn).\n+\n+Unzip the file and change to the cudnn root directory. Move the header and libraries to your local CUDA Toolkit folder:\n+\n+```bash\n+    tar xvzf cudnn-8.0-linux-x64-v5.1-ga.tgz\n+    sudo cp -P cuda/include/cudnn.h /usr/local/cuda/include\n+    sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64\n+    sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*\n+    sudo ldconfig\n+```\n+### Install opencv for Computer Vision and Image Augmentation\n+The Open Source Computer Vision (OpenCV) library contains programming functions for computer vision and image augmentation. For more information, see [OpenCV](https://en.wikipedia.org/wiki/OpenCV).\n+\n+```bash\n+\tsudo yum install -y cmake\n+\t# Install OpenCV at /usr/local/opencv\n+\tgit clone https://github.com/opencv/opencv\n+\tcd opencv\n+\tmkdir -p build\n+\tcd build\n+\tcmake -D BUILD_opencv_gpu=OFF -D WITH_EIGEN=ON -D WITH_TBB=ON -D WITH_CUDA=OFF -D WITH_1394=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..\n+\tsudo make PREFIX=/usr/local install\n+```\n+\n+## Install MXNet\n+\n+### Generate libmxnet.so\n+After installing the dependencies, use the following command to pull the MXNet source code from GitHub.\n+\n+```bash\n+    # Get MXNet source code","path":"docs/get_started/centos_setup.md","position":83,"original_position":83,"commit_id":"773c78d8c850e303d3846f617d89ff38935a2fa8","original_commit_id":"773c78d8c850e303d3846f617d89ff38935a2fa8","user":{"login":"sandeep-krishnamurthy","id":3403674,"avatar_url":"https://avatars.githubusercontent.com/u/3403674?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeep-krishnamurthy","html_url":"https://github.com/sandeep-krishnamurthy","followers_url":"https://api.github.com/users/sandeep-krishnamurthy/followers","following_url":"https://api.github.com/users/sandeep-krishnamurthy/following{/other_user}","gists_url":"https://api.github.com/users/sandeep-krishnamurthy/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeep-krishnamurthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeep-krishnamurthy/subscriptions","organizations_url":"https://api.github.com/users/sandeep-krishnamurthy/orgs","repos_url":"https://api.github.com/users/sandeep-krishnamurthy/repos","events_url":"https://api.github.com/users/sandeep-krishnamurthy/events{/privacy}","received_events_url":"https://api.github.com/users/sandeep-krishnamurthy/received_events","type":"User","site_admin":false},"body":"Comment can be - Download MXNet source code to ~/mxnet directory\r\nto help reader know where it will get downloaded.","created_at":"2017-01-25T03:14:45Z","updated_at":"2017-01-25T03:26:08Z","html_url":"https://github.com/dmlc/mxnet/pull/4790#discussion_r97702547","pull_request_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4790","_links":{"self":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/comments/97702547"},"html":{"href":"https://github.com/dmlc/mxnet/pull/4790#discussion_r97702547"},"pull_request":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4790"}}},"pull_request":{"url":"https://api.github.com/repos/dmlc/mxnet/pulls/4790","id":102868961,"html_url":"https://github.com/dmlc/mxnet/pull/4790","diff_url":"https://github.com/dmlc/mxnet/pull/4790.diff","patch_url":"https://github.com/dmlc/mxnet/pull/4790.patch","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/4790","number":4790,"state":"open","locked":false,"title":"Add docs/get_started/centos_setup.md","user":{"login":"qiyuangong","id":3848789,"avatar_url":"https://avatars.githubusercontent.com/u/3848789?v=3","gravatar_id":"","url":"https://api.github.com/users/qiyuangong","html_url":"https://github.com/qiyuangong","followers_url":"https://api.github.com/users/qiyuangong/followers","following_url":"https://api.github.com/users/qiyuangong/following{/other_user}","gists_url":"https://api.github.com/users/qiyuangong/gists{/gist_id}","starred_url":"https://api.github.com/users/qiyuangong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiyuangong/subscriptions","organizations_url":"https://api.github.com/users/qiyuangong/orgs","repos_url":"https://api.github.com/users/qiyuangong/repos","events_url":"https://api.github.com/users/qiyuangong/events{/privacy}","received_events_url":"https://api.github.com/users/qiyuangong/received_events","type":"User","site_admin":false},"body":"According to our painful experience, installing MXNet on CentOS needs much more effort and time than Ubuntu. So, I add a doc and a FAQ list for it.\r\n\r\n\tAdd install guide for CentOS.\r\n\tAddress a issue caused by old opencv (2.4) lib during installation.","created_at":"2017-01-24T07:57:03Z","updated_at":"2017-01-25T03:26:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b05afa14dbdc457cec940508236caf8a139b2aa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4790/commits","review_comments_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4790/comments","review_comment_url":"https://api.github.com/repos/dmlc/mxnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/4790/comments","statuses_url":"https://api.github.com/repos/dmlc/mxnet/statuses/773c78d8c850e303d3846f617d89ff38935a2fa8","head":{"label":"qiyuangong:centos","ref":"centos","sha":"773c78d8c850e303d3846f617d89ff38935a2fa8","user":{"login":"qiyuangong","id":3848789,"avatar_url":"https://avatars.githubusercontent.com/u/3848789?v=3","gravatar_id":"","url":"https://api.github.com/users/qiyuangong","html_url":"https://github.com/qiyuangong","followers_url":"https://api.github.com/users/qiyuangong/followers","following_url":"https://api.github.com/users/qiyuangong/following{/other_user}","gists_url":"https://api.github.com/users/qiyuangong/gists{/gist_id}","starred_url":"https://api.github.com/users/qiyuangong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiyuangong/subscriptions","organizations_url":"https://api.github.com/users/qiyuangong/orgs","repos_url":"https://api.github.com/users/qiyuangong/repos","events_url":"https://api.github.com/users/qiyuangong/events{/privacy}","received_events_url":"https://api.github.com/users/qiyuangong/received_events","type":"User","site_admin":false},"repo":{"id":79035517,"name":"mxnet","full_name":"qiyuangong/mxnet","owner":{"login":"qiyuangong","id":3848789,"avatar_url":"https://avatars.githubusercontent.com/u/3848789?v=3","gravatar_id":"","url":"https://api.github.com/users/qiyuangong","html_url":"https://github.com/qiyuangong","followers_url":"https://api.github.com/users/qiyuangong/followers","following_url":"https://api.github.com/users/qiyuangong/following{/other_user}","gists_url":"https://api.github.com/users/qiyuangong/gists{/gist_id}","starred_url":"https://api.github.com/users/qiyuangong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiyuangong/subscriptions","organizations_url":"https://api.github.com/users/qiyuangong/orgs","repos_url":"https://api.github.com/users/qiyuangong/repos","events_url":"https://api.github.com/users/qiyuangong/events{/privacy}","received_events_url":"https://api.github.com/users/qiyuangong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qiyuangong/mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":true,"url":"https://api.github.com/repos/qiyuangong/mxnet","forks_url":"https://api.github.com/repos/qiyuangong/mxnet/forks","keys_url":"https://api.github.com/repos/qiyuangong/mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiyuangong/mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiyuangong/mxnet/teams","hooks_url":"https://api.github.com/repos/qiyuangong/mxnet/hooks","issue_events_url":"https://api.github.com/repos/qiyuangong/mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/qiyuangong/mxnet/events","assignees_url":"https://api.github.com/repos/qiyuangong/mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/qiyuangong/mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/qiyuangong/mxnet/tags","blobs_url":"https://api.github.com/repos/qiyuangong/mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiyuangong/mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiyuangong/mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiyuangong/mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiyuangong/mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/qiyuangong/mxnet/languages","stargazers_url":"https://api.github.com/repos/qiyuangong/mxnet/stargazers","contributors_url":"https://api.github.com/repos/qiyuangong/mxnet/contributors","subscribers_url":"https://api.github.com/repos/qiyuangong/mxnet/subscribers","subscription_url":"https://api.github.com/repos/qiyuangong/mxnet/subscription","commits_url":"https://api.github.com/repos/qiyuangong/mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiyuangong/mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiyuangong/mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiyuangong/mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiyuangong/mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/qiyuangong/mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiyuangong/mxnet/merges","archive_url":"https://api.github.com/repos/qiyuangong/mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiyuangong/mxnet/downloads","issues_url":"https://api.github.com/repos/qiyuangong/mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/qiyuangong/mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/qiyuangong/mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/qiyuangong/mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiyuangong/mxnet/labels{/name}","releases_url":"https://api.github.com/repos/qiyuangong/mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/qiyuangong/mxnet/deployments","created_at":"2017-01-15T13:50:51Z","updated_at":"2017-01-15T13:50:56Z","pushed_at":"2017-01-24T07:51:49Z","git_url":"git://github.com/qiyuangong/mxnet.git","ssh_url":"git@github.com:qiyuangong/mxnet.git","clone_url":"https://github.com/qiyuangong/mxnet.git","svn_url":"https://github.com/qiyuangong/mxnet","homepage":"http://mxnet.io","size":13462,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmlc:master","ref":"master","sha":"6df126b685d68f5e25aabac426ba662e3a30e285","user":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"repo":{"id":34864402,"name":"mxnet","full_name":"dmlc/mxnet","owner":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmlc/mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":false,"url":"https://api.github.com/repos/dmlc/mxnet","forks_url":"https://api.github.com/repos/dmlc/mxnet/forks","keys_url":"https://api.github.com/repos/dmlc/mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmlc/mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmlc/mxnet/teams","hooks_url":"https://api.github.com/repos/dmlc/mxnet/hooks","issue_events_url":"https://api.github.com/repos/dmlc/mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/dmlc/mxnet/events","assignees_url":"https://api.github.com/repos/dmlc/mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/dmlc/mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/dmlc/mxnet/tags","blobs_url":"https://api.github.com/repos/dmlc/mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmlc/mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmlc/mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmlc/mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmlc/mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/dmlc/mxnet/languages","stargazers_url":"https://api.github.com/repos/dmlc/mxnet/stargazers","contributors_url":"https://api.github.com/repos/dmlc/mxnet/contributors","subscribers_url":"https://api.github.com/repos/dmlc/mxnet/subscribers","subscription_url":"https://api.github.com/repos/dmlc/mxnet/subscription","commits_url":"https://api.github.com/repos/dmlc/mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmlc/mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmlc/mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmlc/mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmlc/mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/dmlc/mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmlc/mxnet/merges","archive_url":"https://api.github.com/repos/dmlc/mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmlc/mxnet/downloads","issues_url":"https://api.github.com/repos/dmlc/mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/dmlc/mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/dmlc/mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/dmlc/mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmlc/mxnet/labels{/name}","releases_url":"https://api.github.com/repos/dmlc/mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/dmlc/mxnet/deployments","created_at":"2015-04-30T16:21:15Z","updated_at":"2017-01-25T03:09:49Z","pushed_at":"2017-01-25T01:17:27Z","git_url":"git://github.com/dmlc/mxnet.git","ssh_url":"git@github.com:dmlc/mxnet.git","clone_url":"https://github.com/dmlc/mxnet.git","svn_url":"https://github.com/dmlc/mxnet","homepage":"http://mxnet.io","size":13464,"stargazers_count":7769,"watchers_count":7769,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2896,"mirror_url":null,"open_issues_count":1097,"forks":2896,"open_issues":1097,"watchers":7769,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4790"},"html":{"href":"https://github.com/dmlc/mxnet/pull/4790"},"issue":{"href":"https://api.github.com/repos/dmlc/mxnet/issues/4790"},"comments":{"href":"https://api.github.com/repos/dmlc/mxnet/issues/4790/comments"},"review_comments":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4790/comments"},"review_comment":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4790/commits"},"statuses":{"href":"https://api.github.com/repos/dmlc/mxnet/statuses/773c78d8c850e303d3846f617d89ff38935a2fa8"}}}}
{"actor":{"display_login":"sandeep-krishnamurthy"}}