aie4 changes#86
Conversation
| }; | ||
|
|
||
| class assembler_state | ||
| class assembler_state : public std::enable_shared_from_this<assembler_state> |
There was a problem hiding this comment.
warning: class 'assembler_state' defines a default destructor, a copy constructor, a copy assignment operator and a move constructor but does not define a move assignment operator [cppcoreguidelines-special-member-functions]
class assembler_state : public std::enable_shared_from_this<assembler_state>
^| std::map<std::string, std::shared_ptr<scratchpad_info>>& scratchpad, | ||
| std::map<std::string, uint32_t>& labelpageindex, uint32_t control_packet_index, bool makeunique); | ||
| assembler_state(const assembler_state& rhs) = default; | ||
| assembler_state& operator=(const assembler_state& rhs) = default; |
There was a problem hiding this comment.
warning: deleted member function should be public [hicpp-use-equals-delete]
assembler_state& operator=(const assembler_state& rhs) = default;
^| std::map<std::string, std::shared_ptr<scratchpad_info>>& scratchpad, | ||
| std::map<std::string, uint32_t>& labelpageindex, uint32_t control_packet_index, bool makeunique); | ||
| assembler_state(const assembler_state& rhs) = default; | ||
| assembler_state& operator=(const assembler_state& rhs) = default; |
There was a problem hiding this comment.
warning: explicitly defaulted copy assignment operator is implicitly deleted [clang-diagnostic-defaulted-function-deleted]
assembler_state& operator=(const assembler_state& rhs) = default;
^Additional context
src/cpp/common/assembler_state.h:149: copy assignment operator of 'assembler_state' is implicitly deleted because field 'm_data' is of reference type 'std::vector<std::shared_ptr<asm_data>> &'
std::vector<std::shared_ptr<asm_data>>& m_data;
^src/cpp/common/assembler_state.h:145: replace 'default' with 'delete'
assembler_state& operator=(const assembler_state& rhs) = default;
^| COALESED_BUFFER | ||
| }; | ||
|
|
||
| symbol::patch_schema control_packet_patching = symbol::patch_schema::control_packet_57; |
There was a problem hiding this comment.
warning: member variable 'control_packet_patching' has protected visibility [cppcoreguidelines-non-private-member-variables-in-classes]
symbol::patch_schema control_packet_patching = symbol::patch_schema::control_packet_57;
^
stsoe
left a comment
There was a problem hiding this comment.
There are other fundamental changes, such as pointer semantics. Please describe the changes in the PR summary, rather than just a one liner.
| get_actor_id_map() const override | ||
| { | ||
| static std::unordered_map<std::string, ActionId> actor_id = { | ||
| {"mm2s", {5, 6}}, //NOLINT |
There was a problem hiding this comment.
aie4, if tile type is not specified, it is an error.
so line 246-247 should be removed
There was a problem hiding this comment.
done
| {"s2mm", {5, 0}}, //NOLINT | ||
| {"tile_mm2s", {10, 6}}, //NOLINT | ||
| {"tile_s2mm", {10, 0}}, //NOLINT | ||
| {"shim_mm2s", {10, 6}}, //NOLINT |
There was a problem hiding this comment.
please see table 3-23 in latest spec
this part now is very ugly ...
memtile, the mm2s actor id has a hole
shimtile, actor id of s2mm 0 & 1 are not contiguous
there is also a trace_s2mm channel
check to see whether the data structure define can handle all these case.
There was a problem hiding this comment.
checked and fixed
Signed-off-by: HimanshuChoudhary-Xilinx <Himanshu.Choudhary@amd.com>
Signed-off-by: HimanshuChoudhary-Xilinx <Himanshu.Choudhary@amd.com>
69d7854 to
68861bf
Compare
| std::map<std::string, std::shared_ptr<scratchpad_info>>& scratchpad, | ||
| std::map<std::string, uint32_t>& labelpageindex, uint32_t control_packet_index, bool makeunique); | ||
| assembler_state(const assembler_state& rhs) = default; | ||
| assembler_state& operator=(const assembler_state& rhs) = default; |
There was a problem hiding this comment.
warning: explicitly defaulted copy assignment operator is implicitly deleted [clang-diagnostic-defaulted-function-deleted]
assembler_state& operator=(const assembler_state& rhs) = default;
^Additional context
src/cpp/common/assembler_state.h:148: copy assignment operator of 'assembler_state' is implicitly deleted because field 'm_data' is of reference type 'std::vector<std::shared_ptr<asm_data>> &'
std::vector<std::shared_ptr<asm_data>>& m_data;
^src/cpp/common/assembler_state.h:144: replace 'default' with 'delete'
assembler_state& operator=(const assembler_state& rhs) = default;
^
Problem solved by the commit
Aiebu change to support aie4 target
a. patch57 schema and control packet schema
b. actor_id's for tiles/mm2s/s2mm
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
NA
How problem was solved, alternative solutions (if any) and why they were rejected
NA
Risks (if any) associated the changes in the commit
What has been tested and how, request additional testing if necessary
Documentation impact (if any)
USAGE