Skip to content

Commit

Permalink
build: demote deprication warnings to info level
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dubtsov committed Jun 12, 2019
1 parent a9ad9f6 commit 026eb52
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,25 @@ include(CMakePackageConfigHelpers)

if(MKLDNN_THREADING)
set(MKLDNN_CPU_RUNTIME "${MKLDNN_THREADING}" CACHE STRING "" FORCE)
message(WARNING "Using the obsolete way to specify the CPU runtime")
message(STATUS "Using the obsolete way to specify the CPU runtime. "
"Use MKLDNN_CPU_RUNTIME=${MKLDNN_CPU_RUNTIME} instead.")
endif()

if(MKLDNN_GPU_BACKEND)
if (MKLDNN_GPU_BACKEND STREQUAL "OPENCL")
set(MKLDNN_GPU_BACKEND "OCL" CACHE STRING "" FORCE)
message(WARNING "Using the obsolete way to specify the OpenCL runtime")
message(STATUS "Using the obsolete way to specify the OpenCL runtime. "
"Use MKLDNN_GPU_RUNTIME=OCL instead.")
endif()
set(MKLDNN_GPU_RUNTIME "${MKLDNN_GPU_BACKEND}" CACHE STRING "" FORCE)
message(WARNING "Using the obsolete way to specify the GPU runtime")
message(STATUS "Using the obsolete way to specify the GPU runtime. "
"Use MKLDNN_GPU_RUNTME=${MKLDNN_GPU_RUNTIME} instead.")
endif()

if (MKLDNN_GPU_RUNTIME STREQUAL "OPENCL")
set(MKLDNN_GPU_RUNTIME "OCL" CACHE STRING "" FORCE)
message(WARNING "Using the obsolete way to specify the OpenCL runtime")
message(STATUS "Using the obsolete way to specify the OpenCL runtime. "
"Use MKLDNN_GPU_RUNTIME=OCL instead.")
endif()

include("cmake/utils.cmake")
Expand Down

0 comments on commit 026eb52

Please sign in to comment.