diff --git a/digits/templates/home.html b/digits/templates/home.html index 36846edf0..c3d314a1b 100644 --- a/digits/templates/home.html +++ b/digits/templates/home.html @@ -28,6 +28,12 @@ } diff --git a/digits/views.py b/digits/views.py index c059c3cec..814f84f72 100644 --- a/digits/views.py +++ b/digits/views.py @@ -80,6 +80,8 @@ def home(): new_model_options = new_model_options, running_models = running_models, completed_models = completed_models, + total_gpu_count = len(scheduler.resources['gpus']), + remaining_gpu_count = sum(r.remaining() for r in scheduler.resources['gpus']), ) def get_job_list(cls, running): diff --git a/docs/API.md b/docs/API.md index 900b9ae2c..e41d7a4cf 100644 --- a/docs/API.md +++ b/docs/API.md @@ -1,6 +1,6 @@ # REST API -*Generated Aug 07, 2015* +*Generated Aug 10, 2015* DIGITS exposes its internal functionality through a REST API. You can access these endpoints by performing a GET or POST on the route, and a JSON object will be returned. diff --git a/docs/FlaskRoutes.md b/docs/FlaskRoutes.md index a7e2823b5..65bceabe9 100644 --- a/docs/FlaskRoutes.md +++ b/docs/FlaskRoutes.md @@ -1,6 +1,6 @@ # Flask Routes -*Generated Aug 07, 2015* +*Generated Aug 10, 2015* Documentation on the various routes used internally for the web application. @@ -48,7 +48,7 @@ Methods: **DELETE** Arguments: `job_id` -Location: [`digits/views.py@148`](../digits/views.py#L148) +Location: [`digits/views.py@150`](../digits/views.py#L150) ### `/datasets//abort` @@ -58,7 +58,7 @@ Methods: **POST** Arguments: `job_id` -Location: [`digits/views.py@168`](../digits/views.py#L168) +Location: [`digits/views.py@170`](../digits/views.py#L170) ### `/datasets//status` @@ -68,7 +68,7 @@ Methods: **GET** Arguments: `job_id` -Location: [`digits/views.py@129`](../digits/views.py#L129) +Location: [`digits/views.py@131`](../digits/views.py#L131) ### `/jobs/` @@ -78,7 +78,7 @@ Methods: **GET** Arguments: `job_id` -Location: [`digits/views.py@96`](../digits/views.py#L96) +Location: [`digits/views.py@98`](../digits/views.py#L98) ### `/jobs/` @@ -88,7 +88,7 @@ Methods: **PUT** Arguments: `job_id` -Location: [`digits/views.py@113`](../digits/views.py#L113) +Location: [`digits/views.py@115`](../digits/views.py#L115) ### `/jobs/` @@ -98,7 +98,7 @@ Methods: **DELETE** Arguments: `job_id` -Location: [`digits/views.py@148`](../digits/views.py#L148) +Location: [`digits/views.py@150`](../digits/views.py#L150) ### `/jobs//abort` @@ -108,7 +108,7 @@ Methods: **POST** Arguments: `job_id` -Location: [`digits/views.py@168`](../digits/views.py#L168) +Location: [`digits/views.py@170`](../digits/views.py#L170) ### `/jobs//status` @@ -118,7 +118,7 @@ Methods: **GET** Arguments: `job_id` -Location: [`digits/views.py@129`](../digits/views.py#L129) +Location: [`digits/views.py@131`](../digits/views.py#L131) ### `/models/` @@ -128,7 +128,7 @@ Methods: **DELETE** Arguments: `job_id` -Location: [`digits/views.py@148`](../digits/views.py#L148) +Location: [`digits/views.py@150`](../digits/views.py#L150) ### `/models//abort` @@ -138,7 +138,7 @@ Methods: **POST** Arguments: `job_id` -Location: [`digits/views.py@168`](../digits/views.py#L168) +Location: [`digits/views.py@170`](../digits/views.py#L170) ### `/models//status` @@ -148,7 +148,7 @@ Methods: **GET** Arguments: `job_id` -Location: [`digits/views.py@129`](../digits/views.py#L129) +Location: [`digits/views.py@131`](../digits/views.py#L131) ## Datasets @@ -406,7 +406,7 @@ Location: [`digits/model/views.py@92`](../digits/model/views.py#L92) Methods: **GET** -Location: [`digits/views.py@240`](../digits/views.py#L240) +Location: [`digits/views.py@242`](../digits/views.py#L242) ### `/files/` @@ -422,5 +422,5 @@ Methods: **GET** Arguments: `path` -Location: [`digits/views.py@226`](../digits/views.py#L226) +Location: [`digits/views.py@228`](../digits/views.py#L228)