Skip to content

Commit

Permalink
Merge pull request #92 from hariharan-devarajan/dev
Browse files Browse the repository at this point in the history
Release v0.0.6
  • Loading branch information
hariharan-devarajan authored Jun 18, 2024
2 parents 08f1a43 + 13a812d commit 3be111c
Show file tree
Hide file tree
Showing 38 changed files with 3,064 additions and 962 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install ${CC} ${CXX} libtool-bin openmpi-bin libopenmpi-dev
sudo apt-get install python3.9 python3-pip
sudo apt-get install python3 python3-pip python3-dev
sudo apt-get install gcovr clang-format
sudo pip install --upgrade pip
Expand Down
76 changes: 38 additions & 38 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,47 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.7','3.8','3.9','3.10']
os: [ubuntu-20.04, ubuntu-22.04]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
name: ${{ matrix.python }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ libtool-bin openmpi-bin libopenmpi-dev
python -m pip install --upgrade pip
pip install build wheel auditwheel pybind11 patchelf
- name: Build wheel package
run: |
export DLIO_PROFILER_WHEEL=1
python setup.py bdist_wheel
python setup.py sdist
gotcha_so=$(find . -name libgotcha.so.2)
path=`dirname $gotcha_so`
path=`dirname $path`
echo $path
export LD_LIBRARY_PATH=$PWD/$path/lib:$PWD/$path/lib64:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
auditwheel show dist/*.whl
platform=$(auditwheel show dist/*.whl | grep manylinux_ | awk -F'"' '{print $2}')
echo $platform
auditwheel repair --plat $platform dist/*.whl -w dist/
rm dist/*linux_x86_64.whl
rm dist/*.tar.gz
- name: Build source package
if: matrix.os == 'ubuntu-20.04' && matrix.python == '3.7'
run: |
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ libtool-bin openmpi-bin libopenmpi-dev
python -m pip install --upgrade pip
pip install build wheel auditwheel pybind11 patchelf
- name: Build wheel package
run: |
export DLIO_PROFILER_WHEEL=1
python setup.py bdist_wheel
python setup.py sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
gotcha_so=$(find . -name libgotcha.so.2)
path=`dirname $gotcha_so`
path=`dirname $path`
echo $path
export LD_LIBRARY_PATH=$PWD/$path/lib:$PWD/$path/lib64:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
auditwheel show dist/*.whl
platform=$(auditwheel show dist/*.whl | grep manylinux_ | awk -F'"' '{print $2}')
echo $platform
auditwheel repair --plat $platform dist/*.whl -w dist/
rm dist/*linux_x86_64.whl
rm dist/*.tar.gz
- name: Build source package
if: matrix.os == 'ubuntu-20.04' && matrix.python == '3.7'
run: |
export DLIO_PROFILER_WHEEL=1
python setup.py sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
50 changes: 34 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,54 @@
*.out
*.app

# IDE
.idea
.vscode/*
.cache

# Environment and Dependency
venv*
build
logs/*.log
.idea
dlio_profiler_py.egg-info
dependency/.spack-env
dependency/spack.lock
/build_env/
/venv-new/
/env.txt

# Build directories
build
/build-dlio/
/build_dlio/
/cmake_example.egg-info/
/examples/.ipynb_checkpoints/
/examples/dlp_analyzer/.ipynb_checkpoints/
/cmake-build-debug/
/cmake-build-debug-1/
/temp/dlio_profiler/
/Testing/Temporary/

# Additional aux files
logs/*.log
/examples/dlp_analyzer/dlp.log
/examples/dlp_analyzer/dlp_analyzer_main.log
/dlp_analyzer/test.pfw.gz.zindex
/dlp_analyzer/dask/run_dir/*.pid
/dlp_analyzer/dask/run_dir/*.json
/build_env/
/cmake-build-debug/
/cmake-build-debug-1/
/data/unet3d/
/dist/
/dlp_analyzer/dask/logs/*.log
/output/
/dlp_analyzer/.nfs*
/hydra_log/unet3d/
/temp/dlio_profiler/
/Testing/Temporary/
/venv-new/
/*.core
/env.txt
/STDERR
install
__pycache__
dlio_profiler/__pycache__

# Install files
dlio_profiler_py.egg-info
/dist/
/output/

# Python checkpoints
/examples/.ipynb_checkpoints/
/examples/dlp_analyzer/.ipynb_checkpoints/

# Debug files
/*.core

6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cmake.configureArgs": [
"-DDLIO_PROFILER_INSTALL_DEPENDENCIES=OFF",
"-DCMAKE_INSTALL_PREFIX=/usr/workspace/haridev/dlio-profiler-1/install"
]
}
Loading

0 comments on commit 3be111c

Please sign in to comment.