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
ea166bcd
Commit
ea166bcd
authored
Jun 10, 2019
by
Jayaram Bobba
Committed by
Sang Ik Lee
Jun 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build option to disable fast math (#2822)
* Added build option to disable fast math * Change option name
parent
ec2f69bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
CMakeLists.txt
src/ngraph/runtime/cpu/CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
ea166bcd
...
...
@@ -178,6 +178,7 @@ option(NGRAPH_LIB_VERSIONING_ENABLE "Enable shared library versioning" FALSE)
option
(
NGRAPH_PYTHON_BUILD_ENABLE
"Enable build nGraph python package wheel"
FALSE
)
option
(
NGRAPH_PLAIDML_ENABLE
"Enable the PlaidML backend"
${
PLAIDML_FOUND
}
)
option
(
NGRAPH_DISTRIBUTED_ENABLE
"Enable distributed training using MLSL/OpenMPI"
OFF
)
option
(
NGRAPH_FAST_MATH_ENABLE
"Enable fast math"
ON
)
option
(
NGRAPH_JSON_ENABLE
"Enable JSON based serialization and tracing features"
TRUE
)
option
(
NGRAPH_STATIC_LIB_ENABLE
"Enable build nGraph static library"
FALSE
)
...
...
src/ngraph/runtime/cpu/CMakeLists.txt
View file @
ea166bcd
...
...
@@ -171,6 +171,10 @@ if (NGRAPH_CPU_ENABLE)
add_dependencies
(
cpu_backend ext_halide
)
endif
()
if
(
NOT NGRAPH_FAST_MATH_ENABLE
)
target_compile_definitions
(
cpu_backend PRIVATE EIGEN_FAST_MATH=0
)
endif
()
if
(
OPENMP_FOUND
)
target_compile_options
(
cpu_backend PRIVATE
"
${
OpenMP_CXX_FLAGS
}
"
)
if
(
NOT WIN32
)
...
...
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