Giter VIP home page Giter VIP logo

hexciton_benchmark's Issues

Write cmake_ocl.sh

I've added CMake files to the project, which should simplify building with different SDKs a lot. benchmark_ocl can now be built like follows (NOTE: load cmake module on HLRN; add OpenCL-specific CMake stuff as needed).

mkdir build
cd build

cmake -DCMAKE_BUILD_TYPE=Release -DDEVICE_TYPE=CL_DEVICE_TYPE_CPU -DNUM_ITERATIONS=5 -DNUM_WARMUP=1 -DINTEL_PREFETCH_LEVEL=0 -DVEC_LENGTH=4 -DVEC_LENGTH_AUTO=16 -DOCL_BUILD_OPTIONS=""  ..

make -j

This will create a build of benchmark_ocl and all dependencies inside the folder build. The variables from the old make_ocl.sh are just passed through via -D ... here, so in a cmake_ocl.sh script, the build function can be replaced by a cmake call like above.

The build dir should be called build.<archictecture>.<sdk_suffix>. The script could then take additional input via the environment or command line:

# example values
BUILD_DIR_SUFFIX= # e.g. intel_sdk_for_opencl_2017_7.0.0.2511_x64
CMAKE_OPTIONS="-DOpenCL_FOUND=True -DOpenCL_LIBRARY=${HOME}/Software/ocl_sdks/intel/intel_sdk_for_opencl_2017_7.0.0.2511_x64/opt/intel/opencl/exp-runtime-2.1/lib64/libintelocl_2_1.so"

Good luck. :-)

deviation question

Could you please list the deviation (host and device results) of all the OpenCL kernels running on a CPU or a GPU ?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.