
COMSOL 6.3 added real GPU acceleration, but only for specific paths. If you know the limits, it’s useful. If you don’t, you’ll chase errors. Here’s a short, honest guide.
Not covered: most other physics interfaces and time‑implicit solvers. Elastic waves, general FEM with continuous elements, and many multiphysics combinations are not GPU‑accelerated in 6.3.
LMCOMSOL_LICENSE_FILE=<port>@<server> in the template’s Environment → Variables.Tip: The pre‑made Ubuntu/PyTorch templates already include a recent CUDA runtime. You still point COMSOL to a CUDA toolkit path it recognizes.
We don’t redistribute COMSOL. Bring it yourself.
Keep license files and installers out of public images. Mount them at runtime.
Run it
comsol batch -inputfile model.mph -study std1 -outputfile out.mph
Verify
nvidia-smi shows utilization and VRAM use during the run.GPU acceleration in 6.3 will refuse to run unless all DOFs in the time‑dependent solver are dG and the interface supports the GPU path. If you see “GPU calculations disabled” or a similar warning:
nvidia-smi. If you hit OOM, coarsen the mesh (within validation), trim outputs, or use a larger‑VRAM GPU.cost_per_study = price_per_hour × wall_hours
Keep a Methods note with COMSOL version, study name, physics, CUDA path, GPU model/VRAM, and whether GPU acceleration was enabled.
“Hardware Acceleration node not available”
You’re not under a Time‑Dependent solver or your interface isn’t supported. Switch to a dG time‑explicit interface.
“GPU calculations disabled. Not all DOFs are dG.”
One or more physics adds continuous DOFs into the solver. Remove or separate them, or run that study on CPU.
“CUDA toolkit not found / GPU not detected.”
Set the toolkit path in Preferences. Confirm nvidia-smi inside the container and that your template is CUDA‑ready.
License errors
Set LMCOMSOL_LICENSE_FILE=<port>@<server> or use a tunnel (@localhost on the forwarded port). See our licensing guide.
hardware:
gpu: "<model> (<VRAM> GB)"
driver: "<NVIDIA driver>"
cuda_toolkit: "<path or version>"
software:
comsol: "6.3 (GPU acceleration enabled)"
image: "Ubuntu 24.04 LTS (CUDA 12.6)"
licenses:
LMCOMSOL_LICENSE_FILE: "27000@licenses.my-org.edu"
model:
physics: "Pressure Acoustics, Time Explicit (dG)"
study: "std1 (Time‑Dependent)"
run:
mode: "GUI | batch"
batch_cmd: "comsol batch -inputfile model.mph -study std1 -outputfile out.mph"
outputs:
wall_hours: "<hh:mm>"
probe_checks: "<metrics>"
notes: "All DOFs dG; GPU path active"
Start a GPU instance with a CUDA-ready template (e.g., Ubuntu 24.04 LTS / CUDA 12.6) or your own GROMACS image. Enjoy flexible per-second billing with custom templates and the ability to start, stop, and resume your sessions at any time. Unsure about FP64 requirements? Contact support to help you select the ideal hardware profile for your computational needs.