mgpusim
mgpusim copied to clipboard
Can't Compile v4 with local copy of akita
To Reproduce MGPUSim version of commit ID: 162082e
Command that recreates the problem
go build
Current behavior
go build
# github.com/sarchlab/mgpusim/v4/protocol
../../protocol/cuprotocol.go:48:10: cannot use b.src (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:49:10: cannot use b.dst (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:92:10: cannot use b.src (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:93:10: cannot use b.dst (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:136:10: cannot use b.src (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:137:10: cannot use b.dst (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:180:10: cannot use b.src (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:181:10: cannot use b.dst (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:258:17: cannot use b.src (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:259:17: cannot use b.dst (variable of type sim.Port) as sim.RemotePort value in assignment
../../protocol/cuprotocol.go:259:17: too many errors
# github.com/sarchlab/mgpusim/v4/timing/pagemigrationcontroller
../../timing/pagemigrationcontroller/pmc.go:19:28: undefined: mem.LowModuleFinder
../../timing/pagemigrationcontroller/pmc.go:40:20: undefined: mem.LowModuleFinder
../../timing/pagemigrationcontroller/pmc.go:183:27: cannot use req.Src (variable of type sim.RemotePort) as sim.Port value in assignment: sim.RemotePort does not implement sim.Port (missing method AcceptHook)
../../timing/pagemigrationcontroller/pmc.go:196:12: cannot use e.localMemPort (variable of type sim.Port) as sim.RemotePort value in argument to mem.ReadReqBuilder{}.WithSrc
../../timing/pagemigrationcontroller/pmc.go:320:12: cannot use e.localMemPort (variable of type sim.Port) as sim.RemotePort value in argument to mem.WriteReqBuilder{}.WithSrc
../../timing/pagemigrationcontroller/pmc.go:378:12: cannot use e.currentMigrationRequest.Src (variable of type sim.RemotePort) as sim.Port value in argument to PageMigrationRspFromPMCBuilder{}.WithSrc(e.ctrlPort).WithDst: sim.RemotePort does not implement sim.Port (missing method AcceptHook)
../../timing/pagemigrationcontroller/pmc.go:417:20: undefined: mem.LowModuleFinder
../../timing/pagemigrationcontroller/pmc.go:418:20: undefined: mem.LowModuleFinder
../../timing/pagemigrationcontroller/pmc.go:424:21: undefined: sim.NewLimitNumMsgPort
../../timing/pagemigrationcontroller/pmc.go:427:23: undefined: sim.NewLimitNumMsgPort
../../timing/pagemigrationcontroller/pmc.go:427:23: too many errors
# github.com/sarchlab/mgpusim/v4/timing/rdma
../../timing/rdma/builder.go:12:29: undefined: mem.LowModuleFinder
../../timing/rdma/builder.go:13:29: undefined: mem.LowModuleFinder
../../timing/rdma/builder.go:44:41: undefined: mem.LowModuleFinder
../../timing/rdma/builder.go:50:42: undefined: mem.LowModuleFinder
../../timing/rdma/builder.go:65:18: undefined: sim.NewLimitNumMsgPort
../../timing/rdma/builder.go:66:18: undefined: sim.NewLimitNumMsgPort
../../timing/rdma/builder.go:67:22: undefined: sim.NewLimitNumMsgPort
../../timing/rdma/comp.go:36:29: undefined: mem.LowModuleFinder
../../timing/rdma/comp.go:37:29: undefined: mem.LowModuleFinder
../../timing/rdma/comp.go:44:45: undefined: mem.LowModuleFinder
../../timing/rdma/builder.go:67:22: too many errors
# github.com/sarchlab/mgpusim/v4/timing/rob
../../timing/rob/builder.go:70:19: undefined: sim.NewLimitNumMsgPort
../../timing/rob/builder.go:77:22: undefined: sim.NewLimitNumMsgPort
../../timing/rob/builder.go:84:23: undefined: sim.NewLimitNumMsgPort
../../timing/rob/rob.go:67:11: cannot use b.controlPort (variable of type sim.Port) as sim.RemotePort value in argument to mem.ControlMsgBuilder{}.WithSrc
../../timing/rob/rob.go:91:11: cannot use b.controlPort (variable of type sim.Port) as sim.RemotePort value in argument to mem.ControlMsgBuilder{}.WithSrc
../../timing/rob/rob.go:147:33: cannot use b.bottomPort (variable of type sim.Port) as sim.RemotePort value in assignment
../../timing/rob/rob.go:198:19: cannot use b.topPort (variable of type sim.Port) as sim.RemotePort value in assignment
../../timing/rob/rob.go:250:11: cannot use b.BottomUnit (variable of type sim.Port) as sim.RemotePort value in argument to mem.ReadReqBuilder{}.WithAddress(req.Address).WithByteSize(req.AccessByteSize).WithPID(req.PID).WithDst
../../timing/rob/rob.go:260:11: cannot use b.BottomUnit (variable of type sim.Port) as sim.RemotePort value in argument to mem.WriteReqBuilder{}.WithAddress(req.Address).WithPID(req.PID).WithData(req.Data).WithDirtyMask(req.DirtyMask).WithDst
Expected behavior Should have compiled the main.go file in samples/pagerank
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
uncommented the replace github.com/sarchlab/akita/v4 line in go.mod after cloning akita in the correct folder as specified in go.mod
Have you tried to upgrade your local version of Akita?