10. GPU Acceleration¶
Estimated time: 15 minutes
Learn how to use GPU acceleration with Annie (if supported).
Steps¶
- Check GPU support:
- Ensure your hardware and drivers are compatible.
- Enable GPU usage:
- Set the appropriate flag or environment variable.
Example¶
# Example only if GPU support is available
index = AnnIndex(128, Distance.EUCLIDEAN, use_gpu=True)