Ivanlh20 / multem

MULTEM is a powerful and advanced collection of C++ routines with CUDA support, designed to perform efficient and accurate multislice simulations for various TEM experiments such as HRTEM, STEM, ISTEM, ED, PED, CBED, ADF-TEM, ABF-HC, EFTEM, and EELS.
GNU General Public License v3.0
66 stars 26 forks source link

CUDA Memory allocation in CPU mode #48

Open ThFriedrich opened 2 years ago

ThFriedrich commented 2 years ago

When running MULTEM on CPU, by setting: input_multem.system_conf.device = 1; the code seems to try and allocate some GPU memory at some point anyway. Even though the simulation runs fine on the CPU, it will give an error message CUDA error: out of memory in the command prompt when there is no GPU memory available.

Screenshot