Skip to content
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

sw: Fix formatting issues #7

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/dp-faxpy/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ int main() {
// Check and display results
if (cid == 0) {
long unsigned int performance = 1000 * 2 * dim / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE);

printf("\n----- (%d) axpy -----\n", dim);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/dp-fconv2d/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ int main() {
// Check and display results
if (cid == 0) {
long unsigned int performance = 1000 * 2 * f * f * r * c / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE);

printf("\n----- (%dx%d) dp fconv2d -----\n", r, c);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/dp-fdotp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ int main() {
// Check and display results
if (cid == 0) {
long unsigned int performance = 1000 * 2 * dotp_l.M / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE);

printf("\n----- (%d) dp fdotp -----\n", dotp_l.M);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/dp-fft/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 10 * NFFT * log2_nfft * 6 / 5 / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE);

printf("\n----- fft on %d samples -----\n", NFFT);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/dp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE);

printf("\n----- (%dx%d) dp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/hp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);

printf("\n----- (%dx%d) hp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/sdotp-bp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 8);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 8);

printf("\n----- (%dx%d) sdotp bp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/sdotp-hp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);

printf("\n----- (%dx%d) sdotp hp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/sp-fft/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 10 * NFFT * log2_nfft * 6 / 5 / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);

printf("\n----- fft on %d samples -----\n", NFFT);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/sp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);

printf("\n----- (%dx%d) sp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/widening-bp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 4);

printf("\n----- (%dx%d) widening bp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
3 changes: 2 additions & 1 deletion sw/spatzBenchmarks/widening-hp-fmatmul/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ int main() {
if (cid == 0) {
long unsigned int performance =
1000 * 2 * gemm_l.M * gemm_l.N * gemm_l.K / timer;
long unsigned int utilization = performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);
long unsigned int utilization =
performance / (2 * num_cores * SNRT_NFPU_PER_CORE * 2);

printf("\n----- (%dx%d) widening hp fmatmul -----\n", gemm_l.M, gemm_l.N);
printf("The execution took %u cycles.\n", timer);
Expand Down
2 changes: 1 addition & 1 deletion util/vendor/run_clang_format.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# MIT License

Expand Down
Loading