Skip to content

Commit

Permalink
Use extra config files to test intel
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Sep 11, 2023
1 parent 68cb9f4 commit 82169f6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
26 changes: 20 additions & 6 deletions .github/actions/generate_pyccel_config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,34 @@ runs:
steps:
- name: Generate default pyccel configurations
run: |
pyccel --language=fortran --export-compile-info pyccel_fortran.json
pyccel --language=c --export-compile-info pyccel_c.json
pyccel --language=fortran --export-compile-info pyccel_fortran_gnu.json
pyccel --language=c --export-compile-info pyccel_c_gnu.json
pyccel --language=fortran --export-compile-info pyccel_fortran_intel.json
pyccel --language=c --export-compile-info pyccel_c_intel.json
shell: bash
working-directory: ./benchmarks
- name: Add improved flags
run: |
import json
config = json.load(open('pyccel_fortran.json'))
# Fortran GNU
config = json.load(open('pyccel_fortran_gnu.json'))
config['general_flags'].extend(['-O3', '-march=native', '-mtune=native', '-mavx', '-ffast-math'])
print(json.dumps(config, indent=4),
file=open('pyccel_fortran.json','w'))
config = json.load(open('pyccel_c.json'))
file=open('pyccel_fortran_gnu.json','w'))
# C GNU
config = json.load(open('pyccel_c_gnu.json'))
config['general_flags'].extend(['-O3', '-march=native', '-mtune=native', '-mavx', '-ffast-math'])
print(json.dumps(config, indent=4),
file=open('pyccel_c.json','w'))
file=open('pyccel_c_gnu.json','w'))
# Fortran Intel
config = json.load(open('pyccel_fortran_intel.json'))
config['general_flags'].extend(['-O3', '-march=native', '-mtune=native', '-mavx', '-fast'])
print(json.dumps(config, indent=4),
# C Intel
file=open('pyccel_fortran_intel.json','w'))
config = json.load(open('pyccel_c_intel.json'))
config['general_flags'].extend(['-O3', '-march=native', '-mtune=native', '-mavx', '-fast'])
print(json.dumps(config, indent=4),
file=open('pyccel_c_intel.json','w'))
shell: python
working-directory: ./benchmarks
2 changes: 1 addition & 1 deletion .github/workflows/run_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Benchmark
run: |
cd benchmarks
python run_benchmarks.py --verbose --pyccel-config-files pyccel_fortran.json pyccel_c.json --pythran-config-files pythran.config
python run_benchmarks.py --verbose --pyccel-config-files pyccel_fortran_gnu.json pyccel_c_gnu.json pyccel_fortran_intel.json pyccel_c_intel.json --pythran-config-files pythran_gnu.config pythran_intel.config
cd ..
FILE=version_specific_results/devel_performance_310.md
echo "### Performance Comparison (as of $(date))" > ${FILE}
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions benchmarks/pythran_intel.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[compiler]
defines=
undefs=
include_dirs=
libs=
library_dirs=
cflags=-std=c++11 -fno-math-errno -fvisibility=hidden -fno-wrapv -Wno-unused-function -Wno-int-in-bool-context -Wno-unknown-warning-option -O3 -march=native -mtune=native -mavx -fast
ldflags=-fvisibility=hidden -Wl,-strip-all
blas=blas
CC=icc
CXX=icx
ignoreflags=-Wstrict-prototypes

0 comments on commit 82169f6

Please sign in to comment.