Skip to content

Commit cf6b1f5

Browse files
committed
Try just writing at service side...
1 parent 55e74c2 commit cf6b1f5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/web/SpallocServiceAPIImplBuilder.java

+10-6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import uk.ac.manchester.spinnaker.machine.board.PhysicalCoords;
6464
import uk.ac.manchester.spinnaker.machine.board.TriadCoords;
6565
import uk.ac.manchester.spinnaker.machine.tags.IPTag;
66+
import uk.ac.manchester.spinnaker.machine.tags.TrafficIdentifier;
6667
import uk.ac.manchester.spinnaker.utils.validation.IPAddress;
6768

6869
/**
@@ -323,12 +324,15 @@ public void fastDataWrite(@ValidX int gatherX, @ValidY int gatherY,
323324
@ValidX int x, @ValidY int y, long address, byte[] bytes,
324325
AsyncResponse response) {
325326
bgAction(response, () -> {
326-
var fdi = j.getFastDataIn(
327-
new CoreLocation(gatherX, gatherY, gatherP),
328-
new IPTag(ethAddress, iptag, ethX, ethY, "localhost",
329-
null, true, null));
330-
fdi.fastWrite(new ChipLocation(x, y),
331-
new MemoryLocation(address), wrap(bytes));
327+
// var fdi = j.getFastDataIn(
328+
// new CoreLocation(gatherX, gatherY, gatherP),
329+
// new IPTag(ethAddress, iptag, ethX, ethY, "localhost",
330+
// null, true, TrafficIdentifier.BUFFERED.label));
331+
// fdi.fastWrite(new ChipLocation(x, y),
332+
// new MemoryLocation(address), wrap(bytes));
333+
var txrx = j.getTransceiver();
334+
txrx.writeMemory(new ChipLocation(gatherX + x, gatherY + y),
335+
new MemoryLocation(address), bytes);
332336
return accepted().build();
333337
});
334338
}

0 commit comments

Comments
 (0)