From f0ef949eec27ac689180482c6215d033646ba437 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Thu, 5 Oct 2023 08:55:39 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index c586b81..c4a50d0 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,18 @@ Pkg.add(url="https://github.com/gher-uliege/DINCAE.jl", rev="main") Pkg.add(url="https://github.com/gher-uliege/DINCAE_utils.jl", rev="main") ``` +### CUDA support + +To enable (optional) CUDA support on NVIDIA GPUs one need to install also the packages `CUDA` and `cuDNN`: + +```julia +using Pkg +Pkg.add("CUDA") +Pkg.add("cuDNN") +``` + +With some adaptions to DINCAE.j, one can probably also use AMD GPUs (with the package `AMDGPU`) and Apple Silicon (with the package `Metal`). PRs to implement support of these GPUs would be very welcome. + After this, you should be able to load `DINCAE` with: ``` julia @@ -58,6 +70,7 @@ using DINCAE ``` #### Checking CUDA installation + To confirm that `CUDA` is functional to use the GPU (otherwise the CPU is used and the code will be much slower), the following command: ```julia CUDA.functional()