Skip to content
Snippets Groups Projects
Select Git revision
  • bauerd/dynamic-array-type
  • master default protected
  • kohl/vectorization-fixes
  • v2.0-dev
  • backend-rework
  • zikelim/mixed-precision
  • holzer-master-patch-46757
  • bauerd/wip/vec-is-rework
  • rvv
  • 66-absolute-access-is-probably-not-copied-correctly-after-_eval_subs
  • gpu_bufferfield_fix
  • hyteg
  • vectorization_sqrt_fix
  • target_dh_refactoring
  • const_fix
  • improved_comm
  • gpu_liveness_opts
  • release/1.3.3
  • release/1.3.2
  • release/1.3.1
  • release/1.3
  • release/1.2
  • release/1.1.1
  • release/1.1
  • release/1.0.1
  • release/1.0
  • release/0.4.4
  • last/Kerncraft
  • last/OpenCL
  • last/LLVM
  • release/0.4.3
  • release/0.4.2
  • release/0.4.1
  • release/0.4.0
  • release/0.3.4
  • release/0.3.3
  • release/0.3.2
37 results

fixtures.py

Blame
  • Forked from pycodegen / pystencils
    Source project has a limited visibility.
    test_sycl.py 749 B
    from pystencils import Target, CreateKernelConfig, create_kernel, no_jit
    from lbmpy import create_lb_update_rule, LBMOptimisation
    from pystencilssfg import SourceFileGenerator, SfgConfiguration, SfgOutputMode
    from pystencilssfg.lang.cpp import mdspan_ref
    
    sfg_config = SfgConfiguration(
        output_directory="out/test_sycl",
        outer_namespace="gen_code",
        impl_extension="ipp",
        output_mode=SfgOutputMode.INLINE
    )
    
    with SourceFileGenerator(sfg_config) as sfg:
        gen_config = CreateKernelConfig(target=Target.SYCL, jit=no_jit)
        opt = LBMOptimisation(field_layout="fzyx")
        update = create_lb_update_rule()
        kernel = sfg.kernels.create(update, "lbm_update", gen_config)
    
        sfg.function("lb_update")(
            sfg.call(kernel)
        )