-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use posix_memalign version of STREAM
Taken from https://www.cs.virginia.edu/stream/FTP/Code/Versions/stream_5-10_posix_memalign.c. This version avoids statically allocated arrays by using heap allocations. This avoids limitations of ELF/PE.
- Loading branch information
1 parent
1d9a110
commit da10cd8
Showing
3 changed files
with
309 additions
and
308 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This is a compliant version of the [STREAM benchmark](https://www.cs.virginia.edu/stream/). | ||
There are a few official such versions, which you can download [here](https://www.cs.virginia.edu/stream/FTP/Code/). | ||
The [original version](https://www.cs.virginia.edu/stream/FTP/Code/stream.c) places the input and ouput arrays into the static program segment. | ||
This causes the linker to complain because it breaks limits of ELF/PE (Linux/Windows executable file format) for big array sizes. | ||
We therefore took the [version using `posix_memalign`](https://www.cs.virginia.edu/stream/FTP/Code/Versions/stream_5-10_posix_memalign.c) for allocation. | ||
Some fixes were applied to make it compile with MSVC. |
Oops, something went wrong.