Skip to content

Commit

Permalink
peanuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Minh Quan HO committed Mar 11, 2016
1 parent 4e6dc25 commit 5027b33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CXXFLAGS = -std=c++11 -O3
# ARCH ?= CPU
ARCH ?= GPU_OPENCL
# ARCH ?= GPU_CUDA
# ARCH ?= MPPA

ifeq ($(ARCH), MIC)
LIB_DIR = -L/opt/intel/opencl/
Expand All @@ -15,6 +16,8 @@ else ifeq ($(ARCH), CPU)
INCLUDE_DIR = -I/opt/intel/opencl/include
else ifeq ($(ARCH), GPU_OPENCL)
else ifeq ($(ARCH), GPU_CUDA)
else ifeq ($(ARCH), MPPA)
LIB_DIR = -L$(K1_TOOLCHAIN_DIR)/lib64
endif

# At least using embedded OpenCL headers
Expand Down
3 changes: 2 additions & 1 deletion run-ocl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ do
echo -n " $nb_elem $array_size "

# Run benchmark and get results on Copy, Add, Mul and Triad
# I observed a kernel bug of Intel driver, freeze sometimes on Xeon Phi
# I observed a kernel bug of Intel driver, freeze sometimes on Xeon Phi,
# so command is wrapped by timeout and repeated until it passed
timeout $TIMEOUT ./$BINARY_NAME $OPTS -s $nb_elem -n $NUMTIMES --device $DEVICE_ID | \
grep -e Copy -e Mul -e Add -e Triad > tmp.txt
while [ $? -ne 0 ]
Expand Down

0 comments on commit 5027b33

Please sign in to comment.