Skip to content

Commit

Permalink
doc(rtlib): add note for implicit floor instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Apr 10, 2024
1 parent 3b71549 commit 31660a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtlib/iFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ namespace __dp {
#ifdef DP_RTLIB_VERBOSE
cout << "enter addAccessInfo\n";
#endif
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4;
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4; // implicit "floor"
numAccesses[workerID]++;
AccessInfo &current = tempAddrChunks[workerID][tempAddrCount[workerID]++];
current.isRead = isRead;
Expand Down Expand Up @@ -783,7 +783,7 @@ namespace __dp {
}

//addAccessInfo(true, lid, var, addr);
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4;
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4; // implicit "floor"
AccessInfo &current = tempAddrChunks[workerID][tempAddrCount[workerID]++];
current.isRead = true;
current.lid = lid;
Expand Down Expand Up @@ -864,7 +864,7 @@ namespace __dp {
<< endl;
}

int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4;
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4; // implicit "floor"
AccessInfo &current = tempAddrChunks[workerID][tempAddrCount[workerID]++];
current.isRead = false;
current.lid = lid;
Expand Down Expand Up @@ -945,7 +945,7 @@ namespace __dp {
<< endl;
}

int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4;
int64_t workerID = ((addr - (addr % 4)) % (NUM_WORKERS*4)) / 4; // implicit "floor"
AccessInfo &current = tempAddrChunks[workerID][tempAddrCount[workerID]++];
current.isRead = false;
current.lid = 0;
Expand Down

0 comments on commit 31660a9

Please sign in to comment.