- Nov 14, 2018
-
-
Martin Bauer authored
- was not used consistently before - symbol names are expected to be valid C identifiers - for complicated field names, the latex_name of field should be used
-
Martin Bauer authored
-
Martin Bauer authored
- small (length < 5) arrays with shape and stride information had to be memcpy'd to the GPU before every kernel call - instead of passing the information as arrays, the single elements are passed - leads to more function arguments, but simplifies GPU kernel calls -> changes in all backends required
-
- Jun 14, 2018
-
-
Martin Bauer authored
- not generic enough - does not work if there a multiple blocks
-
- May 14, 2018
-
-
Martin Bauer authored
-
- Apr 18, 2018
-
-
Martin Bauer authored
- new kernel creation function for kernels that write to staggered fields - simplification of conditionals with integers uses ISL library now via islpy bindings
-
- Apr 13, 2018
-
-
Martin Bauer authored
- removed warnings - added flake8 as CI target
-
- Apr 10, 2018
-
-
Martin Bauer authored
-
-
Martin Bauer authored
- test run again - notebooks not yet
-
Martin Bauer authored
-
Martin Bauer authored
- Previously sympy.Eq was used to represent assignments. However Eq represents equality not assignment. This means that sometimes sympy "simplified" an equation like a = a to True, -> replaced sp.Eq by pystencils.Assignment everywhere - renamed EquationCollection to AssignmentCollection
-
- Jan 31, 2018
-
-
Martin Bauer authored
-
- Jan 19, 2018
-
-
Concept: Generate code involving the (un)packing of fields (from)to linear (1D) arrays, i.e. (de)serialization of the field values for buffered communication. A linear index is generated for the buffer, by inferring the strides and variables of the loops over fields in the AST. In the CPU, this information is obtained through the makeLoopOverDomain function, in pystencils/transformations/transformations.py. On CUDA, the strides of the fields (excluding buffers) are combined with the indexing variables to infer the indexing of the buffer. What is supported: - code generation for both CPU and GPU - (un)packing of fields with all the memory layouts supported by pystencils - (un)packing slices of fields (from)into the buffer - (un)packing subsets of cell values from the fields (from)into the buffer Limitations: - assumes that only one buffer and one field are being operated within each kernel, however multiple equations involving the buffer and the field are supported. - (un)packing multiple cell values (from)into the buffer is supported, however it is limited to the fields with indexDimensions=1. The same applies to (un)packing subset of cell values of each cell. Changes in this commit: - add the FieldType enumeration to pystencils/field.py, to mark fields of various types. This is replaces and is a generalization of the isIndexedField boolean flag of the Field class. For now, the types supported are: generic, indexed and buffer fields. - add the fieldType property to the Field class, which indicates the type of the field. Modifications were also performed to the member functions of the Field class to add this property. - add resolveBufferAccesses function, which replaces the fields marked as buffers with the actual field access in the AST traversal. Miscelaneous changes: - add blockDim and gridDim variables as CUDA indexing variables.
-
- Jan 12, 2018
-
-
Jan Hönig authored
Fixed toDot. Remove unnecessary comments.
-
- Jan 11, 2018
-
-
Martin Bauer authored
- single function to create kernel for specified target - data type creation from string - reuse numpy functionality - bugfixes in dot display
-
- Oct 24, 2017
-
-
Jan Hönig authored
Testcases test_mu_equivalence, test_phi_equivalence are passing.
-
- Oct 17, 2017
-
-
Jan Hönig authored
Fixed a severe bug. Renamed makePythonFunction of the llvm backend. Deleted code duplicity.
-
- Oct 13, 2017
-
-
Jan Hönig authored
Fixed function bug.
-
- Oct 11, 2017
-
-
Jan Hönig authored
Added LLVM: CodePrinter and a compiler Updated data_types Added tests Added jupyter notebooks Fixed bugs Restructured transformation functions
-
- Oct 10, 2017
-
-
Martin Bauer authored
- renaming because of clashes with types.py from other packages
-
- Mar 19, 2017
-
-
Jan Hoenig authored
-
Jan Hoenig authored
-
- Mar 13, 2017
-
-
Martin Bauer authored
- use data type class consistently instead of strings (in TypedSymbol, Field and jit module) - new datatype class is based on numpy types with additional specifier information (const and restrict) - translation between data type class and other modules (numpy, ctypes)
-
Jan Hoenig authored
-
- Mar 10, 2017
-
-
Jan Hoenig authored
-
- Mar 02, 2017
-
-
Jan Hoenig authored
-
- Feb 23, 2017
-
-
Jan Hoenig authored
-
- Feb 14, 2017
-
-
Jan Hoenig authored
-
- Feb 13, 2017
-
-
This commit makes the Python code backwards compatible down to Python 2.7. Previously it would only run on Python 3.5 and up. Problems fixed included: - `time.perf_counter()` doesn't exist - all classes need to be new-style - `functools.lru_cache` doesn't exist - only the last argument to a function call can be `*`-expanded - the `nonlocal` keyword doesn't exist - metaclasses are used with a different syntax - `yield from` doesn't exist - `tempdir.TemporaryDirectory` doesn't exist - iterators need a `next()` method
-
- Feb 09, 2017
-
-
Martin Bauer authored
-
- Dec 15, 2016
-
-
Jan Hoenig authored
Move my llvm demo notebook in the correct folder
-
- Dec 08, 2016
-
-
Jan Hoenig authored
-
Jan Hoenig authored
-
Jan Hoenig authored
-
Jan Hoenig authored
and not as a string. Changed name of the file TypedSymbol to types. Fixed usage of dtype accordingly, however i might not have found every usage of dtype.
-
- Nov 17, 2016
-
-
Martin Bauer authored
-
- Nov 16, 2016
-
-
Jan Hoenig authored
-
- Nov 10, 2016
-
-
Jan Hoenig authored
-