This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
170 additions
and
81 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 |
---|---|---|
@@ -1,64 +1,40 @@ | ||
jobs: | ||
- job: Windows | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
steps: | ||
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
displayName: Add conda to PATH | ||
|
||
- script: conda create -q -y -n CB python=3.7 conda-build conda-verify vc vs2015_runtime vs2015_win-64 | ||
displayName: Create Anaconda environment | ||
- template: buildscripts/azure-template-windows.yml | ||
parameters: | ||
name: Windows | ||
vmImage: vs2017-win2016 | ||
matrix: | ||
py37_np116_numpes2: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '2' | ||
PYTHON_VER: '3.7' | ||
NUMPY_VER: '1.16' | ||
|
||
- script: | | ||
call activate CB | ||
conda build --python 3.7 --override-channels -c numba -c conda-forge -c defaults -c intel --output-folder=. buildscripts/hpat-conda-recipe/ | ||
displayName: conda build | ||
py37_np116_wheel_numpes2: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '2' | ||
PYTHON_VER: '3.7' | ||
NUMPY_VER: '1.16' | ||
HPAT_WHEELS: 'True' | ||
|
||
- template: buildscripts/azure-template-linux-macos.yml | ||
parameters: | ||
name: macOS | ||
vmImage: xcode9-macos10.13 | ||
matrix: | ||
py37_numpes0: | ||
CONDA_ENV: 'travisci' | ||
PYTHON_VER: '3.7' | ||
|
||
py37_numpes2: | ||
py37_np116_numpes2: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '2' | ||
PYTHON_VER: '3.7' | ||
NUMPY_VER: '1.16' | ||
|
||
- template: buildscripts/azure-template-linux-macos.yml | ||
parameters: | ||
name: Linux | ||
vmImage: ubuntu-16.04 | ||
matrix: | ||
py36_numpes0: | ||
CONDA_ENV: 'travisci' | ||
PYTHON_VER: '3.6' | ||
|
||
py36_numpes3: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '3' | ||
PYTHON_VER: '3.6' | ||
|
||
py37_numpes0: | ||
CONDA_ENV: 'travisci' | ||
PYTHON_VER: '3.7' | ||
|
||
py37_numpes1: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '1' | ||
PYTHON_VER: '3.7' | ||
|
||
py37_numpes2: | ||
py37_np116_numpes2: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '2' | ||
PYTHON_VER: '3.7' | ||
|
||
py37_numpes3: | ||
CONDA_ENV: 'travisci' | ||
HPAT_NUM_PES: '3' | ||
PYTHON_VER: '3.7' | ||
NUMPY_VER: '1.16' |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
parameters: | ||
name: '' | ||
vmImage: '' | ||
matrix: [] | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
timeoutInMinutes: 120 | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
maxParallel: 11 | ||
matrix: | ||
${{ insert }}: ${{ parameters.matrix }} | ||
|
||
steps: | ||
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
displayName: Add conda to PATH | ||
|
||
- script: conda create -q -y -n %CONDA_ENV% python=%PYTHON_VER% conda-build conda-verify vc vs2015_runtime vs2015_win-64 | ||
displayName: Create Anaconda environment | ||
|
||
- script: | | ||
call activate %CONDA_ENV% | ||
%HPAT_WHEELS_DIR% = %~dp0\hpat-wheels | ||
echo %HPAT_WHEELS_DIR% | ||
mkdir %HPAT_WHEELS_DIR% | ||
conda build --python %PYTHON_VER% --numpy=%NUMPY_VER% --override-channels -c numba -c conda-forge -c defaults -c intel buildscripts/hpat-conda-recipe/ | ||
displayName: conda build |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
source activate $CONDA_ENV | ||
|
||
conda build --python $PYTHON_VER -c numba -c conda-forge -c defaults --override-channels ./buildscripts/hpat-conda-recipe/ | ||
conda build --python $PYTHON_VER --numpy=$NUMPY_VER -c numba -c conda-forge -c defaults --override-channels ./buildscripts/hpat-conda-recipe/ |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
source activate $CONDA_ENV | ||
|
||
echo "======================================================================" | ||
echo Executing clang-format-6.0 style: | ||
echo "======================================================================" | ||
python ./setup.py style | ||
|
||
echo "======================================================================" | ||
echo Executing python flake8: | ||
echo "======================================================================" | ||
flake8 ./ |
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
echo on | ||
|
||
set HDF5_DIR="%LIBRARY_PREFIX%" | ||
REM set OPENCV_DIR="%LIBRARY_PREFIX%" | ||
REM set DAALROOT="%LIBRARY_PREFIX%" | ||
"%PYTHON%" setup.py build install --single-version-externally-managed --record=record.txt | ||
if errorlevel 1 exit 1 | ||
|
||
|
||
REM "%PYTHON%" setup.py build_doc | ||
REM if errorlevel 1 exit 1 | ||
REM "%PYTHON%" setup.py build_devdoc | ||
REM if errorlevel 1 exit 1 | ||
@rem Build HPAT wheel | ||
echo Build HPAT wheel | ||
IF "%HPAT_WHEELS%" == "True" ( | ||
"%PYTHON%" setup.py bdist_wheel | ||
if errorlevel 1 exit 1 | ||
copy dist\hpat*.whl "%HPAT_WHEELS_DIR%" | ||
if errorlevel 1 exit 1 | ||
) |
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# LDSHARED="mpicxx -cxx=$GXX -shared" LD="mpicxx -cxx=$GXX" \ | ||
# CC="mpicxx -cxx=$GXX -std=c++11" GXX="mpicxx -cxx=$GXX -std=c++11" \ | ||
# OPENCV_DIR="${PREFIX}" DAALROOT="${PREFIX}" | ||
set -ex | ||
|
||
HDF5_DIR="${PREFIX}" MACOSX_DEPLOYMENT_TARGET=10.9 \ | ||
$PYTHON setup.py build install --single-version-externally-managed --record=record.txt | ||
|
||
#Build Documentation | ||
#$PYTHON setup.py build_doc | ||
#$PYTHON setup.py build_devdoc | ||
if [ "$HPAT_WHEELS" == "True" ]; then | ||
if [ -z "$HPAT_WHEELS_DIR" ]; then | ||
echo "Please set HPAT_WHEELS_DIR to build HPAT wheels" | ||
else | ||
# Build HPAT wheel | ||
echo Build HPAT wheel | ||
$PYTHON setup.py bdist_wheel | ||
cp dist/hpat*.whl "$HPAT_WHEELS_DIR" | ||
fi | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -ex | ||
|
||
export NUMBA_DEVELOPER_MODE=1 | ||
export NUMBA_DISABLE_ERROR_MESSAGE_HIGHLIGHTING=1 | ||
export PYTHONFAULTHANDLER=1 | ||
|
||
python -m hpat.tests.gen_test_data | ||
|
||
#Link check for Documentation using Sphinx's in-built linkchecker | ||
#sphinx-build -b linkcheck -j1 usersource _build/html | ||
if [ "$HPAT_WHEELS" == "True" ]; then | ||
conda remove -y hpat | ||
pip install ${HPAT_WHEELS_DIR}/hpat*.whl | ||
python -c "import hpat" | ||
fi | ||
|
||
# TODO investigate root cause of NumbaPerformanceWarning | ||
# http://numba.pydata.org/numba-doc/latest/user/parallel.html#diagnostics | ||
if [ -z "$HPAT_NUM_PES" ]; then | ||
python -W ignore -u -m hpat.runtests -v | ||
if [ "$HPAT_RUN_COVERAGE" == "True" ]; then | ||
coverage erase | ||
coverage run --source=${PREFIX}/lib/python3.7/site-packages/hpat --omit ${PREFIX}/lib/python3.7/site-packages/hpat/ml/*,${PREFIX}/lib/python3.7/site-packages/hpat/xenon_ext.py,${PREFIX}/lib/python3.7/site-packages/hpat/ros.py,${PREFIX}/lib/python3.7/site-packages/hpat/cv_ext.py,${PREFIX}/lib/python3.7/site-packages/hpat/tests/* ${PREFIX}/lib/python3.7/site-packages/hpat/runtests.py | ||
coveralls -v | ||
else | ||
mpiexec -n $HPAT_NUM_PES python -W ignore -u -m hpat.runtests -v | ||
#Link check for Documentation using Sphinx's in-built linkchecker | ||
#sphinx-build -b linkcheck -j1 usersource _build/html | ||
|
||
# TODO investigate root cause of NumbaPerformanceWarning | ||
# http://numba.pydata.org/numba-doc/latest/user/parallel.html#diagnostics | ||
if [ -z "$HPAT_NUM_PES" ]; then | ||
python -W ignore -u -m hpat.runtests -v | ||
else | ||
mpiexec -n $HPAT_NUM_PES python -W ignore -u -m hpat.runtests -v | ||
fi | ||
fi |
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