Skip to content
Snippets Groups Projects

Fix field size

Merged Markus Holzer requested to merge holzer/pystencils:FixFieldSize into master
1 unresolved thread
Edited by Markus Holzer

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Michael Kuron
  • Michael Kuron
  • Michael Kuron
  • Michael Kuron changed the description

    changed the description

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    • efeb0e05 - Added conditional for non type

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Michael Kuron
  • Michael Kuron
  • 61 dtype = np.float64 if dtype == 'double' else np.float32
    62
    63 domain_size = (128, 128)
    64 dh = ps.create_data_handling(domain_size, periodicity=(True, True), default_target='cpu')
    65 src = dh.add_array("src", values_per_cell=1, dtype=dtype, ghost_layers=1, alignment=alignment)
    66 dh.fill(src.name, 1.0, ghost_layers=True)
    67 dst = dh.add_array("dst", values_per_cell=1, dtype=dtype, ghost_layers=1, alignment=alignment)
    68 dh.fill(dst.name, 1.0, ghost_layers=True)
    69
    70 update_rule = ps.Assignment(dst[0, 0], src[0, 0])
    71 opt = {'instruction_set': instruction_set, 'assume_aligned': True,
    72 'nontemporal': True, 'assume_inner_stride_one': True}
    73 ast = ps.create_kernel(update_rule, target=dh.default_target, cpu_vectorize_info=opt, ghost_layers=0)
    74 kernel = ast.compile()
    75 with pytest.raises(ValueError):
    76 dh.run_kernel(kernel)
  • Markus Holzer changed the description

    changed the description

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Markus Holzer added 1 commit

    added 1 commit

    Compare with previous version

  • Michael Kuron mentioned in commit 296e1464

    mentioned in commit 296e1464

  • merged

  • Please register or sign in to reply
    Loading