added basic gpu runtime

This commit is contained in:
dcore94 2022-08-04 11:06:16 +02:00
parent 4e6287d02e
commit 91212426d5
2 changed files with 43 additions and 0 deletions

View File

@ -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"
}

View File

@ -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": []
}