Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra leading array indices do not work with --pmodel LC #53

Closed
rrzeschorscherl opened this issue Nov 23, 2017 · 0 comments
Closed

Extra leading array indices do not work with --pmodel LC #53

rrzeschorscherl opened this issue Nov 23, 2017 · 0 comments
Labels

Comments

@rrzeschorscherl
Copy link
Contributor

The LC analysis in Kerncraft does not seem to cope well with arrays that have more (leading) indices than the number of loops in the nest:

$ kerncraft --machine machine-files/BroadwellEP_E5-2697_CoD.yml --pmodel LC -D M 500 -D N 500 -D L 500 --cache-predictor LC kernels/himeno.c 
================================== kerncraft ===================================
kernels/himeno.c                        -m machine-files/BroadwellEP_E5-2697_CoD.yml
-D L 500 -D M 500 -D N 500
-------------------------------------- LC --------------------------------------
Traceback (most recent call last):
  File "/home/gh/programming/python/bin/kerncraft", line 11, in <module>
    sys.exit(main())
  File "/home/gh/programming/python/lib/python3.5/site-packages/kerncraft/kerncraft.py", line 289, in main
    run(parser, args)
  File "/home/gh/programming/python/lib/python3.5/site-packages/kerncraft/kerncraft.py", line 255, in run
    model.analyze()
  File "/home/gh/programming/python/lib/python3.5/site-packages/kerncraft/models/layer_condition.py", line 222, in analyze
    raise ValueError("Can not apply layer-condition, order of indices in array "
ValueError: Can not apply layer-condition, order of indices in array does not follow order of loop indices. Single-dimension is currently not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant