Installation
Requirements
Python 3.8 or later
C++17 compatible compiler (GCC 9+, Clang 10+, or MSVC 2019+)
CUDA Toolkit 11.0 or later (optional, for GPU acceleration)
CMake 3.18 or later
Cython 0.29 or later
Dependencies
The framework requires the following Python packages:
numpy
torch (PyTorch)
cython
Building from Source
Warning
Do not attempt to compile the main package directly. Use the provided build scripts.
git clone https://github.com/woywoy123/AnalysisG.git
cd AnalysisG
pip install -e .
CUDA Support
To build with CUDA support, ensure that:
CUDA Toolkit is installed and available in your PATH
The
nvcccompiler is accessibleCMake can detect your CUDA installation
The build system will automatically detect CUDA and enable GPU-accelerated operations if available.
Verifying Installation
To verify that AnalysisG is installed correctly:
import AnalysisG
print(AnalysisG.__version__)
Troubleshooting
If you encounter build errors:
Ensure all dependencies are installed
Check that your compiler supports C++17
Verify CUDA installation (if using GPU features)
Check CMake configuration output for errors