Skip to content

using_wg machinery deleted

giannozz requested to merge giannozz/q-e:wg_again into develop

Weights are in global variable "wg", stored on CPU, copied with ACC to GPU only in the few places where it is needed. Not sure about performances but I don't expect much change wrt the previous code. It is possible to transform "wg" into an ACC variable by

  • creating/destroying the GPU copy when it is allocated/deallocated (dpone in two places only)
  • updating it on device when computed (happens only in weights.f90 and when read from file)
  • declaring it "present" when used on GPU (utils_gpu.f90, sum_band_gpu.f90, and a few other places)

Not sure it is worth the effort, though.

Edited by giannozz

Merge request reports