Skip to content

Commit

Permalink
🎨 sw: Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
suehtamacv committed Dec 5, 2023
1 parent 9056869 commit 7c3b1f7
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
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

0 comments on commit 7c3b1f7

Please sign in to comment.