Skip to content

Commit

Permalink
Deleted unused files, tweaked workflow, added badge
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Sep 13, 2023
1 parent 04cd740 commit 7e8b679
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 44 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ jobs:
- name: Run tests in Intel environment
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate intel_env
python run_tests.py
conda activate intel_env || exit 1
# This is toy run for GH action,
# The arguments are really bad for real perf testing, use default arguments instead
python numpy/umath/umath_mem_bench.py -v --size 10 --goal-time 0.01 --repeats 1 || exit 1

- name: Run tests in stock environment
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate stock_env
python run_tests.py
conda activate stock_env || exit 1
# This is toy run for GH action,
# The arguments are really bad for real perf testing, use default arguments instead
python numpy/umath/umath_mem_bench.py -v --size 10 --goal-time 0.01 --repeats 1 || exit 1
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
[![Run benchmark tests](https://github.com/IntelPython/optimizations_bench/actions/workflows/run_tests.yaml/badge.svg)](https://github.com/IntelPython/optimizations_bench/actions/workflows/run_tests.yaml)

# Optimization Benchmarks
Collection of performance benchmarks used to present optimizations implemented for Intel(R) Distribution for Python*

## Environment Setup
To install Python environments from Intel channel along with pip-installed packages

- `python3 create_python_envs.py`

- `conda env create -f environments/intel.yaml`
- `conda activate intel_env`

## Run tests
- `python3 run_tests.py`
- `python numpy/umath/umath_mem_bench.py -v --size 10 --goal-time 0.01 --repeats 1`

## Run benchmarks
### umath
- To run python benchmarks: `python numpy/umath/umath_mem_bench.py`
- To compile and run native benchmarks (requires icc): `make -C numpy/umath`
- To compile and run native benchmarks (requires `icx`): `make -C numpy/umath`

### Random number generation
- To run python benchmarks: `python numpy/random/rng.py`
- To compile and run native benchmarks (requires icc): `make -C numpy/random`
- To compile and run native benchmarks (requires `icx`): `make -C numpy/random`

## See also
"[Accelerating Scientific Python with Intel Optimizations](http://conference.scipy.org/proceedings/scipy2017/pdfs/oleksandr_pavlyk.pdf)" by Oleksandr Pavlyk, Denis Nagorny, Andres Guzman-Ballen, Anton Malakhov, Hai Liu, Ehsan Totoni, Todd A. Anderson, Sergey Maidanov. Proceedings of the 16th Python in Science Conference (SciPy 2017), July 10 - July 16, Austin, Texas
28 changes: 0 additions & 28 deletions create_python_envs.py

This file was deleted.

7 changes: 0 additions & 7 deletions run_tests.py

This file was deleted.

0 comments on commit 7e8b679

Please sign in to comment.