Skip to content
Snippets Groups Projects
Commit d50a8a89 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

Merge branch 'mohr/53-how-to-generate-operators-needs-a-little-bit-of-pimping' into 'main'

Give hint to user on the need to extend generate.py

Closes #53

See merge request !45
parents 480cb0b5 56a325fa
1 merge request!45Give hint to user on the need to extend generate.py
Pipeline #77514 passed with warnings with stages
in 28 minutes and 19 seconds
......@@ -57,6 +57,9 @@ The reason for this module is to administer different versions of each operator.
it might be possible to use AVX512, AVX2 or no vectorization at all. The module will choose the correct type of vectorization for you, generate and build it.
(More precisely, it generates a non-vectorized and a vectorized version alongside logic which chooses the desired version at build time (automatically).)
Depending on the operator you are adding you might also need to extend `hyteg-operators/generate/generate.py`, e.g. if you want to use a new FE space or
blending map.
### Step 3: Operator generation
Generate the operator by creating a virtual environment including the HOG and running
`hyteg-operators/generate/generate.py`:
......@@ -70,6 +73,11 @@ python generate.py -o ../operators ../operators.toml
The generated operator will be saved at `hyteg-operators/operators`.
Note: the pointer to HOG in the `requirements.txt` should point to the commit you published the form on or, if you have not published it, to you local HOG repository.
For a full list of options run
```sh
python generate.py -h
```
### Step 4: Linking and including in Apps
Link your application against the operator in the corresponding `CMakeLists.txt`:
```cmake
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment