-
Notifications
You must be signed in to change notification settings - Fork 25
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
Implementation of routing algorithm, fix some bug and add restriction for config #90
Conversation
- The count of buffer is from 0 to (#router-1), so it is not '<=' and should be '<', otherwise segmentation fault occurs
- This implementation is compatible with older version (theoretically), however it will run only for XYZ routing algorithm. - Tested for 2D-torus urand 100000ns: 4x4, 4x8, 8x8, 8x16, 16x16; all pass - Tested for ring urand 100000ns up to 64 nodes; all pass TODO: - implementation for 3D torus and its routing algorithm - more updates for routing algorithm of torus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Looks good in general, except two things. Please do the following:
- Please do not modify the bin/...py files directly. Rather, make a new package as discussed offline. I would like to keep the bin folder constant for now for legacy reasons.
- Please add urand tests to the CI for the new topologies and routings. (see .travis.yml)
- Please use the new packaged-python classes for the tests as much as possible.
Thanks!
This reverts commit 588c6c8.
I revert the commit 588c6c8, but this has removed the feature for adding "topology" into config.xml, so the simulator cannot use the new feature of ring and torus routing. Do I still need to add this topology feature (in xml_writers.py) into too? (Checkout d9bae63 bin/xml_writers.py, line 598, 600). |
Yes, please add it. But you can add it to the "new" xml_writers.py in the ratatoskr-tools package only. That would be fine to foster migration to the new interface! |
- Due to the problem when x=2, we need to know what is the direction of target node to the source node (west or east). Here, we still define it same as mesh. - Also fix for y-axis too.
- if not given --outputDir, the default is current working directory
- shell input with 2 arguments is removed (this might cause incompatibality to the older version, if required will be added again, however this kind of input method is not secure) e.g. $./sim config/config.xml - added new input options: --configPath --networkPath
Can we make a version number after this pull request is merge? So for the ratatoskr-tools documentation can mention that the minimum version requirement for the simulator, this would be more friendly for the user :D |
It is done with this package :D #89 #92 |
TODO:
- implementation for 3D torus and its routing algorithm
- more updates for routing algorithm of torus