Skip to content
Snippets Groups Projects
Commit afebdb4e authored by Michael Kuron's avatar Michael Kuron :mortar_board: Committed by Michael Kuron
Browse files

Update RISC-V vectorization

parent f1300708
No related branches found
No related tags found
No related merge requests found
Pipeline #40805 passed
...@@ -188,8 +188,8 @@ arm64v9: ...@@ -188,8 +188,8 @@ arm64v9:
- sed -i s/g\+\+/clang++/g ~/.config/pystencils/config.json - sed -i s/g\+\+/clang++/g ~/.config/pystencils/config.json
riscv64: riscv64:
# The RISC-V vector extension is still experimental and needs special compiler flags. # The RISC-V vector extension are so new they are not supported by GCC yet.
# Once they are officially released, this job should be cleaned up to match the others. # Also, the image is built without the libomp package which is not yet available on Ubuntu.
extends: .multiarch_template extends: .multiarch_template
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/riscv64:testing image: i10git.cs.fau.de:5005/pycodegen/pycodegen/riscv64:testing
variables: variables:
...@@ -197,7 +197,7 @@ riscv64: ...@@ -197,7 +197,7 @@ riscv64:
QEMU_CPU: "rv64,v=true" QEMU_CPU: "rv64,v=true"
before_script: before_script:
- *multiarch_before_script - *multiarch_before_script
- sed -i 's/march=native/march=rv64imfdv0p10 -menable-experimental-extensions/g' ~/.config/pystencils/config.json - sed -i 's/march=native/march=rv64imfdv/g' ~/.config/pystencils/config.json
- sed -i s/g\+\+/clang++/g ~/.config/pystencils/config.json - sed -i s/g\+\+/clang++/g ~/.config/pystencils/config.json
- sed -i 's/fopenmp/fopenmp=libgomp -I\/usr\/include\/riscv64-linux-gnu/g' ~/.config/pystencils/config.json - sed -i 's/fopenmp/fopenmp=libgomp -I\/usr\/include\/riscv64-linux-gnu/g' ~/.config/pystencils/config.json
......
...@@ -50,8 +50,8 @@ def get_vector_instruction_set_riscv(data_type='double', instruction_set='rvv'): ...@@ -50,8 +50,8 @@ def get_vector_instruction_set_riscv(data_type='double', instruction_set='rvv'):
'|': 'mor_mm[0, 1]', '|': 'mor_mm[0, 1]',
'blendv': 'merge_vvm[2, 0, 1]', 'blendv': 'merge_vvm[2, 0, 1]',
'any': 'popc_m[0]', 'any': 'cpop_m[0]',
'all': 'popc_m[0]', 'all': 'cpop_m[0]',
} }
result = dict() result = dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment