-
Notifications
You must be signed in to change notification settings - Fork 107
Pvelesko/rename executables to main #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
273cc5a
e9c63af
d5bcf24
1f5bd2a
a13db7f
ed6b06c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,5 +87,6 @@ int main(int argc, char* argv[]) | |
| free(label); | ||
| free(data); | ||
|
|
||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,6 +179,7 @@ int main(int argc, char* argv[]) | |
|
|
||
| int count; | ||
| q.memcpy(&count, d_count, sizeof(int)).wait(); | ||
| bool ok = (count == count_ref); | ||
| printf("%s\n", (count == count_ref) ? "PASS" : "FAIL"); | ||
|
|
||
| // printf("Accuracy = %f\n", (float)count / nrows); | ||
|
|
@@ -213,5 +214,6 @@ int main(int argc, char* argv[]) | |
| free(label); | ||
| free(data); | ||
|
|
||
| if (!ok) return 1; | ||
|
||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -444,5 +444,6 @@ int main(int argc, char *argv[]) | |
|
|
||
| free(phi_host); | ||
| free(u_host); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -444,5 +444,6 @@ int main(int argc, char *argv[]) | |
|
|
||
| free(phi_host); | ||
| free(u_host); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -427,5 +427,6 @@ int main(int argc, char *argv[]) | |
| free(d_Fx); | ||
| free(d_Fy); | ||
| free(d_Fz); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -496,5 +496,6 @@ int main(int argc, char *argv[]) | |
| free(phi_host); | ||
| free(u_host); | ||
|
|
||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,5 +159,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,5 +159,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,5 +133,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,5 +172,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (!ok) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,5 +186,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (absmax_error > 1e-3f) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,5 +186,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (absmax_error > 1e-3f) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,5 +168,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (absmax_error > 1e-3f) return 1; | ||
| return 0; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,5 +177,6 @@ int main(int argc, char* argv[]) | |
| free(v); | ||
| free(g); | ||
| free(r); | ||
| if (absmax_error > 1e-3f) return 1; | ||
| return 0; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The added
okdeclaration appears to be introduced with inconsistent indentation (tab) and may be scoped too narrowly (e.g., inside a loop/block) while being used later for the final exit status. Declareokin the outer scope ofmainand assign to it (do not redeclare) so the finalif (!ok) return 1;reliably reflects the verification result.