Skip to content

Commit

Permalink
Merge pull request #96 from hariharan-devarajan/dev
Browse files Browse the repository at this point in the history
Release v0.0.7
  • Loading branch information
hariharan-devarajan authored Jun 26, 2024
2 parents 3be111c + a32e1c5 commit e47ec47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ name: Upload Python Package
on:
release:
types: [published]

permissions:
contents: read

Expand All @@ -36,7 +35,7 @@ jobs:
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
pip install build wheel auditwheel pybind11 patchelf setuptools
- name: Build wheel package
run: |
export DLIO_PROFILER_WHEEL=1
Expand All @@ -50,7 +49,8 @@ jobs:
echo $LD_LIBRARY_PATH
auditwheel show dist/*.whl
platform=$(auditwheel show dist/*.whl | grep manylinux_ | awk -F'"' '{print $2}')
echo $platform
auditwheel show dist/*.whl | grep manylinux_
echo "Platform selected is $platform"
auditwheel repair --plat $platform dist/*.whl -w dist/
rm dist/*linux_x86_64.whl
rm dist/*.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion dependency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ install_external_project(cpp-logger https://github.com/hariharan-devarajan/cpp-l
install_external_project(gotcha https://github.com/LLNL/GOTCHA.git 1.0.7 ${CMAKE_INSTALL_PREFIX} "")
install_external_project(brahma https://github.com/hariharan-devarajan/brahma.git v0.0.5 ${CMAKE_INSTALL_PREFIX} "")
install_external_project(yaml-cpp https://github.com/jbeder/yaml-cpp.git yaml-cpp-0.6.3 ${CMAKE_INSTALL_PREFIX} "-DYAML_CPP_BUILD_TESTS=OFF;-DYAML_BUILD_SHARED_LIBS=ON")
install_external_project(pybind11 https://github.com/pybind/pybind11.git v2.12.0 ${CMAKE_INSTALL_PREFIX} "")
install_external_project(pybind11 https://github.com/pybind/pybind11.git v2.12.0 ${CMAKE_INSTALL_PREFIX} "-DPYBIND11_TEST=OFF")
add_dependencies(yaml-cpp brahma)
add_dependencies(brahma cpp-logger)
add_dependencies(brahma gotcha)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
"Programming Language :: Python :: 3 :: Only",
],
install_requires=["pybind11"],
requires=["pybind11"],
requires=["pybind11","setuptools"],
keywords="profiler, deep learning, I/O, benchmark, NPZ, pytorch benchmark, tensorflow benchmark",
project_urls={ # Optional
"Bug Reports": "https://github.com/hariharan-devarajan/dlio-profiler/issues",
Expand Down
6 changes: 3 additions & 3 deletions src/dlio_profiler/core/dlio_profiler_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void dlio_profiler::DLIOProfilerCore::initialize(bool _bind,
}
DLIO_PROFILER_LOGDEBUG("Exec command line %s", exec_file_name);
auto items = split(exec_file_name, SEPARATOR);
for (const auto item : items) {
for (const auto &item : items) {
if (strstr(item.c_str(), "python") == nullptr) {
exec_name = basename(item.c_str());
break;
Expand All @@ -185,7 +185,7 @@ void dlio_profiler::DLIOProfilerCore::initialize(bool _bind,
if (bind) {
if (conf->io) {
auto trie = dlio_profiler::Singleton<Trie>::get_instance();
const char *ignore_extensions[2] = {"pfw", "py"};
const char *ignore_extensions[3] = {".pfw", ".py",".pfw.gz"};
const char *ignore_prefix[8] = {"/pipe", "/socket", "/proc",
"/sys", "/collab", "anon_inode",
"socket", "/var/tmp"};
Expand Down Expand Up @@ -246,4 +246,4 @@ TimeResolution dlio_profiler::DLIOProfilerCore::get_time() {
"");
}
return -1;
}
}

0 comments on commit e47ec47

Please sign in to comment.