From 59b6ca3261821d0c2ededea17c1bfbef22a69c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3hannes=20Nordal?= <johannesnordal88@gmail.com> Date: Tue, 11 Jun 2024 21:38:51 +0000 Subject: [PATCH] add: build functionality --- README.md | 17 +++++++++++++++++ examples/clang_payload.json | 7 ------- scripts/DEEP/clang/jobscript.sh | 6 ------ scripts/DEEP/clang/lamec.json | 3 --- scripts/info.json | 8 -------- 5 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 examples/clang_payload.json delete mode 100644 scripts/DEEP/clang/jobscript.sh delete mode 100644 scripts/DEEP/clang/lamec.json diff --git a/README.md b/README.md index 46073a4..c0d83f1 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,20 @@ to see what systems and software are available. If you want to contribute or learn about the structure of our project, please read our [wiki](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/lamec-oa/-/wikis/LAMEC-Project-Overview). + +## Build and Run + +To build LAMEC, run: + +``` +python3 lamec.py build +``` + +This command creates `form_schema.json` that is used for input control +for the front-end. + +You can test LAMEC locally using the built-in PHP web server: + +``` +php -S localhost:<port> +``` diff --git a/examples/clang_payload.json b/examples/clang_payload.json deleted file mode 100644 index cfd60ff..0000000 --- a/examples/clang_payload.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "system": "DEEP", - "software": "clang", - "c_source_file": "main.c", - "c_output_file": "main", - "partition": "dp-esb" -} diff --git a/scripts/DEEP/clang/jobscript.sh b/scripts/DEEP/clang/jobscript.sh deleted file mode 100644 index a4b8c79..0000000 --- a/scripts/DEEP/clang/jobscript.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -#SBATCH --partition=%partition% - -gcc %c_source_file% -o %c_output_file% - -srun %c_output_file% diff --git a/scripts/DEEP/clang/lamec.json b/scripts/DEEP/clang/lamec.json deleted file mode 100644 index 599040d..0000000 --- a/scripts/DEEP/clang/lamec.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "template": "jobscript.sh" -} diff --git a/scripts/info.json b/scripts/info.json index aff591d..245322b 100644 --- a/scripts/info.json +++ b/scripts/info.json @@ -25,14 +25,6 @@ "desc": "Specify the account for your job.", "default": "Account" }, - "c_source_file": { - "type": "string", - "desc": "Specify the name of your C source file." - }, - "c_output_file": { - "type": "string", - "desc": "Specify the name of your C output file." - }, "executable": { "type": "string", "desc": "Specify an executable for your job.", -- GitLab