Selecting the backend
JustRelax.jl supports three backends: the default CPU backend, and two GPU backends for Nvidia and AMD GPUs. The default CPU backend is selected upon loading JustRelax:
julia
using JustRelaxThe GPU backends are implemented as extensions, and can be selected upon loading the appropriate GPU package before loading JustRelax. If running on Nvidia or AMD GPUs, use the CUDA.jl or the AMDGPU.jl package, respectively:
julia
using CUDA, JustRelaxjulia
using AMDGPU, JustRelaxTwo and three dimensional solvers are implemented in different submodules, which also need to be loaded:
julia
using JustRelax.JustRelax2Djulia
using JustRelax.JustRelax3D