-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
189 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,13 @@ | |
#FROM fnndsc/ubuntu-python3:latest | ||
FROM tensorflow/tensorflow:latest-gpu-py3 | ||
MAINTAINER fnndsc "[email protected]" | ||
WORKDIR /usr/local/src | ||
|
||
ENV APPROOT="/usr/src/gpu_test" | ||
COPY ["gpu_test","${APPROOT}"] | ||
COPY ["requirements.txt", "${APPROOT}"] | ||
|
||
WORKDIR $APPROOT | ||
COPY requirements.txt . | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
ENTRYPOINT ["python3"] | ||
CMD ["gpu_test.py", "--help"] | ||
|
||
COPY . . | ||
RUN pip install . | ||
|
||
CMD ["gpu_test", "--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from gpu_test.gpu_test import GPU_test | ||
|
||
|
||
def main(): | ||
chris_app = GPU_test() | ||
chris_app.launch() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,26 +103,17 @@ class GPU_test(ChrisApp): | |
""" | ||
An app to check the available GPUs. | ||
""" | ||
AUTHORS = 'Sandip Samal ([email protected])' | ||
SELFPATH = os.path.dirname(os.path.abspath(__file__)) | ||
SELFEXEC = os.path.basename(__file__) | ||
EXECSHELL = 'python3' | ||
TITLE = 'An application to check the presence of GPU in the system' | ||
CATEGORY = 'N/A' | ||
TYPE = 'ds' | ||
DESCRIPTION = 'An app to check the available GPUs' | ||
DOCUMENTATION = '...' | ||
VERSION = '0.2.5' | ||
ICON = '' # url of an icon image | ||
LICENSE = 'Opensource (MIT)' | ||
MAX_NUMBER_OF_WORKERS = 1 # Override with integer value | ||
MIN_NUMBER_OF_WORKERS = 1 # Override with integer value | ||
MAX_CPU_LIMIT = '' # Override with millicore value as string, e.g. '2000m' | ||
MIN_CPU_LIMIT = '3000m' # Override with millicore value as string, e.g. '2000m' | ||
MAX_MEMORY_LIMIT = '' # Override with string, e.g. '1Gi', '2000Mi' | ||
MIN_MEMORY_LIMIT = '32000Mi' # Override with string, e.g. '1Gi', '2000Mi' | ||
MIN_GPU_LIMIT = 0 # Override with the minimum number of GPUs, as an integer, for your plugin | ||
MAX_GPU_LIMIT = 0 # Override with the maximum number of GPUs, as an integer, for your plugin | ||
PACKAGE = __package__ | ||
TITLE = 'Shows GPUs available in the compute env' | ||
CATEGORY = 'GPU' | ||
TYPE = 'ds' | ||
ICON = '' # url of an icon image | ||
MIN_NUMBER_OF_WORKERS = 1 # Override with the minimum number of workers as int | ||
MAX_NUMBER_OF_WORKERS = 1 # Override with the maximum number of workers as int | ||
MIN_CPU_LIMIT = 2000 # Override with millicore value as int (1000 millicores == 1 CPU core) | ||
MIN_MEMORY_LIMIT = 32000 # Override with memory MegaByte (MB) limit as int | ||
MIN_GPU_LIMIT = 0 # Override with the minimum number of GPUs as int | ||
MAX_GPU_LIMIT = 0 # Override with the maximum number of GPUs as int | ||
|
||
# Use this dictionary structure to provide key-value output descriptive information | ||
# that may be useful for the next downstream plugin. For example: | ||
|
@@ -166,9 +157,3 @@ def show_man_page(self): | |
Print the app's man page. | ||
""" | ||
print(Gstr_synopsis) | ||
|
||
|
||
# ENTRYPOINT | ||
if __name__ == "__main__": | ||
chris_app = GPU_test() | ||
chris_app.launch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
chrisapp | ||
chrisapp~=2.4.0 | ||
torch |
Oops, something went wrong.