GarfieldGPU Elmer

Hi all,

I’d just like to confirm whether or not GPU acceleration works with Elmer at the minute - the GemGPU example with Ansys works fine, but modifying the Elmer lem example to use AvalancheMicroscopic with GPU via SetRunModeOptions(MPRunMode::GPUExclusive, 0); using gives me the below segmentation violation:

Hello,

I noticed that the lem/avalanche.cc example you ran doesn’t natively include a couple of function calls. Could you try adding

gas.SetMaxElectronEnergy(400.0);
gas.Initialise(true);

after the other gas settings if you haven’t already?

IIRC, AvalancheMicroscopicGPU has no lazy initialization of the MediumMagboltz gas tables (unlike the CPU version), and SetMaxElectronEnergy also needs to be explicitly set since the collision-rate tables don’t grow dynamically on the GPU (OOB fault).

If that doesn’t work, could you attach your modified example and a backtrace from gdb --args ./avalanche (run, then bt)?

Cheers,

Gabriel