File: idgcommon.cpp

package info (click to toggle)
wsclean 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 10,968 kB
  • sloc: cpp: 85,742; python: 3,526; sh: 245; makefile: 21
file content (17 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "idgcommon.h"

namespace wsclean {

idg::api::Type GetIdgType(const Settings& settings) {
  switch (settings.idgMode) {
    case Settings::IDG_GPU:
      return idg::api::Type::CUDA_GENERIC;
    case Settings::IDG_HYBRID:
      return idg::api::Type::HYBRID_CUDA_CPU_OPTIMIZED;
    case Settings::IDG_CPU:
    default:
      return idg::api::Type::CPU_OPTIMIZED;
  }
}

}  // namespace wsclean