Skip to content
Edward H edited this page Jun 12, 2021 · 4 revisions

Dependencies

Altis relies on CMake to generate Makefiles. The minimum required version for CMake is 3.8. On Ubuntu, simply execute the following instructions to install these packages:

sudo apt install cmake

CUDA Installation

Altis requires CUDA to be installed in the first place. Assume you have the driver installed already, you can download the latest CUDA tooklit from https://developer.nvidia.com/cuda-downloads. Select runfile (local) as the installer type. It possibly works using the deb package installing approach or through the Distro's repository, but it may cause problems during building process so we will stick to the runfile approach for now. After the runfile is downloaded, execute the cuda_<version>_linux.run file (may require sudo). One common problem here is NVIDIA CUDA Compiler (NVCC) included in the toolkit may be incompatible with the gcc version on the host machine. To figure out the supported GCC version for your CUDA installation, please refer to https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html.

After CUDA is successfully installed, set up the environment variable by adding the following lines to your .bashrc file (if you use non-bash shells then add the following lines to the corresponding configuration file).

To set up the PATH variable:

export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}

To set up the LD_LIBRARY_PATH variable:

export LD_LIBRARY_PATH=/usr/local/cuda/lib ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

For more information regarding CUDA installation, please refer to https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile

Make sure the environment variable is recognized by logging off or run source ~/.bashrc for you terminal.

Clone this wiki locally