G-Watch is a toolbox for GPU profiling and program analysis.
Project description
G-Watch
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.
-
Clone this repository
git clone --recursive https://github.com/mars-compute-ai/G-Watch-dev.git cd G-Watch-dev
-
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
-
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
-
Install Python dependencies
pip3 install pytest perfetto PyYAML tqdm packaging loguru PrettyTable matplotlib pandas ninja==1.11.1.3 pip3 install torch torchvision torchaudio
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gwatch-0.0.11-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: gwatch-0.0.11-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 33.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e29ac10ec9a6225e4c2256143044d7bb4dbc09b7650f0a6eb937d5d975e3a31
|
|
| MD5 |
4455cf251ac6967adf99037699bb86c0
|
|
| BLAKE2b-256 |
f74b217859bce82c64ece75e7abb7b29fcf9a7634a31f482e7407a565fff4fff
|