{ "cells": [ { "cell_type": "markdown", "id": "ebf84a5d", "metadata": {}, "source": [ "# Clustering by GPU" ] }, { "cell_type": "markdown", "id": "d1c73b52", "metadata": {}, "source": [ "After trying dozens of technologies, we find that GPU acceleration is the most efficient way to speed up clustering currently. " ] }, { "cell_type": "markdown", "id": "1fa4869d", "metadata": {}, "source": [ "## Requirements" ] }, { "cell_type": "markdown", "id": "81d80acc", "metadata": {}, "source": [ "### CUDA installation" ] }, { "cell_type": "markdown", "id": "553f4135", "metadata": {}, "source": [ " Linux" ] }, { "cell_type": "markdown", "id": "0de02191", "metadata": {}, "source": [ "Linux users follow the guide, [NVIDIA CUDA Installation Guide for Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/) to install CUDA." ] }, { "cell_type": "markdown", "id": "f2a19a6d", "metadata": {}, "source": [ " Windows" ] }, { "cell_type": "markdown", "id": "57fc490f", "metadata": {}, "source": [ "Installation of CUDA on Windows is a bit more complicated, because Stereopy is not supported on Windows now. Following the guide [CUDA on WSL User Guide](https://docs.nvidia.com/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl), you can run Stereopy with GPU option on WSL." ] }, { "cell_type": "markdown", "id": "a2b6957b", "metadata": {}, "source": [ "### RAPIDS on Anaconda" ] }, { "cell_type": "markdown", "id": "6c54f9b2", "metadata": {}, "source": [ "Select the correct version on the homepage of [RAPIDS' official website](https://rapids.ai/start.html). Run following command to build up a specific environment:\n", "\n", " conda create -y -n stereopy-rapids -c rapidsai -c conda-forge -c nvidia python=3.8 rapids=23.04.01 cuda-version=11.8" ] }, { "cell_type": "markdown", "id": "5a8032a2", "metadata": {}, "source": [ "