def __init__( self, formula, aliases, dtype, lang, optional_flags=[], include_dirs=[] ): self.formula = formula self.aliases = aliases self.dtype = dtype self.lang = lang self.optional_flags = optional_flags self.include_dirs = include_dirs # get build folder name for dtype self.build_folder = get_build_folder_name(dtype, lang, include_dirs) # get template name for dtype self.template_name = get_pybind11_template_name(dtype, lang, include_dirs) # create the name from formula, aliases and dtype. self.dll_name = create_name( self.formula, self.aliases, self.dtype, self.lang, self.optional_flags ) if (not module_exists(self.dll_name, self.template_name)) or ( pykeops.config.build_type == "Debug" ): self._safe_compile()
def __init__(self, formula, aliases, dtype, lang, optional_flags=[]): self.formula = formula self.aliases = aliases self.dtype = dtype self.lang = lang self.optional_flags = optional_flags # create the name from formula, aliases and dtype. self.dll_name = self._create_name(formula, aliases, dtype, lang) if (module_exists(self.dll_name)) or (build_type == 'Debug'): self.build_folder = bin_folder + os.path.sep + 'build-' + self.dll_name self._safe_compile()
def __init__(self, formula, aliases, dtype, lang, optional_flags=[]): self.formula = formula self.aliases = aliases self.dtype = dtype self.lang = lang self.optional_flags = optional_flags # create the name from formula, aliases and dtype. self.dll_name = create_name(self.formula, self.aliases, self.dtype, self.lang, self.optional_flags) if (not module_exists(self.dll_name)) or (pykeops.config.build_type == "Debug"): self.build_folder = set_build_folder(pykeops.config.bin_folder, self.dll_name) self._safe_compile()
def __init__(self, formula, aliases, dtype, lang, optional_flags=[]): self.formula = formula self.aliases = aliases self.dtype = dtype self.lang = lang self.optional_flags = optional_flags if TestChunkedTiles(formula): self.optional_flags += ['-DENABLECHUNK=1'] # create the name from formula, aliases and dtype. self.dll_name = self._create_name(formula, aliases, dtype, lang, self.optional_flags) if (module_exists(self.dll_name)) or (build_type == 'Debug'): self.build_folder = os.path.join(bin_folder, 'build-' + self.dll_name) self._safe_compile()