Is it better to have a module-wise device
tag for each multi-device suported class?
#5231
Labels
GPU & DCU & HPC
GPU and DCU and HPC related any issues
Currently,
device
is an input parameter as global variable. Whendevice=gpu
, all the calculation will be done on GPUs.However, "the machine has GPUs" does not need "every module calculates on GPUs".
For example, @dzzz2001 find that putting FFT module on GPU costs a lot of memory while having little accelerate effect when using LCAO basis.
A possible solution is to have a global list telling the device of each module with the class name as key-like template parameter, here's a demo:
The text was updated successfully, but these errors were encountered: