[STF] Fix equality operators for places#7494
Conversation
|
The comparison looks broken too, it probably relies on the fact that we have static objects for most places (host, device, ...) but it will not be reliable for green contexts. We can have two identical green contexts (same view) but different objects. |
|
/ok to test 4e6119d |
This comment has been minimized.
This comment has been minimized.
|
lgtm |
|
/ok to test 8bd9e01 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test 5e1ceea |
This comment has been minimized.
This comment has been minimized.
|
/ok to test 4ab6bdd |
This comment has been minimized.
This comment has been minimized.
… To keep extensible types, we implement a type_uuid() virtual method that returns a unique id for the type, making it possible to have an order on derived types. Add various tests to make sure we can have maps and unordered maps of exec and data places now.
|
/ok to test b242c06 |
|
/ok to test 53f84c1 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test |
@andralex, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/ |
60cef48 to
ca04f80
Compare
|
/ok to test |
@andralex, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/ |
ca04f80 to
f7ba637
Compare
- Use typeid comparison consistently in both operator== and operator< - Rename equals/less_than to operator==/operator< in data_place_extension - Rename less_than to operator< in exec_place::impl Co-authored-by: Cursor <cursoragent@cursor.com>
f7ba637 to
d755dc0
Compare
|
/ok to test |
@andralex, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/ |
|
/ok to test d755dc0 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test 0c9df2d |
🥳 CI Workflow Results🟩 Finished in 40m 20s: Pass: 100%/48 | Total: 15h 14m | Max: 29m 52s | Hits: 63%/23319See results here. |
Description
Equality operator is broken for exec places and data places which might share the same affine data place for example, as this is typically the case with green contexts. We fix that here.
closes
Checklist