Skip to main content

G-Watch is a toolbox for GPU profiling and program analysis.

Project description

G-Watch

nvidia nvidia

G-Watch is a toolbox for agentic GPU kernel optimization. It features rich Profiling capabilities on both NVIDIA and AMD GPUs. Additionally, G-Watch offers Program Analysis tools for inspecting compiler-generated GPU binaries, facilitating secondary development tasks such as register analysis and binary instrumentation.

⚙️ Build and Installation

Option 1. Direct Install

You can install G-Watch directly from PyPI:

# install gwatch
pip install gwatch

# install gwatch skills for codex/claude/gemini-cli
gwatch install_skill

Option 2. Build from Source with Conda

You can set up the development environment directly on your host machine using Conda.

  1. Clone this repository

    git clone --recursive https://github.com/mars-compute-ai/G-Watch-dev.git
    cd G-Watch-dev
    
  2. Create and activate a conda environment

    conda create -n gw312 python=3.12 gcc_linux-64=13 gxx_linux-64=13 sysroot_linux-64=2.34 -c conda-forge
    conda activate gw312
    
  3. Install system dependencies and build tools via Conda

    conda install -c conda-forge gcc_linux-64 gxx_linux-64 cmake make meson pkg-config \
        eigen elfutils libwebsockets libprotobuf=4.25.1 protobuf=4.25.1 libcurl openssl libdwarf \
        sqlite nlohmann_json pybind11_json pybind11 yaml-cpp
    
    cd $CONDA_PREFIX/lib/
    ln -sf libprotobuf.so.25.1.0 libprotobuf.so.25
    
  4. Install Python dependencies

    pip3 install pytest perfetto PyYAML tqdm packaging loguru PrettyTable matplotlib pandas ninja==1.11.1.3
    pip3 install torch torchvision torchaudio
    
  5. Build and install python package from source

    # export conda environment variables for linking
    export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
    
    # build and install gwatch
    python3 setup.py clean  
    python3 setup.py bdist_wheel
    pip3 install dist/gwatch*.whl
    
    # install gwatch skills for codex/claude/gemini-cli
    gwatch install_skill
    

📃 Usage

In your Code Agent, use G-Watch skills, and run


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gwatch-0.0.11-cp312-cp312-manylinux_2_34_x86_64.whl (33.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file gwatch-0.0.11-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for gwatch-0.0.11-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7e29ac10ec9a6225e4c2256143044d7bb4dbc09b7650f0a6eb937d5d975e3a31
MD5 4455cf251ac6967adf99037699bb86c0
BLAKE2b-256 f74b217859bce82c64ece75e7abb7b29fcf9a7634a31f482e7407a565fff4fff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page