Skip to content

Commit

Permalink
Merge pull request #35 from fujunwei/inference-engine
Browse files Browse the repository at this point in the history
Fix compiled errors after upgrading openvino
  • Loading branch information
huningxin authored Jun 2, 2020
2 parents bf3bd89 + e5a2c5f commit 74a844d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
4 changes: 3 additions & 1 deletion services/ml/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ source_set("ie") {
"//third_party/libinference_engine:libMKLDNNPlugin",
"//third_party/libinference_engine:libclDNNPlugin",
"//third_party/libinference_engine:libinference_engine",
"//third_party/libinference_engine:libmyriadPlugin",
]
if (is_linux) {
deps += [ "//third_party/libinference_engine:libmyriadPlugin" ]
}
}

source_set("lib") {
Expand Down
34 changes: 20 additions & 14 deletions third_party/libinference_engine/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,7 @@ shared_library("libinference_engine") {
]
output_name = "inference_engine"

libs = [
"libiomp5md.lib"
]
libs = [ "libiomp5md.lib" ]
}
}

Expand Down Expand Up @@ -1334,9 +1332,7 @@ shared_library("libMKLDNNPlugin") {
} else if (is_win) {
output_name = "MKLDNNPlugin"

libs = [
"libiomp5md.lib"
]
libs = [ "libiomp5md.lib" ]
}
}

Expand Down Expand Up @@ -2789,10 +2785,16 @@ shared_library("libclDNNPlugin") {

defines += [ "EXPORT_NEURAL_SYMBOLS" ]

lib_dirs = [ "dldt/inference-engine/thirdparty/clDNN/common/intel_ocl_icd/6.3/windows/Release/lib/x64/" ]
lib_dirs = [
"dldt/inference-engine/thirdparty/clDNN/common/intel_ocl_icd/6.3/windows/Release/lib/x64/",
"omp/lib/",
]
include_dirs += [ "dldt/inference-engine/thirdparty/clDNN/common/intel_ocl_icd/6.3/windows/include/" ]

libs = [ "OpenCL.lib" ]
libs = [
"OpenCL.lib",
"libiomp5md.lib",
]
}
}

Expand Down Expand Up @@ -2848,7 +2850,7 @@ static_library("libmvnc") {
#"dldt/inference-engine/thirdparty/movidius/vpualHost_clone_repo.sh",
]
if (is_win) {
source += [
sources += [
"dldt/inference-engine/thirdparty/movidius/XLink/pc/Win/include/win_pthread.h",
"dldt/inference-engine/thirdparty/movidius/XLink/pc/Win/include/win_semaphore.h",
"dldt/inference-engine/thirdparty/movidius/XLink/pc/Win/include/win_time.h",
Expand Down Expand Up @@ -3017,12 +3019,12 @@ shared_library("libmyriadPlugin") {
"dldt/inference-engine/src/vpu/graph_transformer/src/graph_transformer.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/allocator/allocator.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/allocator/shaves.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/conv_tiling/hw_stage_tiler.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/conv_tiling/hw_convolution_tiler.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/utility.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/conv_tiling/hw_stage_tiler.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/pooling_tiling/hw_pooling_stage_tiler.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/pooling_tiling/hw_pooling_tiler.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/tiling.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/hw/utility.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/pass_manager.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/add_copy_for_outputs_inside_network.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/add_reorder_inputs_to_channel_minor.cpp",
Expand All @@ -3049,7 +3051,6 @@ shared_library("libmyriadPlugin") {
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/merge_parallel_fc.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/merge_permute_stages.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/merge_relu_and_bias.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/strided_slice.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/process_special_stages.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/replace_deconv_by_conv.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/replace_fc_by_conv.cpp",
Expand All @@ -3063,6 +3064,7 @@ shared_library("libmyriadPlugin") {
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/split_hw_conv_and_pool.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/split_hw_depth_convolution.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/split_pool3d_into_2d.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/strided_slice.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/sw_conv_adaptation.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/sw_deconv_adaptation.cpp",
"dldt/inference-engine/src/vpu/graph_transformer/src/middleend/passes/sw_fc_adaptation.cpp",
Expand Down Expand Up @@ -3232,8 +3234,8 @@ shared_library("libmyriadPlugin") {

copy("copy_vpu_firmware") {
sources = [
"dldt/inference-engine/temp/vpu/firmware/usb-ma2x8x.mvcmd",
"dldt/inference-engine/temp/vpu/firmware/usb-ma2450.mvcmd",
"dldt/inference-engine/temp/vpu/firmware/usb-ma2x8x.mvcmd",
]
outputs = [
"$root_out_dir/{{source_file_part}}",
Expand Down Expand Up @@ -3393,10 +3395,14 @@ shared_library("libGNAPlugin") {
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
configs += [ "//build/config/gcc:symbol_visibility_default" ]
} else if (is_win) {
lib_dirs = [ "gna/win64/x64" ]
lib_dirs = [
"gna/win64/x64",
"omp/lib/",
]
libs = [
# The gna library come form openvinotoolkit/R3/inference_engine.
"gna.lib",
"libiomp5md.lib",
]
output_name = "GNAPlugin"
}
Expand Down

0 comments on commit 74a844d

Please sign in to comment.