Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianheer committed Sep 13, 2024
1 parent 2f7dfcb commit 8e39dd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples_sw/apps/rdma_service/client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int main(int argc, char *argv[])
// For the desired number of repetitions per size, invoke the cThread-Function with the coyote-Operation
for(int i = 0; i < n_reps_thr; i++)
# ifdef VERBOSE
std::cout << "rdma_client: invoke the operation " << coper << std::endl;
std::cout << "rdma_client: invoke the operation " << std::endl;
# endif
cthread.invoke(coper, &sg);

Expand Down Expand Up @@ -253,7 +253,7 @@ int main(int argc, char *argv[])
// Repeated for the number of desired repetitions
for(int i = 0; i < n_reps_lat; i++) {
# ifdef VERBOSE
std::cout << "rdma_client: invoke the operation " << coper << std::endl;
std::cout << "rdma_client: invoke the operation " << std::endl;
# endif
cthread.invoke(coper, &sg);
while(cthread.checkCompleted(CoyoteOper::LOCAL_WRITE) < i+1) {
Expand Down
2 changes: 1 addition & 1 deletion examples_sw/apps/rdma_service/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int main(int argc, char *argv[])
// THR - issuing the same amount of "Write-Backs" to the client
for(int i = 0; i < n_reps_thr; i++)
# ifdef VERBOSE
std::cout << "rdma_server: invoke the operation " << coper << std::endl;
std::cout << "rdma_server: invoke the operation " << std::endl;
# endif
cthread->invoke(CoyoteOper::REMOTE_RDMA_WRITE, &sg);

Expand Down
4 changes: 2 additions & 2 deletions sw/src/bThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ void bThread::postCmd(uint64_t offs_3, uint64_t offs_2, uint64_t offs_1, uint64_
*/
void bThread::invoke(CoyoteOper coper, sgEntry *sg_list, sgFlags sg_flags, uint32_t n_sg) {
# ifdef VERBOSE
std::cout << "bThread: Call invoke for operation " << coper << " and the following number of sg-entries " << n_sg << std::endl;
std::cout << "bThread: Call invoke for a operation and the following number of sg-entries " << n_sg << std::endl;
# endif

// First of all: Check whether the coyote operation can be executed given the system settings in the FPGA-configuration
Expand Down Expand Up @@ -880,7 +880,7 @@ uint32_t bThread::checkCompleted(CoyoteOper coper) {
// Based on the type of operation, check completion via a read access to the configuration registers

# ifdef VERBOSE
std::cout << "bThread: Check for completion of a coper " << coper << std::endl;
std::cout << "bThread: Check for completion of a coper " << std::endl;
# endif

if(isCompletedLocalRead(coper)) {
Expand Down

0 comments on commit 8e39dd9

Please sign in to comment.