-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align matmul-c tests with matmul-julia tests
Updates the matmul-c square matrix scaling tests to align with mhauru's Julia tests. The benchmarks now perform 19 test with increasingly large square matrices. Single-threaded and multi-threaded matrix multiplication tests are both performed. The results are stored in the same results.csv file so that everything can be plotted together.
- Loading branch information
Showing
16 changed files
with
404 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* vim: noet:ts=2:sts=2:sw=2 */ | ||
|
||
/* SPDX-License-Identifier: MIT */ | ||
/* Copyright © 2024 David Llewellyn-Jones */ | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
#ifndef __MATRIX_STORE_H | ||
#define __MATRIX_STORE_H (1) | ||
|
||
typedef struct _Store { | ||
// Pointer to the data | ||
char * data; | ||
// The allocated size | ||
size_t size; | ||
// The size of the data store in the allocation | ||
size_t length; | ||
// The chunk size to allocate blocks in | ||
size_t chunk_size; | ||
} Store; | ||
|
||
Store * new_store(size_t chunk_size); | ||
Store * delete_store(Store *store); | ||
bool store_append(Store * const store, char const * const data, size_t length); | ||
bool store_setsize(Store * const store, size_t size); | ||
size_t store_printf (Store * const store, char const * const format, ...); | ||
size_t store_printf_append (Store * const store, char const * const format, ...); | ||
|
||
#endif /* __MATRIX_STORE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.