Stream is a memory benchmark available from https://www.cs.virginia.edu/stream/
AMD provides a recipe for building STREAM at https://www.amd.com/en/developer/zen-software-studio/applications/spack/stream-benchmark.html this uses spack which can be installed at https://unixcop.com/how-to-install-spack-on-ubuntu-22-04-lts/
I was able to build using the following:
prompt% /opt/AMD/aocc-compiler-4.1.0/bin/clang -O2 -fopenmp -mcmodel=large -ffp-contract=fast -fnt-store stream.c -DSTREAM_TYPE=double -DSTREAM_ARRAY_SIZE=100000000 -DNTIMES=100 -o stream
prompt% ./stream
