Skip to content
Snippets Groups Projects
  1. Mar 15, 2019
  2. Mar 12, 2019
  3. Feb 26, 2019
    • Martin Bauer's avatar
      Random number generation support for pystencils · 6a01f3e2
      Martin Bauer authored
      - counter-based philox RNG: counter/key is filled with cell coordinate
        and optional external parameters like block position and time step
      - works on CPU and GPU - on CPU only for non-vectorized versions
      
      - introduced more flexible "CustomCodeNode" that can inject
        backend-specific hand-written code
      6a01f3e2
  4. Nov 14, 2018
  5. 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
  6. Apr 30, 2018
  7. Apr 13, 2018
  8. Apr 10, 2018
  9. 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
  10. Jan 31, 2018
  11. 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
  12. Dec 11, 2017
  13. Dec 02, 2017
  14. Oct 10, 2017
  15. Jul 21, 2017
  16. Apr 11, 2017
  17. Mar 30, 2017
  18. Mar 24, 2017
  19. Mar 01, 2017
    • Martin Bauer's avatar
      pystencils: cpujit · dd17cd30
      Martin Bauer authored
      - windows support
      - automatic caching and creation of shared library with all generated kernels
      - restrict keyword and function prefixes are preprocessor macros now -> easier to generate one code for linux, cuda, windows
      dd17cd30
  20. Feb 21, 2017
  21. Dec 08, 2016
  22. Nov 06, 2016
  23. Nov 03, 2016
  24. Nov 02, 2016