Django Tool that helps everyone to get their fair share of GPU time.
- clone repository
- install requirements with
pip install -r requirements.txt(make sure to use python 3!) - create database by running
python manage.py migrate - run the test server with
python manage.py runserver
- create superuser by running
python manage.py createsuperuser - deploy the
device_queryscript on every machine that has a GPU that shall be monitored - create a new
Devicein the django admin for every device you want to monitor - after you've created the devices and deployed and started the
device_queryscripts you should runpython manage.py updatewhich will fill your database with information on the GPUs that each device has. - If you want to have updates regularly you should create a cron job that runs the update job every now and then.
In order to make it possible for users to see the devices and their gpus you need to give each user the permission to do so! You can do this in one of the following ways:
- Add the
use_devicepermission to a group of your choice (for instance the default Staff group) and add users to the this group. this global permission allows each user in that group to use all GPUs in LabShare. This allows you to easily provide the necessary permission to each user. - For finegrained control you can control who can use which device, by adding the
use_devicepermission to each user or a group in the permission admin of each device.