- 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.
-
Martin Bauer authored
-
- Jan 18, 2018
-
-
Jan Hönig authored
Fixed demo_heat_equation notebook.
-
- Jan 12, 2018
-
-
Jan Hönig authored
Fixed toDot. Remove unnecessary comments.
-
- Jan 11, 2018
-
-
Martin Bauer authored
-
Martin Bauer authored
because boundary handling does its own flag management
-
Martin Bauer authored
-
Martin Bauer authored
-
Martin Bauer authored
-
Martin Bauer authored
- sphinx detection is not reliable, e.g. jupyter notebooks have sphinx imported at startup -> no caching from notebooks - explicitly added cached functions via autofunction to docs - some functions do not support memory cache, because memory cache can't handle non-hashable parameters -> introduced diskcacheNoFallback decorator for these functions
-
Martin Bauer authored
-
Martin Bauer authored
- single function to create kernel for specified target - data type creation from string - reuse numpy functionality - bugfixes in dot display
-
- Jan 10, 2018
- Dec 12, 2017
-
-
Jan Hönig authored
-
- Dec 11, 2017
-
-
Martin Bauer authored
-
- Dec 06, 2017
- Dec 04, 2017
- Dec 03, 2017
-
-
Martin Bauer authored
-
Martin Bauer authored
-
Martin Bauer authored
- loop cutting - simplification of conditionals inside loop
-
- Dec 02, 2017
-
-
Martin Bauer authored
-
- Nov 30, 2017
-
-
Christian Godenschwager authored
-
- Nov 10, 2017
-
-
Martin Bauer authored
-
Martin Bauer authored
-
- Nov 08, 2017
-
-
Martin Bauer authored
-
- Nov 07, 2017
-
-
Martin Bauer authored
-
- Nov 02, 2017
-
-
Martin Bauer authored
- alignment of index array when using additional data - data types have been hashed incorrectly
-
Martin Bauer authored
-
Jan Hönig authored
Updated testing of kerncraft_coupling and some functions in kerncraft_coupling in order to be compatible with the kerncraft version 5.1
-
- Oct 26, 2017
-
-
Martin Bauer authored
-
- Oct 24, 2017
-
-
Jan Hönig authored
Testcases test_mu_equivalence, test_phi_equivalence are passing.
-
- Oct 23, 2017
-
-
Michael Kuron authored
-
- Oct 21, 2017
-
-
Martin Bauer authored
-
Martin Bauer authored
-
- Oct 17, 2017
-
-
Martin Bauer authored
- support for logical operators, and/or - both phase field kernels can be vectorized now
-
Martin Bauer authored
- phasefield phi sweep vectorizes successfully
-
Martin Bauer authored
-