From b4930126b59c3a203a34513d5dc077d89c05387b Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Fri, 1 Mar 2019 13:57:32 +0100
Subject: [PATCH] [advanced][toolchains] Add simple toolchain to test GPU setup

---
 advanced/toolchains/username/gpu_test/1.json | 109 +++++++++++++++++++
 advanced/toolchains/username/gpu_test/1.rst  |  22 ++++
 2 files changed, 131 insertions(+)
 create mode 100644 advanced/toolchains/username/gpu_test/1.json
 create mode 100644 advanced/toolchains/username/gpu_test/1.rst

diff --git a/advanced/toolchains/username/gpu_test/1.json b/advanced/toolchains/username/gpu_test/1.json
new file mode 100644
index 0000000..f207499
--- /dev/null
+++ b/advanced/toolchains/username/gpu_test/1.json
@@ -0,0 +1,109 @@
+{
+    "connections": [
+        {
+            "to": "analyzer_1.scores",
+            "from": "block_1.scores",
+            "channel": "templates"
+        },
+        {
+            "to": "block_1.input",
+            "from": "templates.file_id",
+            "channel": "templates"
+        }
+    ],
+    "analyzers": [
+        {
+            "inputs": [
+                "scores"
+            ],
+            "synchronized_channel": "templates",
+            "name": "analyzer_1"
+        }
+    ],
+    "datasets": [
+        {
+            "outputs": [
+                "client_id",
+                "file_id",
+                "image",
+                "template_id"
+            ],
+            "name": "templates"
+        }
+    ],
+    "blocks": [
+        {
+            "inputs": [
+                "input"
+            ],
+            "synchronized_channel": "templates",
+            "name": "block_1",
+            "outputs": [
+                "scores"
+            ]
+        }
+    ],
+    "representation": {
+        "connections": {
+            "templates.file_id/block_1.input": [
+                {
+                    "col": 9,
+                    "row": 6
+                },
+                {
+                    "col": 10,
+                    "row": 6
+                },
+                {
+                    "col": 14,
+                    "row": 6
+                },
+                {
+                    "col": 15,
+                    "row": 6
+                }
+            ],
+            "block_1.scores/analyzer_1.scores": [
+                {
+                    "col": 21,
+                    "row": 6
+                },
+                {
+                    "col": 22,
+                    "row": 6
+                },
+                {
+                    "col": 24,
+                    "row": 6
+                },
+                {
+                    "col": 25,
+                    "row": 6
+                }
+            ]
+        },
+        "blocks": {
+            "templates": {
+                "width": 5,
+                "height": 6,
+                "col": 4,
+                "row": 3
+            },
+            "block_1": {
+                "width": 6,
+                "height": 3,
+                "col": 15,
+                "row": 4
+            },
+            "analyzer_1": {
+                "width": 6,
+                "height": 3,
+                "col": 25,
+                "row": 4
+            }
+        },
+        "channel_colors": {
+            "templates": "#0000FF"
+        }
+    }
+}
diff --git a/advanced/toolchains/username/gpu_test/1.rst b/advanced/toolchains/username/gpu_test/1.rst
new file mode 100644
index 0000000..5812fdd
--- /dev/null
+++ b/advanced/toolchains/username/gpu_test/1.rst
@@ -0,0 +1,22 @@
+.. Copyright (c) 2019 Idiap Research Institute, http://www.idiap.ch/          ..
+.. Contact: beat.support@idiap.ch                                             ..
+..                                                                            ..
+.. This file is part of the beat.examples module of the BEAT platform.        ..
+..                                                                            ..
+.. Commercial License Usage                                                   ..
+.. Licensees holding valid commercial BEAT licenses may use this file in      ..
+.. accordance with the terms contained in a written agreement between you     ..
+.. and Idiap. For further information contact tto@idiap.ch                    ..
+..                                                                            ..
+.. Alternatively, this file may be used under the terms of the GNU Affero     ..
+.. Public License version 3 as published by the Free Software and appearing   ..
+.. in the file LICENSE.AGPL included in the packaging of this file.           ..
+.. The BEAT platform is distributed in the hope that it will be useful, but   ..
+.. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ..
+.. or FITNESS FOR A PARTICULAR PURPOSE.                                       ..
+..                                                                            ..
+.. You should have received a copy of the GNU Affero Public License along     ..
+.. with the BEAT platform. If not, see http://www.gnu.org/licenses/.          ..
+
+
+Implements a simple pass through for validating GPU setup.
\ No newline at end of file
-- 
GitLab