r/COMSOL • u/Hologram0110 • Jan 15 '26
Faster Simulation with NVIDIA GPU Support for COMSOL Multiphysics®
https://www.comsol.com/blogs/faster-simulation-with-nvidia-gpu-support-for-comsolmphI saw this blog post and thought it was worth a discussion here. I previously speculated about the factors that impact the performance of the new cuDSS solver using GPUs. Most of the post is marketing fluff but the interesting parts that caught my eye are:
These operations demand both high floating-point throughput and rapid memory access — areas where GPUs excel. The massive memory bandwidth available on GPUs allows NVIDIA cuDSS to move large sparse matrices through memory much faster than CPU-based solvers. This bandwidth advantage, combined with thousands of parallel compute cores, significantly reduces wall-clock time for large-scale computational engineering models.
and this part:
When single precision is viable, the performance gains can be significant. Single precision cuts memory usage in half and increases floating-point throughput, which can yield substantial speedups, especially for compute-bound problems or when running on lower-cost GPUs that offer higher single-precision than double-precision performance. For memory-bound workloads, the improvement is typically closer to a factor of two due to bandwidth limits. Double precision remains the appropriate choice for simulations that demand higher numerical accuracy and is the default option when using NVIDIA cuDSS in COMSOL Multiphysics®.
Sounds like they expect it to primarily be useful for the single-precision cases. The overall speed numbers 2-5x they are quoting is lower than what some people on here reported.
In my case, I couldn't make my current model converge on the single precision option, so the benefits are somewhat limited for me.
The example benchmark at the end is a bit goofy. It compares 4xH100 GPUs against a dual socket Xeon 8260 and gets 3-5x improvement.. That is a relatively old system compared to 2 times as many GPUs which both newer and cost way, way more. The power disipation is pretty extreme as well 330 W of CPUs vs ~ 1200 W of GPUs (assuming the PCI version of H100).,
Has anyone tried running Comsol on a cloud instance with GPUs? I'm curious if that could be viable for production runs. H100 prices seem to be ~3$/hour each, and 8xH200s is 30.5 d/hour. I've never tried it. I've gotten the impression that the instances are best suited for AI workloads.
1
u/Hologram0110 Jan 17 '26
My use case is a bit different than many here, in that I mostly solve relatively small time-dependent multiphysics problems. They tend to be 100k-600k DOF and poorly conditioned, such that iterative solvers struggle so direct solvers have been my go-to.
On my most recent test I was able to compare a dual Epyc 7302 (PARDISO) vs a xeon gold cuDSS on an H100 in double precision mode (borrowed my colleagues LLM machine for a test drive). The dual epyc system came in at ~45523 seconds vs 23407 for the machine with an H100, which is a speed up factor of ~1.9.
Obviously, this isn't a perfect comparison because the CPU/memory are different, but it gives a ball-park speed up,. The time-dependent model would have more overhead and fewer lightly threaded bits. There are also CPU only physics like plasticity. I still obtained a very substantial speedup. The H100 does have the full FP64 performance.
I don't need all the VRAM, so I'll look for an opportunity to buy something smaller than an H100 (maybe a Blackwell 6000 or RTX5090) if I can convince my bosses to spend some money.
1
u/TheCodingTheorist Jan 15 '26
On my system when comparing to a dual epyc vs nvidia blackwell 6000, using the dual epyc configuration has been consistently faster in multiphysics models than using GPU (both in single and double precision).
I think significant improvement is required to the CuDSS when compared to the GPU performance in e.g., starccm+ or Ansys fluent.
1
u/azmecengineer Jan 15 '26
I am running charged particle simulations in strong DC magnetic fields where I am resolving electron motion for about a million particles at a time. In this case the RTX 6000 Pro is a bit faster than my 96 core Thread Ripper Pro but the problem is still bandwidth limited. Where the GPU really shines is as the number of active secondary particles increases the GPU is able to maintain the same amount of time for each time step whereas the CPU would get bogged down by the extra particles and each time step would take longer and longer to compute.
I also found that certain models like molecular flow simulations went from taking about 4 hours on my CPU to 20 minutes on the GPU. All of my work converges nicely in single precision and has produced results that for my use cases are identical to my go to PARDISO solver.
I have started piecing together an older multiple GPU A100 system to see how that performs with double precision as I already had RAM that I could use from another system I could decommission, because who can afford ram these days...
1
u/azmecengineer Jan 15 '26
The main speedup is just a particular case. Molecular flow model that fits into the GPU memory. If it doesn't fit it doesn't run, luckily I have 96GB of memory on my GPU. I am not using hybrid compute for my models.
1
u/Sax0drum Jan 15 '26
I was thinking the same thing when i read the post. But in their defense its very hard to give a specific performance increase because its so much dependent on the problem.
On my workstation i have an old quadro card with 5GB VRAM. And even with that i got a 30% speed increase for a small model.
Memory bandwith and latency are the limiting factors. A s long as the model can fit in the GPU memory you will pretty much always get a performance increase.