Skip to content
Snippets Groups Projects
  1. Oct 29, 2018
  2. Jul 25, 2018
  3. Jun 20, 2018
  4. Jun 15, 2018
  5. Jun 14, 2018
  6. Jun 13, 2018
  7. Jun 12, 2018
  8. Jun 07, 2018
    • Martin Bauer's avatar
      pystencils field · 8ca5e2fb
      Martin Bauer authored
      - better latex display for indirect accesses
      - new field type 'custom': only custom fields can be accessed indirectly
        no static bounds check possible for custom fields
      8ca5e2fb
  9. May 13, 2018
    • Martin Bauer's avatar
      Improved Vectorization · 501b2d7e
      Martin Bauer authored
      - support aligned load/stores
      - nontemporal stores
      - aligned memory allocation for arrays and temporary buffers
      501b2d7e
  10. May 11, 2018
    • Martin Bauer's avatar
      Generalized vectorization · 57a3c27e
      Martin Bauer authored
      - vectorization for loops with ranges that are not a multiple of vector width
      - vectorization for variable sized loops if special transformation
        replace_inner_stride_with_one is run
      57a3c27e
  11. Apr 30, 2018
  12. Apr 28, 2018
  13. Apr 20, 2018
  14. Apr 13, 2018
  15. Apr 10, 2018
  16. Feb 06, 2018
    • Martin Bauer's avatar
      Changed parameter bind caching for CPU and GPU kernels · d30c5f73
      Martin Bauer authored
      - previously all objects where cached by id()
      - for waLBerla simulations in each time step a new np.array view
        is created from the waLBerla field. Each of these views has a
        different id -> caching did not work for waLBerla setups
      - changed hash for numpy arrays: instead of id, a tuple of
        (dataPtr, strides, shapes) is used as hash input
      d30c5f73
    • Martin Bauer's avatar
      New Boundary step system / fixes in lbmpy phasefield · b148d508
      Martin Bauer authored
      - scaling interface width eta instead of surface tensions tau to correct
        interface profile & surface tensions
      b148d508
  17. Jan 31, 2018
  18. Jan 19, 2018
    • João Victor Tozatti Risso's avatar
      Code generation for field serialization into buffers · 979ee93b
      João Victor Tozatti Risso authored and Martin Bauer's avatar Martin Bauer committed
      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.
      979ee93b
  19. Dec 03, 2017
  20. Oct 26, 2017
  21. Oct 17, 2017
  22. Oct 10, 2017
  23. Oct 09, 2017
    • Martin Bauer's avatar
      Vectorization & Type system overhaul · ea847bc5
      Martin Bauer authored
      - first vectorization tests are running
      - type system: use memoized getTypeOfExpression
      - casts are done using sp.Function('cast')
      - C backend adapted for vectorization support
      - AST nodes can required optional headers
      ea847bc5
  24. Jul 06, 2017
  25. Apr 24, 2017
  26. Apr 20, 2017
  27. Apr 11, 2017
    • Martin Bauer's avatar
      Bugfix in JIT cacheing · 93b1d694
      Martin Bauer authored
      - cache relied on uniqueness of  python id()
      - id may be reused if object is freed
      -> object must be held alive
      -> kernel keeps all it arguments it was ever called with, alive (problematic in terms of memory consumption)
      93b1d694
  28. Mar 30, 2017
  29. Mar 24, 2017
  30. Mar 14, 2017
    • Martin Bauer's avatar
      pystencils: fields can now contain structs · ec3faf51
      Martin Bauer authored
      - this extension is necessary for more generic boundary treatment
      - cells can now be structs, i.e. contain different data types
      - instead of having numeric index dimensions, one can use the index per cell to adress struct elements
      ec3faf51
  31. Mar 13, 2017
    • Martin Bauer's avatar
      pystencils: Cleaned up type system · c8b455fe
      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)
      c8b455fe
  32. Mar 05, 2017
    • Martin Bauer's avatar
      lbmpy: various small improvements · 83e87342
      Martin Bauer authored
      - getShearRelaxationRate is a free function now -> works also with cumulant methods
      - better error message when calling kernels with wrong or too few parameters
      - entropic & incompressible is not working by default due to pdf shift -> added NotImplemented exception
      - new creation function for 'raw_mrt' where all relaxation rates can be independently specified
      - enhanced entropic creation funtion, supports omega output field now
      83e87342