Comments (11)
Ah -- thanks. We don't have pre-built wheels for Python 3.9 just yet. I just opened #49 to address this. Once that's merged, I'll push the wheels onto PyPI and update here.
from nvtx.
Thanks, and apologies for the delay. I'll aim to get it merged in today.
from nvtx.
Thanks for reporting. Is there any more information reported indicating exactly what went wrong in the pip install
command?
from nvtx.
#12 6.576 Successfully installed distlib-0.3.4
#12 6.576 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#12 7.169 Collecting nvtx
#12 7.198 Downloading nvtx-0.2.3.tar.gz (10 kB)
#12 7.377 Installing build dependencies: started
#12 11.60 Installing build dependencies: finished with status 'done'
#12 11.60 Getting requirements to build wheel: started
#12 12.21 Getting requirements to build wheel: finished with status 'done'
#12 12.22 Preparing metadata (pyproject.toml): started
#12 12.69 Preparing metadata (pyproject.toml): finished with status 'done'
#12 12.69 Building wheels for collected packages: nvtx
#12 12.69 Building wheel for nvtx (pyproject.toml): started
#12 13.24 Building wheel for nvtx (pyproject.toml): finished with status 'error'
#12 13.24 ERROR: Command errored out with exit status 1:
#12 13.24 command: /usr/bin/python3.9 /usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmphinsk2ir
#12 13.24 cwd: /tmp/pip-install-49av2fr8/nvtx_482cf1aeddd34265aa84388a242a4646
#12 13.24 Complete output (25 lines):
#12 13.24 running bdist_wheel
#12 13.24 running build
#12 13.24 running build_py
#12 13.24 creating build
#12 13.24 creating build/lib.linux-x86_64-3.9
#12 13.24 creating build/lib.linux-x86_64-3.9/nvtx
#12 13.24 copying nvtx/nvtx.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24 copying nvtx/colors.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24 copying nvtx/__init__.py -> build/lib.linux-x86_64-3.9/nvtx
#12 13.24 creating build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24 copying nvtx/_lib/__init__.py -> build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24 creating build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24 copying nvtx/utils/cached.py -> build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24 copying nvtx/utils/__init__.py -> build/lib.linux-x86_64-3.9/nvtx/utils
#12 13.24 copying nvtx/_lib/lib.pxd -> build/lib.linux-x86_64-3.9/nvtx/_lib
#12 13.24 running build_ext
#12 13.24 creating build/temp.linux-x86_64-3.9
#12 13.24 creating build/temp.linux-x86_64-3.9/nvtx
#12 13.24 creating build/temp.linux-x86_64-3.9/nvtx/_lib
#12 13.24 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python3.9 -c nvtx/_lib/lib.c -o build/temp.linux-x86_64-3.9/nvtx/_lib/lib.o
#12 13.24 nvtx/_lib/lib.c:701:10: fatal error: nvtx3/nvToolsExt.h: No such file or directory
#12 13.24 #include "nvtx3/nvToolsExt.h"
#12 13.24 ^~~~~~~~~~~~~~~~~~~~
#12 13.24 compilation terminated.
#12 13.24 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
#12 13.24 ----------------------------------------
#12 13.24 ERROR: Failed building wheel for nvtx
#12 13.24 Failed to build nvtx
#12 13.24 ERROR: Could not build wheels for nvtx, which is required to install pyproject.toml-based projects
from nvtx.
Hey, is there anything I can do to expedite the PR merge?
from nvtx.
Hi @golanor - could you please confirm that the pip install
now works?
from nvtx.
Still fails:
× Building wheel for nvtx (pyproject.toml) did not run successfully.
#13 100.4 │ exit code: 1
#13 100.4 ╰─> [10 lines of output]
#13 100.4 running bdist_wheel
#13 100.4 running build
#13 100.4 running build_py
#13 100.4 running build_ext
#13 100.4 building 'nvtx._lib.lib' extension
#13 100.4 nvtx/_lib/lib.c:701:10: fatal error: nvtx3/nvToolsExt.h: No such file or directory
#13 100.4 #include "nvtx3/nvToolsExt.h"
#13 100.4 ^~~~~~~~~~~~~~~~~~~~
#13 100.4 compilation terminated.
#13 100.4 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
#13 100.4 [end of output]
#13 100.4
#13 100.4 note: This error originates from a subprocess, and is likely not a problem with pip.
from nvtx.
Could I please see the full output?
from nvtx.
Hmm it could be because you're on Ubuntu 18.04. I'll try to repro in this docker container and report back.
from nvtx.
Hi @golanor, as a workaround try building your image from NGC PyTorch image(docker pull nvcr.io/nvidia/pytorch:22.01-py3
) rather than Cuda image. There is nvtx
already pre-installed for Python 3.8.12
from nvtx.
Hi @golanor, as a workaround try building your image from NGC PyTorch image(
docker pull nvcr.io/nvidia/pytorch:22.01-py3
) rather than Cuda image. There isnvtx
already pre-installed for Python 3.8.12
Thanks, but installing PyTorch will make my already too bloated docker image even more so.
from nvtx.
Related Issues (20)
- Provide mechanism to disable Python NVTX ranges HOT 3
- Documentation for the tool-side interface
- Python nvtx.push_range function missing category argument HOT 3
- `end_range` should be templated with the domain and use `nvtxDomainRangeEnd` HOT 10
- Functions missing the `noexcept` specifier
- Deleting the default constructor of some classes HOT 3
- Implement the `NVTX3_FUNC_RANGE_IF_IN` and `NVTX3_FUNC_RANGE_IF` macros HOT 8
- Implement `domain_process_range` without storing the handle in `std::unique_ptr` HOT 1
- Compilation error when if `NVTX_DISABLE` is defined
- Rename range classes HOT 2
- Building wheel for nvtx (PEP 517) ... error HOT 13
- error: declaration of template parameter ‘D’ shadows template parameter HOT 1
- NVTX C++ availability HOT 2
- Failed to build nvtx HOT 3
- scoped_range does not work with domain::global HOT 1
- `nvToolsExt.h` defines min/max macros on Windows HOT 2
- NvToolExt_LIBRARIES-NOTFOUND
- how can i get nvToolsExt64_1.dll and nvToolsExt64_1.lib
- Python 3.11 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvtx.