Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
qizzz committed Sep 14, 2023
1 parent 6107503 commit 19c7219
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DPDPU/Common/Source/Host/DMABuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ DMABuffer::Allocate(

if (((MsgHeader*)MsgBuf)->MsgId == BUFF_MSG_B2F_RESPOND_ID) {
BufferId = ((BuffMsgB2FRespondId*)(MsgBuf + sizeof(MsgHeader)))->BufferId;
printf("DMABuffer: connected to the back end with assigned buffer Id (%d)\n", BufferId);
printf("DMABuffer: connected to the back end with assigned buffer id (%d)\n", BufferId);
}
else {
printf("DMABuffer: wrong message from the back end\n");
Expand Down
5 changes: 4 additions & 1 deletion DPDPU/StorageEngine/DDSApplication/DDSApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ int main()
DummyCallback,
&ioCount
);
if (result != DDS_ERROR_CODE_SUCCESS) {
if (result != DDS_ERROR_CODE_SUCCESS && result != DDS_ERROR_CODE_IO_PENDING) {
cout << "Failed to write file" << endl;
}
else {
Expand Down Expand Up @@ -432,19 +432,22 @@ int main()

cout << "Data has been read: " << readBuffer << endl;

/*
cout << "Benchmarking callback-based I/O" << endl;
BenchmarkIO(
store,
fileId,
maxFileSize
);
cout << "Benchmarking polling-based I/O" << endl;
BenchmarkIOWithPolling(
store,
fileId,
maxFileSize
);
*/

return 0;
}
2 changes: 1 addition & 1 deletion DPDPU/StorageEngine/DDSFrontEnd/DDSFrontEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ DDSFrontEnd::ReadFileScatter(
ErrorCodeT
DDSFrontEnd::WriteFile(
FileIdT FileId,
BufferT DestBuffer,
BufferT SourceBuffer,
FileIOSizeT BytesToWrite,
FileIOSizeT* BytesWritten,
ReadWriteCallback Callback,
Expand Down

0 comments on commit 19c7219

Please sign in to comment.