Skip to content
Snippets Groups Projects
Commit 59b6ca32 authored by Jóhannes Nordal's avatar Jóhannes Nordal
Browse files

add: build functionality

parent 4dbbe3b2
Branches
No related tags found
No related merge requests found
...@@ -11,3 +11,20 @@ to see what systems and software are available. ...@@ -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 If you want to contribute or learn about the structure of our project, please
read our read our
[wiki](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/lamec-oa/-/wikis/LAMEC-Project-Overview). [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>
```
{
"system": "DEEP",
"software": "clang",
"c_source_file": "main.c",
"c_output_file": "main",
"partition": "dp-esb"
}
#!/usr/bin/env bash
#SBATCH --partition=%partition%
gcc %c_source_file% -o %c_output_file%
srun %c_output_file%
{
"template": "jobscript.sh"
}
...@@ -25,14 +25,6 @@ ...@@ -25,14 +25,6 @@
"desc": "Specify the account for your job.", "desc": "Specify the account for your job.",
"default": "Account" "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": { "executable": {
"type": "string", "type": "string",
"desc": "Specify an executable for your job.", "desc": "Specify an executable for your job.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment