-
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.
Revert to non-posic_memalign version of STREAM
Also request medium mcmodel to support large arrays with STREAM. This reverts commit da10cd8.
- Loading branch information
1 parent
bc2ecc3
commit bdc3853
Showing
3 changed files
with
321 additions
and
309 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
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. | ||
This example is based on the [original version](https://www.cs.virginia.edu/stream/FTP/Code/stream.c) which places the input and ouput arrays into the static program segment. | ||
This requires to set corresponding command line flags, notable `-mcmodel=medium` for gcc, clang and icpx. | ||
Unfortunately, there is no equivalent for MSVC und you are therefore limited in the values of `STREAM_ARRAY_SIZE`. | ||
For MSVC, you can checkout the STREAM [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 this version regardless to make it compile with MSVC. |
Oops, something went wrong.