From aadb7405a7362ce0160d8ecb3843dc33a59e809a Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Wed, 8 Mar 2017 18:20:06 +0000 Subject: Fixing typo in sycl Benchmark. --- bench/tensors/README | 4 ++-- bench/tensors/tensor_benchmarks_sycl_include_headers.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bench') diff --git a/bench/tensors/README b/bench/tensors/README index c4b742749..69342cc9c 100644 --- a/bench/tensors/README +++ b/bench/tensors/README @@ -18,8 +18,8 @@ To compile and run the benchmark for SYCL, using ComputeCpp you currently need f 1. The device compilation pass that generates the device code (SYCL kernels and referenced device functions) and glue code needed by the host compiler to reference the device code from host code. {ComputeCpp_ROOT}/bin/compute++ -I ../../ -I {ComputeCpp_ROOT}/include/ -std=c++11 -mllvm -inline-threshold=1000 -Wno-ignored-attributes -sycl -intelspirmetadata -emit-llvm -no-serial-memop -sycl-compress-name -DBUILD_PLATFORM_SPIR -DNDBUG -O3 -c tensor_benchmarks_sycl.cc -DEIGEN_USE_SYCL=1 2. The host compilation pass that generates the final host binary. -clang++ -c benchmark_main.cc -pthread -I ../../ -D_GLIBCXX_USE_CXX11_ABI=0 -DEIGEN_USE_SYCL=1 -std=c++11 -o benchmark_main.o -clang++ tensor_benchmarks_sycl_include_headers.cc -pthread -I ../../ -I {ComputeCpp_ROOT}/include/ -L {ComputeCpp_ROOT}/lib/ -lComputeCpp -lOpenCL -D_GLIBCXX_USE_CXX11_ABI=0 -DEIGEN_USE_SYCL=1 -std=c++11 benchmark_main.o -o tensor_benchmark_sycl +clang++ -O3 -c benchmark_main.cc -pthread -I ../../ -D_GLIBCXX_USE_CXX11_ABI=0 -DEIGEN_USE_SYCL=1 -std=c++11 -o benchmark_main.o +clang++ -O3 tensor_benchmarks_sycl_include_headers.cc -pthread -I ../../ -I {ComputeCpp_ROOT}/include/ -L {ComputeCpp_ROOT}/lib/ -lComputeCpp -lOpenCL -D_GLIBCXX_USE_CXX11_ABI=0 -DEIGEN_USE_SYCL=1 -std=c++11 benchmark_main.o -o tensor_benchmark_sycl export LD_LIBRARY_PATH={ComputeCpp_ROOT}/lib 3. Run the benchmark ./tensor_benchmark_sycl diff --git a/bench/tensors/tensor_benchmarks_sycl_include_headers.cc b/bench/tensors/tensor_benchmarks_sycl_include_headers.cc index 4b3110b85..bcc3c4c79 100644 --- a/bench/tensors/tensor_benchmarks_sycl_include_headers.cc +++ b/bench/tensors/tensor_benchmarks_sycl_include_headers.cc @@ -1,2 +1,2 @@ -#include "/home/mehdi/Projects/upstr_benoit/upstr_7MAR17/bench/tensors/tensor_benchmarks_sycl.cc" -#include "/home/mehdi/Projects/upstr_benoit/upstr_7MAR17/bench/tensors/tensor_benchmarks_sycl.sycl" +#include "tensor_benchmarks_sycl.cc" +#include "tensor_benchmarks_sycl.sycl" -- cgit v1.2.3