def _compile(self): """ JIT-compile the C code generated by the Operator. It is ensured that JIT compilation will only be performed once per Operator, reagardless of how many times this method is invoked. """ if self._lib is None: jit_compile(self._soname, str(self.ccode), self._compiler)
def _compile(self): """ JIT-compile the C code generated by the Operator. It is ensured that JIT compilation will only be performed once per Operator, reagardless of how many times this method is invoked. """ if self._lib is None: jit_compile(self._soname, str(self.ccode), self._compiler)
def _compile(self): """ JIT-compile the C code generated by the Operator. It is ensured that JIT compilation will only be performed once per :class:`Operator`, reagardless of how many times this method is invoked. :returns: The file name of the JIT-compiled function. """ if self._lib is None: jit_compile(self._soname, str(self.ccode), self._compiler)
def compile(self): """ JIT-compile the C code generated by the Operator. It is ensured that JIT compilation will only be performed once per :class:`Operator`, reagardless of how many times this method is invoked. :returns: The file name of the JIT-compiled function. """ if self._lib is None: # No need to recompile if a shared object has already been loaded. return jit_compile(self.ccode, self._compiler) else: return self._lib.name
def compile(self): """ JIT-compile the Operator using the compiler specified in the global configuration dictionary (``configuration['compiler']``). It is ensured that JIT compilation will only be performed once per :class:`Operator`, reagardless of how many times this method is invoked. :returns: The file name of the JIT-compiled function. """ if self._lib is None: # No need to recompile if a shared object has already been loaded. return jit_compile(self.ccode, configuration['compiler']) else: return self._lib.name