Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install nvtx on macOs #80

Open
gougouasmi opened this issue Sep 8, 2023 · 3 comments
Open

pip install nvtx on macOs #80

gougouasmi opened this issue Sep 8, 2023 · 3 comments
Labels

Comments

@gougouasmi
Copy link

Hello! I'm trying to install nvtx on macOs using pip. I've attached error messages as .txt files (attempts using python3.7, 3.8 and 3.9)
py37_nvtx_pip_attempt.txt
py38_nvtx_pip_attempt.txt
py39_nvtx_pip_attempt.txt

@jcohen-nvidia
Copy link
Collaborator

Hi gougouasmi,

NVTX is not supported on macOS. NVIDIA's developer tools (e.g. Nsight Systems, Nsight Compute, etc.) do not support macOS as a target platform (i.e. where you run a program and capture data from it), so there's nothing your NVTX calls would do on macOS anyway. Are you just trying to get the source on your Mac to write code that you intend to run or Linux or Windows?

@gougouasmi
Copy link
Author

Thank you for the prompt reply @jcohen-nvidia ! You're right. I thought I could still profile python codes running on my mac's CPU. I didn't think this through.

@shwina
Copy link
Contributor

shwina commented Sep 18, 2023

Hi @gougouasmi -- there are two issues here that need to be resolved:

  1. Python 3.7 is no longer supported by NVTX and other Python packages. You should try Python 3.8+.
  2. We don't provide pre-built NVTX packages for Mac. Thus, pip is going to try to download the nvtx Python source code and build it from scratch. When attempting to do that, it will need to find the NVTX C headers. Presumably those are not installed on your system. The commands below will clone this repository, which includes both the nvtx Python source as well as the C headers, and build the Python package using both:
git clone https://github.com/NVIDIA/NVTX
cd NVTX/python
C_INCLUDE_PATH=../c/include/ pip install .

Can you try that and let us know how it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants