From 91212426d5cb335ec6dbc5ca7982f931a3f1e099 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 4 Aug 2022 11:06:16 +0200 Subject: [PATCH] added basic gpu runtime --- focal-fossa-gpu/descriptor.json | 21 +++++++++++++++++++++ focal-fossa-gpu/packer.json | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 focal-fossa-gpu/descriptor.json create mode 100644 focal-fossa-gpu/packer.json diff --git a/focal-fossa-gpu/descriptor.json b/focal-fossa-gpu/descriptor.json new file mode 100644 index 0000000..100f302 --- /dev/null +++ b/focal-fossa-gpu/descriptor.json @@ -0,0 +1,21 @@ +{ + "id":"84127ecc-6892-4c63-8860-16a4f491fe4c", + "active":true, + "name":"focal-fossa-gpu", + "description":"An LXD runtime based on Ubuntu focal fossa 20.04 for running nvidia based GPU code", + "keywords":[ + "lxd", + "linux", + "ubuntu", + "focal-fossa", + "bash", + "nvidia", + "GPU" + ], + "responsible":{ + "name":"Marco Lettere", + "email":"m.lettere@gmail.com" + }, + "type":"lxd", + "image":"ubuntu:20.04" +} diff --git a/focal-fossa-gpu/packer.json b/focal-fossa-gpu/packer.json new file mode 100644 index 0000000..01dd8e7 --- /dev/null +++ b/focal-fossa-gpu/packer.json @@ -0,0 +1,22 @@ +{ + "builders": [ + { + "type": "lxd", + "name": "{{ user `name`}}", + "image": "ubuntu:20.04", + "output_image": "{{ user `name` }}:{{user `id`}}", + "publish_properties": { + "description": "{{ user `description`}}" + } + } + ], + "provisioners": [ + "type" : "shell", + "inline" : [ + "apt-get update", + "apt-get --yes install build-essential", + "apt-get --yes install nvidia-cuda-toolkit" + ] + ], + "post-processors": [] +}