{"action":"created","comment":{"url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/comments/224222451","pull_request_review_id":163537089,"id":224222451,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDIyMjQ1MQ==","diff_hunk":"@@ -368,6 +374,24 @@ private static String getCanonicalPath(String path) {\n         return getCanonicalPath(new File(path));\n     }\n \n+    private static int getAvailableGpu() {\n+        try {\n+            Process process =\n+                    Runtime.getRuntime().exec(\"nvidia-smi --query-gpu=index --format=csv\");","path":"frontend/server/src/main/java/com/amazonaws/ml/mms/util/ConfigManager.java","position":27,"original_position":27,"commit_id":"849c2ac0288b089e7ba054e594422d542c794937","original_commit_id":"849c2ac0288b089e7ba054e594422d542c794937","user":{"login":"frankfliu","id":24425551,"node_id":"MDQ6VXNlcjI0NDI1NTUx","avatar_url":"https://avatars1.githubusercontent.com/u/24425551?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfliu","html_url":"https://github.com/frankfliu","followers_url":"https://api.github.com/users/frankfliu/followers","following_url":"https://api.github.com/users/frankfliu/following{/other_user}","gists_url":"https://api.github.com/users/frankfliu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfliu/subscriptions","organizations_url":"https://api.github.com/users/frankfliu/orgs","repos_url":"https://api.github.com/users/frankfliu/repos","events_url":"https://api.github.com/users/frankfliu/events{/privacy}","received_events_url":"https://api.github.com/users/frankfliu/received_events","type":"User","site_admin":false},"body":"Why you think this won't work on other OS?\r\n","created_at":"2018-10-10T20:04:02Z","updated_at":"2018-10-10T20:04:02Z","html_url":"https://github.com/awslabs/mxnet-model-server/pull/581#discussion_r224222451","pull_request_url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/comments/224222451"},"html":{"href":"https://github.com/awslabs/mxnet-model-server/pull/581#discussion_r224222451"},"pull_request":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581"}},"in_reply_to_id":224186986},"pull_request":{"url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581","id":221880883,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODgwODgz","html_url":"https://github.com/awslabs/mxnet-model-server/pull/581","diff_url":"https://github.com/awslabs/mxnet-model-server/pull/581.diff","patch_url":"https://github.com/awslabs/mxnet-model-server/pull/581.patch","issue_url":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/581","number":581,"state":"open","locked":false,"title":"Detect number gpu on MMS startup.","user":{"login":"frankfliu","id":24425551,"node_id":"MDQ6VXNlcjI0NDI1NTUx","avatar_url":"https://avatars1.githubusercontent.com/u/24425551?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfliu","html_url":"https://github.com/frankfliu","followers_url":"https://api.github.com/users/frankfliu/followers","following_url":"https://api.github.com/users/frankfliu/following{/other_user}","gists_url":"https://api.github.com/users/frankfliu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfliu/subscriptions","organizations_url":"https://api.github.com/users/frankfliu/orgs","repos_url":"https://api.github.com/users/frankfliu/repos","events_url":"https://api.github.com/users/frankfliu/events{/privacy}","received_events_url":"https://api.github.com/users/frankfliu/received_events","type":"User","site_admin":false},"body":"*Issue #, if available:*\r\n\r\n*Description of changes:*\r\n\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-10-10T18:00:16Z","updated_at":"2018-10-10T20:04:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"702d7b03f0baecd89b0cc97758966e80630ec000","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vrakesh","id":13260794,"node_id":"MDQ6VXNlcjEzMjYwNzk0","avatar_url":"https://avatars3.githubusercontent.com/u/13260794?v=4","gravatar_id":"","url":"https://api.github.com/users/vrakesh","html_url":"https://github.com/vrakesh","followers_url":"https://api.github.com/users/vrakesh/followers","following_url":"https://api.github.com/users/vrakesh/following{/other_user}","gists_url":"https://api.github.com/users/vrakesh/gists{/gist_id}","starred_url":"https://api.github.com/users/vrakesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrakesh/subscriptions","organizations_url":"https://api.github.com/users/vrakesh/orgs","repos_url":"https://api.github.com/users/vrakesh/repos","events_url":"https://api.github.com/users/vrakesh/events{/privacy}","received_events_url":"https://api.github.com/users/vrakesh/received_events","type":"User","site_admin":false},{"login":"vdantu","id":36211508,"node_id":"MDQ6VXNlcjM2MjExNTA4","avatar_url":"https://avatars1.githubusercontent.com/u/36211508?v=4","gravatar_id":"","url":"https://api.github.com/users/vdantu","html_url":"https://github.com/vdantu","followers_url":"https://api.github.com/users/vdantu/followers","following_url":"https://api.github.com/users/vdantu/following{/other_user}","gists_url":"https://api.github.com/users/vdantu/gists{/gist_id}","starred_url":"https://api.github.com/users/vdantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdantu/subscriptions","organizations_url":"https://api.github.com/users/vdantu/orgs","repos_url":"https://api.github.com/users/vdantu/repos","events_url":"https://api.github.com/users/vdantu/events{/privacy}","received_events_url":"https://api.github.com/users/vdantu/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581/commits","review_comments_url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581/comments","review_comment_url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/581/comments","statuses_url":"https://api.github.com/repos/awslabs/mxnet-model-server/statuses/849c2ac0288b089e7ba054e594422d542c794937","head":{"label":"frankfliu:gpu","ref":"gpu","sha":"849c2ac0288b089e7ba054e594422d542c794937","user":{"login":"frankfliu","id":24425551,"node_id":"MDQ6VXNlcjI0NDI1NTUx","avatar_url":"https://avatars1.githubusercontent.com/u/24425551?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfliu","html_url":"https://github.com/frankfliu","followers_url":"https://api.github.com/users/frankfliu/followers","following_url":"https://api.github.com/users/frankfliu/following{/other_user}","gists_url":"https://api.github.com/users/frankfliu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfliu/subscriptions","organizations_url":"https://api.github.com/users/frankfliu/orgs","repos_url":"https://api.github.com/users/frankfliu/repos","events_url":"https://api.github.com/users/frankfliu/events{/privacy}","received_events_url":"https://api.github.com/users/frankfliu/received_events","type":"User","site_admin":false},"repo":{"id":140020406,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMjA0MDY=","name":"mxnet-model-server","full_name":"frankfliu/mxnet-model-server","private":false,"owner":{"login":"frankfliu","id":24425551,"node_id":"MDQ6VXNlcjI0NDI1NTUx","avatar_url":"https://avatars1.githubusercontent.com/u/24425551?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfliu","html_url":"https://github.com/frankfliu","followers_url":"https://api.github.com/users/frankfliu/followers","following_url":"https://api.github.com/users/frankfliu/following{/other_user}","gists_url":"https://api.github.com/users/frankfliu/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfliu/subscriptions","organizations_url":"https://api.github.com/users/frankfliu/orgs","repos_url":"https://api.github.com/users/frankfliu/repos","events_url":"https://api.github.com/users/frankfliu/events{/privacy}","received_events_url":"https://api.github.com/users/frankfliu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/frankfliu/mxnet-model-server","description":"Model Server for Apache MXNet is a tool for serving neural net models for inference","fork":true,"url":"https://api.github.com/repos/frankfliu/mxnet-model-server","forks_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/forks","keys_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/teams","hooks_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/hooks","issue_events_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/issues/events{/number}","events_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/events","assignees_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/assignees{/user}","branches_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/branches{/branch}","tags_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/tags","blobs_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/statuses/{sha}","languages_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/languages","stargazers_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/stargazers","contributors_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/contributors","subscribers_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/subscribers","subscription_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/subscription","commits_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/contents/{+path}","compare_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/merges","archive_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/downloads","issues_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/issues{/number}","pulls_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/pulls{/number}","milestones_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/milestones{/number}","notifications_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/labels{/name}","releases_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/releases{/id}","deployments_url":"https://api.github.com/repos/frankfliu/mxnet-model-server/deployments","created_at":"2018-07-06T18:57:08Z","updated_at":"2018-07-09T17:57:05Z","pushed_at":"2018-10-10T17:59:52Z","git_url":"git://github.com/frankfliu/mxnet-model-server.git","ssh_url":"git@github.com:frankfliu/mxnet-model-server.git","clone_url":"https://github.com/frankfliu/mxnet-model-server.git","svn_url":"https://github.com/frankfliu/mxnet-model-server","homepage":"","size":43280,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awslabs:netty","ref":"netty","sha":"54bf301dabe2a37a7f05efa25e8f91e15090420c","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":105830539,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU4MzA1Mzk=","name":"mxnet-model-server","full_name":"awslabs/mxnet-model-server","private":false,"owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awslabs/mxnet-model-server","description":"Model Server for Apache MXNet is a tool for serving neural net models for inference","fork":false,"url":"https://api.github.com/repos/awslabs/mxnet-model-server","forks_url":"https://api.github.com/repos/awslabs/mxnet-model-server/forks","keys_url":"https://api.github.com/repos/awslabs/mxnet-model-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/mxnet-model-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/mxnet-model-server/teams","hooks_url":"https://api.github.com/repos/awslabs/mxnet-model-server/hooks","issue_events_url":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/mxnet-model-server/events","assignees_url":"https://api.github.com/repos/awslabs/mxnet-model-server/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/mxnet-model-server/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/mxnet-model-server/tags","blobs_url":"https://api.github.com/repos/awslabs/mxnet-model-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/mxnet-model-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/mxnet-model-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/mxnet-model-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/mxnet-model-server/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/mxnet-model-server/languages","stargazers_url":"https://api.github.com/repos/awslabs/mxnet-model-server/stargazers","contributors_url":"https://api.github.com/repos/awslabs/mxnet-model-server/contributors","subscribers_url":"https://api.github.com/repos/awslabs/mxnet-model-server/subscribers","subscription_url":"https://api.github.com/repos/awslabs/mxnet-model-server/subscription","commits_url":"https://api.github.com/repos/awslabs/mxnet-model-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/mxnet-model-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/mxnet-model-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/mxnet-model-server/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/mxnet-model-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/mxnet-model-server/merges","archive_url":"https://api.github.com/repos/awslabs/mxnet-model-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/mxnet-model-server/downloads","issues_url":"https://api.github.com/repos/awslabs/mxnet-model-server/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/mxnet-model-server/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/mxnet-model-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/mxnet-model-server/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/mxnet-model-server/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/mxnet-model-server/deployments","created_at":"2017-10-04T23:41:07Z","updated_at":"2018-10-04T09:26:30Z","pushed_at":"2018-10-10T18:00:17Z","git_url":"git://github.com/awslabs/mxnet-model-server.git","ssh_url":"git@github.com:awslabs/mxnet-model-server.git","clone_url":"https://github.com/awslabs/mxnet-model-server.git","svn_url":"https://github.com/awslabs/mxnet-model-server","homepage":"","size":36627,"stargazers_count":316,"watchers_count":316,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":69,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":69,"open_issues":51,"watchers":316,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581"},"html":{"href":"https://github.com/awslabs/mxnet-model-server/pull/581"},"issue":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/581"},"comments":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/issues/581/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/pulls/581/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/mxnet-model-server/statuses/849c2ac0288b089e7ba054e594422d542c794937"}},"author_association":"NONE"}}
{"actor":{"display_login":"frankfliu"}}