Coder Social home page Coder Social logo

pip install nvtx on macOs about nvtx HOT 3 OPEN

nvidia avatar nvidia commented on September 22, 2024
pip install nvtx on macOs

from nvtx.

Comments (3)

jcohen-nvidia avatar jcohen-nvidia commented on September 22, 2024

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?

from nvtx.

gougouasmi avatar gougouasmi commented on September 22, 2024

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.

from nvtx.

shwina avatar shwina commented on September 22, 2024

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?

from nvtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.