Ejemplo n.º 1
0
 def __init__(self, argDB):
     config.compile.processor.Processor.__init__(self, argDB, 'CUDAPP',
                                                 'CUDAPPFLAGS', '.cpp',
                                                 '.c')
     self.language = 'CUDA'
     self.includeDirectories = sets.Set()
     return
Ejemplo n.º 2
0
 def __init__(self, argDB):
     config.compile.processor.Processor.__init__(self, argDB, 'SYCLPP',
                                                 'SYCLPPFLAGS', '.sycl.cxx',
                                                 '.sycl.cxx')
     self.language = 'SYCL'
     self.includeDirectories = sets.Set()
     return
Ejemplo n.º 3
0
 def __init__(self, argDB):
   self.compiler        = Compiler(argDB)
   self.configLibraries = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB))
   config.compile.processor.Processor.__init__(self, argDB, ['FC_LD', 'LD', self.compiler.name], ['LDFLAGS', 'FC_LINKER_FLAGS'], '.o', '.a')
   self.language   = 'FC'
   self.outputFlag = '-o'
   self.libraries  = sets.Set()
   return
Ejemplo n.º 4
0
Archivo: HIP.py Proyecto: miaodi/petsc
 def __init__(self, argDB):
   self.compiler        = Compiler(argDB, usePreprocessorFlags = False)
   self.configLibraries = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.getcwd()))
   config.compile.processor.Processor.__init__(self, argDB, [self.compiler.name], ['HIPCC_LINKER_FLAGS'], '.o', '.a')
   self.language   = 'HIP'
   self.outputFlag = '-o'
   self.libraries  = sets.Set()
   return
Ejemplo n.º 5
0
 def __init__(self, argDB):
   config.compile.processor.Processor.__init__(self, argDB, 'FC', 'FFLAGS', '.F', '.o')
   self.language           = 'FC'
   self.requiredFlags[-1]  = '-c'
   self.outputFlag         = '-o'
   self.includeDirectories = sets.Set()
   self.flagsName.extend(Preprocessor(argDB).flagsName)
   return
Ejemplo n.º 6
0
 def __init__(self, argDB):
   self.compiler = Compiler(argDB, usePreprocessorFlags = False)
   self.configLibraries = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.getcwd()))
   config.compile.processor.Processor.__init__(self, argDB, ['LD_SHARED', self.compiler.name], ['LDFLAGS', 'sharedLibraryFlags'], '.o', None)
   self.language   = 'CXX'
   self.outputFlag = '-o'
   self.libraries  = sets.Set()
   return
Ejemplo n.º 7
0
Archivo: HC.py Proyecto: zhaog6/petsc
 def __init__(self, argDB, usePreprocessorFlags = True):
   config.compile.processor.Processor.__init__(self, argDB, 'HIPC', 'HIPFLAGS', '.hip.cpp', '.o')
   self.language        = 'HC'
   self.requiredFlags[-1]  = '-c'
   self.outputFlag         = '-o'
   self.includeDirectories = sets.Set()
   if usePreprocessorFlags:
     self.flagsName.extend(Preprocessor(argDB).flagsName)
   return
Ejemplo n.º 8
0
 def __init__(self, argDB):
     self.compiler = Compiler(argDB)
     self.configLibraries = config.libraries.Configure(
         config.framework.Framework(clArgs='', argDB=argDB))
     config.compile.processor.Processor.__init__(
         self, argDB, ['dynamicLinker', self.compiler.name],
         ['LDFLAGS', 'dynamicLibraryFlags'], '.o', None)
     self.outputFlag = '-o'
     self.libraries = sets.Set()
     return
Ejemplo n.º 9
0
    def __init__(self, argDB, usePreprocessorFlags=False):
        config.compile.processor.Processor.__init__(self, argDB, 'SYCLCXX',
                                                    'SYCLCXXFLAGS',
                                                    '.sycl.cxx', '.o')
        self.language = 'SYCL'
        self.requiredFlags[-1] = '-c'
        self.outputFlag = '-o'
        self.includeDirectories = sets.Set()
        if usePreprocessorFlags:
            self.flagsName.extend(Preprocessor(argDB).flagsName)

        return
Ejemplo n.º 10
0
 def __init__(self, argDB, usePreprocessorFlags=True):
     import platform
     if platform.system() == 'Windows':
         ext = '.obj'
     else:
         ext = '.o'
     config.compile.processor.Processor.__init__(self, argDB, 'CC',
                                                 'CFLAGS', '.c', ext)
     if platform.system() == 'Windows':
         self.outputFlag = '/Fo'
         self.requiredFlags[-1] = '/c'
     else:
         self.outputFlag = '-o'
         self.requiredFlags[-1] = '-c'
     self.includeDirectories = sets.Set()
     if usePreprocessorFlags:
         self.flagsName.extend(Preprocessor(argDB).flagsName)
     return
Ejemplo n.º 11
0
 def copy(self, other):
     other.compiler = self.compiler
     other.configLibraries = self.configLibraries
     other.libraries = sets.Set(self.libraries)
     return
Ejemplo n.º 12
0
 def __init__(self, argDB):
     config.compile.C.Preprocessor.__init__(self, argDB)
     self.language = 'FC'
     self.targetExtension = '.F'
     self.includeDirectories = sets.Set()
     return