diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab865c5572f114193da46f6899ec7a37cae67a15..bf4b2d2595266959b72e6110617ab3f1f557cddf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -188,8 +188,8 @@ arm64v9: - sed -i s/g\+\+/clang++/g ~/.config/pystencils/config.json riscv64: - # The RISC-V vector extension is still experimental and needs special compiler flags. - # Once they are officially released, this job should be cleaned up to match the others. + # The RISC-V vector extension are so new they are not supported by GCC yet. + # Also, the image is built without the libomp package which is not yet available on Ubuntu. extends: .multiarch_template image: i10git.cs.fau.de:5005/pycodegen/pycodegen/riscv64:testing variables: @@ -197,7 +197,7 @@ riscv64: QEMU_CPU: "rv64,v=true" 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/fopenmp/fopenmp=libgomp -I\/usr\/include\/riscv64-linux-gnu/g' ~/.config/pystencils/config.json diff --git a/pystencils/backends/riscv_instruction_sets.py b/pystencils/backends/riscv_instruction_sets.py index d93aee7011740cfbb8c89010518828888b00c369..8e0ab7edd22b90312ff434da01aa4d489c36f1d1 100644 --- a/pystencils/backends/riscv_instruction_sets.py +++ b/pystencils/backends/riscv_instruction_sets.py @@ -50,8 +50,8 @@ def get_vector_instruction_set_riscv(data_type='double', instruction_set='rvv'): '|': 'mor_mm[0, 1]', 'blendv': 'merge_vvm[2, 0, 1]', - 'any': 'popc_m[0]', - 'all': 'popc_m[0]', + 'any': 'cpop_m[0]', + 'all': 'cpop_m[0]', } result = dict()