aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Mehdi Goli <mehdi.goli@codeplay.com>2017-03-08 18:20:06 +0000
committerGravatar Mehdi Goli <mehdi.goli@codeplay.com>2017-03-08 18:20:06 +0000
commitaadb7405a7362ce0160d8ecb3843dc33a59e809a (patch)
treec99a951569a13dd6d7c495cc7257f0a389bc92af /bench
parent5e9a1e7a7a7eccbb20a2c4eb44141727b0943f11 (diff)
Fixing typo in sycl Benchmark.
Diffstat (limited to 'bench')
-rw-r--r--bench/tensors/README4
-rw-r--r--bench/tensors/tensor_benchmarks_sycl_include_headers.cc4
2 files changed, 4 insertions, 4 deletions
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"