forked from IntelPython/dpbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'IntelPython:main' into main
- Loading branch information
Showing
27 changed files
with
231 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,15 +55,13 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: "build" | ||
auto-activate-base: true | ||
activate-environment: "" | ||
channels: ${{ env.CHANNELS }} | ||
channel-priority: "disabled" | ||
run-post: false | ||
miniforge-version: latest | ||
|
||
- name: Disable defautls | ||
run: conda config --remove channels defaults | ||
|
@@ -74,18 +72,21 @@ jobs: | |
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\" '/' >> $GITHUB_ENV | ||
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV | ||
# boa is an extention to conda so we can use mamba resolver in conda build | ||
- name: Install conda-build | ||
run: mamba install boa | ||
run: conda install conda-build | ||
|
||
- name: Configure MSBuild | ||
if: runner.os == 'Windows' | ||
uses: microsoft/[email protected] | ||
with: | ||
vs-version: '14.35' | ||
|
||
- name: Show conda-rc | ||
shell: bash -el {0} | ||
run: cat ~/.condarc | ||
|
||
- name: Build conda package | ||
run: conda mambabuild --no-test --python ${{ matrix.python }} conda-recipe | ||
run: conda build --python ${{ matrix.python }} conda-recipe | ||
|
||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
|
@@ -122,15 +123,13 @@ jobs: | |
|
||
steps: | ||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: "build" | ||
channels: ${{ env.CHANNELS }} | ||
channel-priority: "disabled" | ||
run-post: false | ||
miniforge-version: latest | ||
|
||
- name: Disable defautls | ||
run: conda config --remove channels defaults | ||
|
@@ -159,7 +158,7 @@ jobs: | |
# Needed to be able to run conda index | ||
- name: Install conda-build | ||
run: mamba install conda-build conda-index | ||
run: conda install conda-build conda-index | ||
|
||
- name: Create conda channel | ||
run: python -m conda_index ${{ env.CHANNEL_PATH }} | ||
|
@@ -170,7 +169,7 @@ jobs: | |
cat ${{ env.VER_JSON_PATH }} | ||
- name: Install dpbench | ||
run: mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest intel::intel-opencl-rt python=${{ matrix.python }} -c ${{ env.CHANNEL_PATH }} | ||
run: conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest intel::intel-opencl-rt python=${{ matrix.python }} -c ${{ env.CHANNEL_PATH }} | ||
|
||
- name: Setup OpenCL CPU device | ||
if: runner.os == 'Windows' | ||
|
@@ -197,11 +196,11 @@ jobs: | |
# we want to make sure that configuration files are geting populated | ||
- name: Run npbench benchmark | ||
run: | | ||
dpbench -i numpy -b azimint_hist run --npbench --precision=${{matrix.precision}} | ||
dpbench -i numpy -b azimint_hist run --experimental-npbench --precision=${{matrix.precision}} | ||
- name: Run rodinia benchmark | ||
run: | | ||
dpbench run --rodinia --no-dpbench --no-validate -r 1 --precision=${{matrix.precision}} | ||
dpbench run --experimental-rodinia --no-dpbench --no-validate -r 1 --precision=${{matrix.precision}} | ||
upload_anaconda: | ||
name: Upload dppy/label/dev ['${{ matrix.os }}', python='${{ matrix.python }}'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.