CUDA Enabled
"Solve Maxwell's equations faster than Maxwell"
Accelerate your CEM Workloads with CUDA
Introducing the CUDA-enabled version of glimy, now you can significantly accelerate your CEM (Computational Electromagnetics) workloads while maintaining backwards compatibility. To take advantage of this feature, follow the steps below:
-
Install the latest versions of glimy and cupy. You can find installation instructions for cupy here. Please note that cupy is only required if you want to utilize the GPU; otherwise, you can use it in CPU-only mode.
-
Ensure that your computer has the necessary GPU drivers and CUDA installed correctly.
To utilize the GPU for your CEM workloads, follow these steps:
-
Call
Continuum.build(gpu_flag=1)
to enable GPU acceleration. -
Use
Continuum.Render(backend="cupy")
to render your CEM simulations using the cupy backend.
For a practical example of utilizing the GPU with glimy, you can refer to the following example: https://github.com/alihakimtaskiran/Glimy/blob/main/examples/7-GPU.py.
With these optimizations, you can leverage the power of CUDA and experience significantly faster CEM computations.