Ubuntu 20.04 Advanced Install¶
Before starting, follow the steps in Generic SeaRay Installation.
Install Compilers¶
It is a good idea to install both GCC and LLVM compilers first.
sudo apt updatesudo apt install gccsudo apt install llvm clang
System-wide pocl (optional)¶
You can install pocl using apt for all users. If you wish to do this proceed as follows.
Install
poclsystem wide
sudo apt install pocl-opencl-icd libpocl2 ocl-icd-opencl-devIf you created a generic environment already, recreate it without
poclas follows
conda remove -n NAME --allconda create -n NAME -c conda-forge pyopencl scipy matplotlibconda activate NAMEconda install -c conda-forge ocl-icd-system
Support for NVIDIA Graphics¶
sudo apt updatesudo apt install nvidia-opencl-icd nvidia-opencl-devsudo apt update- Activate the conda environment (if not already active)
conda install -c conda-forge ocl-icd-system
Support for AMD Graphics¶
Download the driver for your GPU from the AMD website.
Follow the instructions from AMD to install the driver with OpenCL.
- As of this writing, the link is here. You must specify a command line option
--opencl=palor--opencl=legacydepending on your GPU. You must also use theamdgpu-pro-installvariant of the install script.Activate the conda environment (if not already active)
conda install -c conda-forge ocl-icd-system
Advanced 3D Plotting¶
The SeaRay plotter supports matplotlib and/or mayavi for 3d plotting. The 3D capabilities of matplotlib are at present nonideal (e.g., depth is not properly rendered in all cases). If you want robust 3D plots you should install mayavi.
In some cases mayavi and matplotlib step on each other. If this happens you may need separate environments for each. The plotter is written to sense which library is available and react accordingly.
- Activate your environment.
conda install -c conda-forge mayavi
Interactive Notebooks¶
Activate your environment.
conda install jupyter ipymplCreate a directory
~/.jupyter/custom/and copyraysroot/extras/custom.cssto the new directory.If there are problems with Jupyter notebooks any or all of the following may be tried:
conda install widgetsnbextension=n, wherenis some older version.conda install ipywidgetsjupyter nbextension install --py --sys-prefix widgetsnbextensionjupyter nbextension enable --py --sys-prefix widgetsnbextension