Go to file
2016-10-12 10:41:50 -05:00
CL Update cl2.hpp 2016-05-03 11:41:00 +01:00
results Add performance results for HIP version. 2016-09-06 11:19:33 -05:00
.gitignore Add binary names to gitignore 2016-05-11 17:53:33 +01:00
ACCStream.cpp Add restrict to extra pointers in OpenACC 2016-06-30 16:24:32 +01:00
ACCStream.h Add copyright header to source with it missing 2016-05-12 12:53:26 +01:00
CMakeLists.txt Add support of HIP version of GPU-STREAM. 2016-09-05 23:41:01 -05:00
common.h.in Add License text to all files 2016-05-03 12:32:03 +01:00
CUDAStream.cu [CUDA] Fix device name output (OpenCL->CUDA) 2016-07-06 17:16:35 +01:00
CUDAStream.h Set thread block size in CUDA with a #define, and check that array size is multiple of it 2016-05-11 12:21:29 +01:00
HIPStream.cu move hip_runtime.h after copyright info 2016-10-12 10:41:50 -05:00
HIPStream.h Add support of HIP version of GPU-STREAM. 2016-09-05 23:41:01 -05:00
KokkosMakefile Fix Kokkos CMake so it works.. 2016-05-12 12:35:47 +01:00
KOKKOSStream.cpp Replace cudaDeviceSyncronise with Kokkos::fence() function 2016-06-30 16:32:52 +01:00
KOKKOSStream.hpp Adjusted the Kokkos implementation to fix view initialisation, and store local copies of views for lambda scoping 2016-05-06 21:02:44 +01:00
LICENSE Add License text to all files 2016-05-03 12:32:03 +01:00
main.cpp Add support of HIP version of GPU-STREAM. 2016-09-05 23:41:01 -05:00
OCLStream.cpp [OCL] Print build log if kernel compilation fails 2016-07-06 14:11:29 +01:00
OCLStream.h Add License text to all files 2016-05-03 12:32:03 +01:00
OMP3Stream.cpp Add copyright header to source with it missing 2016-05-12 12:53:26 +01:00
OMP3Stream.h Add copyright header to source with it missing 2016-05-12 12:53:26 +01:00
OMP45Stream.cpp Add copyright header to source with it missing 2016-05-12 12:53:26 +01:00
OMP45Stream.h Add copyright header to source with it missing 2016-05-12 12:53:26 +01:00
RAJAStream.cpp Switch data from 1.0, 2.0 and 3.0 to 0.1, 0.2, and 0.3 resp. 2016-05-11 15:51:19 +01:00
RAJAStream.hpp Fixed memory management for GPU, now working with OpenMP and CUDA 2016-05-06 13:17:04 +01:00
README.md Update citation 2016-07-19 15:46:08 +01:00
Stream.h Add License text to all files 2016-05-03 12:32:03 +01:00
SYCLStream.cpp [SYCL] Set WGSIZE to more sensible value for AMD Fiji 2016-07-07 09:40:16 +01:00
SYCLStream.h Require SYCL array size to be multiple of WGSIZE 2016-05-11 12:23:21 +01:00

GPU-STREAM

Measure memory transfer rates to/from global device memory on GPUs. This benchmark is similar in spirit, and based on, the STREAM benchmark [1] for CPUs.

Unlike other GPU memory bandwidth benchmarks this does not include the PCIe transfer time.

There are multiple implementations of this benchmark in a variety of programming models. Currently implemented are:

  • OpenCL
  • CUDA
  • OpenACC
  • OpenMP 3 and 4.5
  • Kokkos
  • RAJA
  • SYCL

Usage

CMake 3.2 or above is required. Drivers, compiler and software applicable to whichever implementation you would like to build against. Our build system is designed to only build implementations in programming models that your system supports.

Generate the Makefile with cmake .

Android (outdated instructions)

Assuming you have a recent Android NDK available, you can use the toolchain that it provides to build GPU-STREAM. You should first use the NDK to generate a standalone toolchain:

# Select a directory to install the toolchain to
ANDROID_NATIVE_TOOLCHAIN=/path/to/toolchain

${NDK}/build/tools/make-standalone-toolchain.sh \
  --platform=android-14 \
  --toolchain=arm-linux-androideabi-4.8 \
  --install-dir=${ANDROID_NATIVE_TOOLCHAIN}

Make sure that the OpenCL headers and library (libOpenCL.so) are available in ${ANDROID_NATIVE_TOOLCHAIN}/sysroot/usr/.

You should then be able to build GPU-STREAM:

make CXX=${ANDROID_NATIVE_TOOLCHAIN}/bin/arm-linux-androideabi-g++

Copy the executable and OpenCL kernels to the device:

adb push gpu-stream-ocl /data/local/tmp
adb push ocl-stream-kernels.cl /data/local/tmp

Run GPU-STREAM from an adb shell:

adb shell
cd /data/local/tmp

# Use float if device doesn't support double, and reduce array size
./gpu-stream-ocl --float -n 6 -s 10000000

Results

Sample results can be found in the results subdirectory. If you would like to submit updated results, please submit a Pull Request.

Citing

You can view the Poster and Extended Abstract on GPU-STREAM presented at SC'15. Please cite GPU-STREAM via this reference:

Deakin T, Price J, Martineau M, McIntosh-Smith S. GPU-STREAM v2.0: Benchmarking the achievable memory bandwidth of many-core processors across diverse parallel programming models. 2016. Paper presented at P^3MA Workshop at ISC High Performance, Frankfurt, Germany.

Other GPU-STREAM publications:

Deakin T, McIntosh-Smith S. GPU-STREAM: Benchmarking the achievable memory bandwidth of Graphics Processing Units. 2015. Poster session presented at IEEE/ACM SuperComputing, Austin, United States.

[1]: McCalpin, John D., 1995: "Memory Bandwidth and Machine Balance in Current High Performance Computers", IEEE Computer Society Technical Committee on Computer Architecture (TCCA) Newsletter, December 1995.