Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 9f0108f

Browse files
committed
Merge branch 'release_1.0.1_rc1' of ssh://git-ccr-1.devtools.intel.com:29418/dl_framework-intel_caffe
2 parents b8cb4f5 + 97cd241 commit 9f0108f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4300
-873
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ endif
6464
#################### MLSL ####################
6565

6666
ifeq ($(USE_MLSL), 1)
67+
RETURN_STRING=$(shell ./external/mlsl/prepare_mlsl.sh)
68+
MLSL_ROOT=$(firstword $(RETURN_STRING))
69+
MLSL_LDFLAGS=$(lastword $(RETURN_STRING))
6770
COMMON_FLAGS += -DUSE_MLSL=1
6871
LIBRARIES += mlsl
6972
INCLUDE_DIRS += $(MLSL_ROOT)/intel64/include

cmake/Dependencies.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,17 @@ endif()
9696

9797
# ---[ MLSL
9898
if(USE_MLSL)
99-
set(MLSL_ROOT "$ENV{MLSL_ROOT}")
99+
#--find mlsl in external/mkl
100+
set(script_cmd "./external/mlsl/prepare_mlsl.sh" )
101+
execute_process(COMMAND ${script_cmd}
102+
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
103+
RESULT_VARIABLE script_result
104+
OUTPUT_VARIABLE RETURN_STRING)
105+
separate_arguments(RETURN_STRING)
106+
list(GET RETURN_STRING 0 MLSL_ROOT_DIR)
107+
list(GET RETURN_STRING 1 MLSL_LIBRARIES)
108+
set(MLSL_ROOT "${MLSL_ROOT_DIR}")
109+
#set(MLSL_ROOT "$ENV{MLSL_ROOT}")
100110
if(NOT MLSL_ROOT)
101111
message(FATAL_ERROR "Unable to find MLSL package installation directory!")
102112
endif()

docker/standalone/cpu-centos/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ENV CLONE_TAG=master
4242
RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/intel/caffe.git . && \
4343
for req in $(cat python/requirements.txt) pydot; do pip --no-cache-dir install $req; done && \
4444
mkdir build && cd build && \
45-
cmake -DCPU_ONLY=1 -DUSE_MKL2017_AS_DEFAULT_ENGINE=1 -DCMAKE_BUILD_TYPE=Release .. && \
45+
cmake -DCPU_ONLY=1 -DCMAKE_BUILD_TYPE=Release .. && \
4646
make all -j"$(nproc)"
4747

4848
ENV PYCAFFE_ROOT $CAFFE_ROOT/python

docker/standalone/cpu-ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ENV CLONE_TAG=master
3131
RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/intel/caffe.git . && \
3232
for req in $(cat python/requirements.txt) pydot; do pip install $req; done && \
3333
mkdir build && cd build && \
34-
cmake -DCPU_ONLY=1 -DUSE_MKL2017_AS_DEFAULT_ENGINE=1 -DCMAKE_BUILD_TYPE=Release .. && \
34+
cmake -DCPU_ONLY=1 -DCMAKE_BUILD_TYPE=Release .. && \
3535
make all -j"$(nproc)"
3636

3737
ENV PYCAFFE_ROOT $CAFFE_ROOT/python

0 commit comments

Comments
 (0)