minor fixes
This commit is contained in:
@@ -56,7 +56,7 @@ int main(int argc, const char *argv[]) {
|
||||
// # Start here or right after function signature
|
||||
uint64_t start = start_tsc();
|
||||
|
||||
// # (8 + 55N - 55 + 144 + 4 + 8 + 4 + 10)*n_p*n_iter
|
||||
// # (8 + 55N - 55 + 192 + 4 + 8 + 4 + 10)*n_p*n_iter
|
||||
for (int t = 0; t < n_iter; t++) {
|
||||
// Pass1: conmpute all forces from the current state
|
||||
for (int i = 0; i < n_p; i++) {
|
||||
@@ -71,7 +71,7 @@ int main(int argc, const char *argv[]) {
|
||||
// # 55N - 55 flops
|
||||
compute_repulsive_effects_from_pedestrians(pedestrians, &p, n_p);
|
||||
|
||||
// # 144 flops
|
||||
// # 192 flops
|
||||
compute_repulsive_effects_from_borders(board, &p);
|
||||
}
|
||||
// Pass2: integrate the forces and update the current state
|
||||
@@ -92,7 +92,7 @@ int main(int argc, const char *argv[]) {
|
||||
p.e = (p.destination - p.curr_pos) / (p.destination - p.curr_pos).norm();
|
||||
}
|
||||
}
|
||||
long long W = (long long)(8 + 55 * n_p - 55 + 144 + 4 + 8 + 4 + 10) * n_p * n_iter;
|
||||
long long W = (long long)(8 + 55 * n_p - 55 + 192 + 4 + 8 + 4 + 10) * n_p * n_iter;
|
||||
std::cout << "W(n): ";
|
||||
std::cout << W;
|
||||
std::cout << " flops\n";
|
||||
|
||||
Reference in New Issue
Block a user