Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
e3024a38
Commit
e3024a38
authored
Feb 11, 2019
by
Michał Karzyński
Committed by
Scott Cyphers
Feb 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up cmake project options (#2411)
parent
2a41d7b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
CMakeLists.txt
CMakeLists.txt
+11
-16
No files found.
CMakeLists.txt
View file @
e3024a38
...
@@ -118,11 +118,17 @@ option(NGRAPH_DEX_ONLY "Build CPU DEX without codegen" FALSE)
...
@@ -118,11 +118,17 @@ option(NGRAPH_DEX_ONLY "Build CPU DEX without codegen" FALSE)
option
(
NGRAPH_CODE_COVERAGE_ENABLE
"Enable code coverage data collection"
FALSE
)
option
(
NGRAPH_CODE_COVERAGE_ENABLE
"Enable code coverage data collection"
FALSE
)
option
(
NGRAPH_LIB_VERSIONING_ENABLE
"Enable shared library versioning"
FALSE
)
option
(
NGRAPH_LIB_VERSIONING_ENABLE
"Enable shared library versioning"
FALSE
)
option
(
NGRAPH_PYTHON_BUILD_ENABLE
"Enable build nGraph python package wheel"
FALSE
)
option
(
NGRAPH_PYTHON_BUILD_ENABLE
"Enable build nGraph python package wheel"
FALSE
)
option
(
NGRAPH_PLAIDML_ENABLE
"Enable the PlaidML backend"
${
PLAIDML_FOUND
}
)
if
(
NGRAPH_GPUH_ENABLE
)
if
(
NGRAPH_GPUH_ENABLE
)
set
(
NGRAPH_GPU_ENABLE TRUE
)
set
(
NGRAPH_GPU_ENABLE TRUE
)
endif
()
endif
()
if
(
NGRAPH_ONNX_IMPORT_ENABLE
)
option
(
NGRAPH_USE_SYSTEM_PROTOBUF
"Use system provided Protobuf shared object"
FALSE
)
option
(
NGRAPH_ONNXIFI_ENABLE
"Enable ONNX Interface for Framework Integration"
TRUE
)
endif
()
message
(
STATUS
"NGRAPH_UNIT_TEST_ENABLE:
${
NGRAPH_UNIT_TEST_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_UNIT_TEST_ENABLE:
${
NGRAPH_UNIT_TEST_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_TOOLS_ENABLE:
${
NGRAPH_TOOLS_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_TOOLS_ENABLE:
${
NGRAPH_TOOLS_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_CPU_ENABLE:
${
NGRAPH_CPU_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_CPU_ENABLE:
${
NGRAPH_CPU_ENABLE
}
"
)
...
@@ -140,22 +146,6 @@ message(STATUS "NGRAPH_CODE_COVERAGE_ENABLE: ${NGRAPH_CODE_COVERAGE_ENABLE}")
...
@@ -140,22 +146,6 @@ message(STATUS "NGRAPH_CODE_COVERAGE_ENABLE: ${NGRAPH_CODE_COVERAGE_ENABLE}")
message
(
STATUS
"NGRAPH_LIB_VERSIONING_ENABLE:
${
NGRAPH_LIB_VERSIONING_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_LIB_VERSIONING_ENABLE:
${
NGRAPH_LIB_VERSIONING_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_PYTHON_BUILD_ENABLE:
${
NGRAPH_PYTHON_BUILD_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_PYTHON_BUILD_ENABLE:
${
NGRAPH_PYTHON_BUILD_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_USE_PREBUILT_LLVM:
${
NGRAPH_USE_PREBUILT_LLVM
}
"
)
message
(
STATUS
"NGRAPH_USE_PREBUILT_LLVM:
${
NGRAPH_USE_PREBUILT_LLVM
}
"
)
if
(
NGRAPH_ONNX_IMPORT_ENABLE
)
option
(
NGRAPH_USE_SYSTEM_PROTOBUF
"Use system provided Protobuf shared object"
FALSE
)
option
(
NGRAPH_ONNXIFI_ENABLE
"Enable ONNX Interface for Framework Integration"
TRUE
)
endif
()
find_package
(
PlaidML CONFIG
)
option
(
NGRAPH_PLAIDML_ENABLE
"Enable the PlaidML backend"
${
PLAIDML_FOUND
}
)
if
(
NGRAPH_PLAIDML_ENABLE
)
if
(
NOT PLAIDML_FOUND
)
message
(
FATAL_ERROR
"PlaidML not installed"
)
endif
()
endif
()
message
(
STATUS
"NGRAPH_PLAIDML_ENABLE:
${
NGRAPH_PLAIDML_ENABLE
}
"
)
message
(
STATUS
"NGRAPH_PLAIDML_ENABLE:
${
NGRAPH_PLAIDML_ENABLE
}
"
)
#-----------------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------------
...
@@ -262,6 +252,11 @@ if (NGRAPH_CPU_ENABLE)
...
@@ -262,6 +252,11 @@ if (NGRAPH_CPU_ENABLE)
endif
()
endif
()
if
(
NGRAPH_PLAIDML_ENABLE
)
if
(
NGRAPH_PLAIDML_ENABLE
)
find_package
(
PlaidML CONFIG
)
if
(
NOT PLAIDML_FOUND
)
message
(
FATAL_ERROR
"PlaidML not installed"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DNGRAPH_PlaidML_ENABLE"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DNGRAPH_PlaidML_ENABLE"
)
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment