Skip to content

Commit 51d7f6a

Browse files
committed
UNDO: Remove collective op fields
1 parent ff2aced commit 51d7f6a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

sw/runtime/api/sync_decls.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ typedef enum {
4646

4747
typedef union {
4848
struct __attribute__((__packed__)) {
49-
snrt_reduction_opcode_t reduction_opcode : SNRT_REDUCTION_OPCODE_WIDTH;
50-
snrt_collective_opcode_t collective_opcode
51-
: SNRT_COLLECTIVE_OPCODE_WIDTH;
49+
// snrt_reduction_opcode_t reduction_opcode : SNRT_REDUCTION_OPCODE_WIDTH;
50+
// snrt_collective_opcode_t collective_opcode
51+
// : SNRT_COLLECTIVE_OPCODE_WIDTH;
5252
uint64_t mask : SNRT_COLLECTIVE_MASK_WIDTH;
5353
} f;
5454
uint64_t w;

sw/runtime/src/dma.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ inline void snrt_dma_set_awuser(uint64_t field) {
8585
*/
8686
inline void snrt_dma_enable_multicast(uint64_t mask) {
8787
snrt_collective_op_t op;
88-
op.f.collective_opcode = SNRT_COLLECTIVE_MULTICAST;
88+
// op.f.collective_opcode = SNRT_COLLECTIVE_MULTICAST;
8989
op.f.mask = mask;
9090
snrt_dma_set_awuser(op.w);
9191
}
@@ -101,8 +101,8 @@ inline void snrt_dma_enable_multicast(uint64_t mask) {
101101
inline void snrt_dma_enable_reduction(uint64_t mask,
102102
snrt_reduction_opcode_t opcode) {
103103
snrt_collective_op_t op;
104-
op.f.reduction_opcode = opcode;
105-
op.f.collective_opcode = SNRT_COLLECTIVE_OFFLOAD_REDUCTION;
104+
// op.f.reduction_opcode = opcode;
105+
// op.f.collective_opcode = SNRT_COLLECTIVE_OFFLOAD_REDUCTION;
106106
op.f.mask = mask;
107107
snrt_dma_set_awuser(op.w);
108108
}

sw/runtime/src/sync.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ inline void snrt_set_awuser(uint64_t field) {
431431
*/
432432
inline void snrt_enable_multicast(uint64_t mask) {
433433
snrt_collective_op_t op;
434-
op.f.collective_opcode = SNRT_COLLECTIVE_MULTICAST;
434+
// op.f.collective_opcode = SNRT_COLLECTIVE_MULTICAST;
435435
op.f.mask = mask;
436436
snrt_set_awuser(op.w);
437437
}
@@ -466,8 +466,8 @@ inline void snrt_enable_reduction(uint64_t mask,
466466
}
467467

468468
snrt_collective_op_t op;
469-
op.f.reduction_opcode = opcode;
470-
op.f.collective_opcode = coll_opcode;
469+
// op.f.reduction_opcode = opcode;
470+
// op.f.collective_opcode = coll_opcode;
471471
op.f.mask = mask;
472472
snrt_set_awuser(op.w);
473473
}

0 commit comments

Comments
 (0)