GPU Ocean codebase.
In order to run this code, you need to have access to a CUDA enabled GPU, with CUDA toolkit and appropriate drivers installed.
If you are on Windows, you also need to have installed Visual Studios and add the path to its bin folder in PATH. This is so that pycuda can find a C++ compiler. The following steps are an example how to yield those steps:
C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64
)We recommend that you set up your python environment using the package manager Conda as follows:
conda-forge
, but to be sure to not violate the anaconda licence you can remove the default channel by
conda config --remove channels defaults
Or install miniforge instead, which "holds a minimal installer for Conda specific to conda-forge."
conda install -c conda-forge jupyter
conda install -c conda-forge nb_conda_kernels
conda env create -f conda_environment.yml
conda activate gpuocean
pip3 install --trusted-host files.pythonhosted.org --no-deps -U pycuda
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-fonts-recommended dvipng cm-super
You should now be able to start a jupyter notebook server, open one of our notebooks, select the conda environment 'gpuocean' as kernel, and run the code.
Have fun!
cd <project root directory>
wget -r -np -nH -R "index.html*" -X icons http://gpu-ocean.met.no/gpu_ocean
More information can be found in the wiki pages