Beispiel #1
0
 def setupHelp(self, help):
     import nargs
     config.package.CMakePackage.setupHelp(self, help)
     help.addArgument(
         'KOKKOS', '-with-kokkos-cuda-arch',
         nargs.ArgString(
             None, 0,
             'One of KEPLER30, KEPLER32, KEPLER35, KEPLER37, MAXWELL50, MAXWELL52, MAXWELL53, PASCAL60, PASCAL61, VOLTA70, VOLTA72, TURING75, AMPERE80, use nvidia-smi'
         ))
     help.addArgument(
         'KOKKOS', '-with-kokkos-hip-arch',
         nargs.ArgString(None, 0, 'One of VEGA900, VEGA906, VEGA908'))
     return
Beispiel #2
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-log=<bool>',
         nargs.ArgBool(None, 1, 'Activate logging code in PETSc'))
     help.addArgument(
         'PETSc', '-with-threadsafety=<bool>',
         nargs.ArgBool(
             None, 0,
             'Allow individual threads in PETSc to call PETSc routines'))
     help.addArgument(
         'PETSc', '-with-info=<bool>',
         nargs.ArgBool(None, 1,
                       'Activate PetscInfo() (i.e. -info)  code in PETSc'))
     help.addArgument(
         'PETSc', '-with-ctable=<bool>',
         nargs.ArgBool(
             None, 1,
             'Activate CTABLE hashing for certain search functions - to conserve memory'
         ))
     help.addArgument(
         'PETSc', '-with-fortran-kernels=<bool>',
         nargs.ArgBool(None, 0, 'Use Fortran for linear algebra kernels'))
     help.addArgument(
         'PETSc', '-with-avx512-kernels=<bool>',
         nargs.ArgBool(
             None, 1,
             'Use AVX-512 intrinsics for linear algebra kernels when available'
         ))
     help.addArgument(
         'PETSc', '-with-is-color-value-type=<char,short>',
         nargs.ArgString(None, 'short',
                         'char, short can store 256, 65536 colors'))
     return
Beispiel #3
0
 def setupHelp(self, help):
   import nargs
   help.addArgument('MATLAB', '-with-matlab=<bool>',         nargs.ArgBool(None, 0, 'Activate Matlab'))
   help.addArgument('MATLAB', '-with-matlab-socket=<bool>',  nargs.ArgBool(None, 1, 'Build socket code for Matlab'))
   help.addArgument('MATLAB', '-with-matlab-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the Matlab installation'))
   help.addArgument('MATLAB', '-with-matlab-arch=<string>',  nargs.ArgString(None, None, 'Use Matlab Architecture (default use first-found)'))
   return
Beispiel #4
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-log=<bool>',
         nargs.ArgBool(None, 1, 'Activate logging code in PETSc'))
     help.addArgument(
         'PETSc', '-with-info=<bool>',
         nargs.ArgBool(None, 1,
                       'Activate PetscInfo() (i.e. -info)  code in PETSc'))
     help.addArgument(
         'PETSc', '-with-ctable=<bool>',
         nargs.ArgBool(
             None, 1,
             'Activate CTABLE hashing for certain search functions - to conserve memory'
         ))
     help.addArgument(
         'PETSc', '-with-fortran-kernels=<bool>',
         nargs.ArgBool(None, 0, 'Use Fortran for linear algebra kernels'))
     help.addArgument(
         'PETSc', '-with-64-bit-indices=<bool>',
         nargs.ArgBool(
             None, 0,
             'Use 64 bit integers (long long) for indexing in vectors and matrices'
         ))
     help.addArgument(
         'PETSc', '-with-is-color-value-type=<char,short>',
         nargs.ArgString(None, 'short',
                         'char, short can store 256, 65536 colors'))
     return
Beispiel #5
0
 def setupHelp(self, help):
     import nargs
     config.package.Package.setupHelp(self, help)
     help.addArgument('MAGMA', '-with-magma-gputarget',
                      nargs.ArgString(None, '', 'GPU_TARGET make variable'))
     help.addArgument(
         'MAGMA', '-with-magma-fortran-bindings',
         nargs.ArgBool(None, 1, 'Compile MAGMA Fortran bindings'))
     return
Beispiel #6
0
 def setupHelp(self, help):
     config.package.GNUPackage.setupHelp(self, help)
     import nargs
     help.addArgument(
         'HYPRE', '-with-hypre-gpu-arch=<string>',
         nargs.ArgString(
             None, 0,
             'Value passed to hypre\'s --with-gpu-arch= configure option'))
     return
Beispiel #7
0
 def setupHelp(self, help):
     import nargs
     config.package.Package.setupHelp(self, help)
     help.addArgument(
         'CUDA', '-with-cuda-arch',
         nargs.ArgString(
             None, None,
             'Cuda architecture for code generation, for example 70, (this may be used by external packages), use all to build a fat binary for distribution'
         ))
     return
Beispiel #8
0
 def setupHelp(self, help):
     import nargs
     config.package.Package.setupHelp(self, help)
     help.addArgument(
         'HIP', '-with-hip-arch',
         nargs.ArgString(
             None, None,
             'AMD GPU architecture for code generation, for example gfx908, (this may be used by external packages)'
         ))
     return
Beispiel #9
0
 def setupHelp(self, help):
     import nargs
     config.package.Package.setupHelp(self, help)
     help.addArgument(
         'Kokkos', '-with-kokkos-cuda-arch',
         nargs.ArgString(
             None, 0,
             'One of KEPLER30, KEPLER32, KEPLER35, KEPLER37, MAXWELL50, MAXWELL52, MAXWELL53, PASCAL60, PASCAL61, VOLTA70, VOLTA72, TURING75 (Titan V is Volta), use nvidia-smi'
         ))
     return
Beispiel #10
0
 def setupHelp(self, help):
     import nargs
     config.package.CMakePackage.setupHelp(self, help)
     help.addArgument(
         'KOKKOS', '-with-kokkos-hip-arch=<string>',
         nargs.ArgString(None, 0, 'One of VEGA900, VEGA906, VEGA908'))
     help.addArgument(
         'KOKKOS', '-with-kokkos-init-warnings=<bool>',
         nargs.ArgBool(None, True,
                       'Enable/disable warnings in Kokkos initialization'))
     return
Beispiel #11
0
 def setupHelp(self, help):
     import nargs
     help.addArgument('Matlab', '-with-matlab=<bool>',
                      nargs.ArgBool(None, 0, 'Activate Matlab'))
     help.addArgument(
         'Matlab', '-with-matlab-engine=<bool>',
         nargs.ArgBool(None, 0,
                       'Activate Matlab Engine (need --with-matlab also) '))
     help.addArgument(
         'Matlab', '-with-matlab-dir=<root dir>',
         nargs.ArgDir(
             None, None,
             'Specify the root directory of the Matlab installation'))
     help.addArgument(
         'Matlab', '-with-matlab-arch=<string>',
         nargs.ArgString(
             None, None,
             'Use Matlab Architecture (default use first-found)'))
     return
Beispiel #12
0
  def t_exportBabel(self):
    '''Exports all the SIDL projects and impls in a form that Babel can handle'''
    self.argDB.setType('exportDir', nargs.ArgString(key='exportDir', help='Directory to export for Babel'))
    exportDir = self.argDB['exportDir']
    if not os.path.isdir(exportDir): os.makedirs(exportDir)
    self.t_printSIDLBabel(exportDir)

    directories = self.getDependencyPaths()
    import getsplicers
    getsplicers.getSplicers(directories)
    try:
      #output = self.executeShellCommand('cd '+exportDir+'; babel --server=C allsidl.sidl')
      import commands
      (status,output) = commands.getstatusoutput('cd '+exportDir+';babel --server=C++ allsidl.sidl')
    except:
      pass
    print status
    print output
    import setsplicers
    setsplicers.setSplicers(exportDir)
Beispiel #13
0
 def setupHelp(self, help):
   import nargs
   config.package.Package.setupHelp(self, help)
   help.addArgument('SYCL', '-with-sycl-arch', nargs.ArgString(None, None, 'Intel GPU architecture for code generation, for example gen9, xehp (this may be used by external packages)'))
   return
Beispiel #14
0
 def setupHelp(self, help):
   import nargs
   config.package.CMakePackage.setupHelp(self, help)
   help.addArgument('KOKKOS', '-with-kokkos-hip-arch=<string>',  nargs.ArgString(None, 0, 'One of VEGA900, VEGA906, VEGA908'))
   return
Beispiel #15
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-timer=<default,mpi,ibm,dec,asci-red,nt>',
         nargs.ArgString(None, None, 'Use high precision timer'))
     return