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
a3fceea5
Commit
a3fceea5
authored
Jul 11, 2019
by
Robert Kimball
Committed by
Scott Cyphers
Jul 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to support building with clang 6.0 (#3167)
parent
f4b487a4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
12 deletions
+3
-12
clang_4_0_flags.cmake
cmake/clang_4_0_flags.cmake
+0
-7
distributed.cpp
src/ngraph/distributed.cpp
+1
-1
pass.hpp
src/ngraph/pass/pass.hpp
+1
-1
quantized_conv.cpp
src/ngraph/runtime/cpu/builder/quantized_conv.cpp
+0
-1
cpu_tensor_view.cpp
src/ngraph/runtime/cpu/cpu_tensor_view.cpp
+1
-1
event_tracing.cpp
test/event_tracing.cpp
+0
-1
No files found.
cmake/clang_4_0_flags.cmake
View file @
a3fceea5
...
...
@@ -37,20 +37,13 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
add_compile_options
(
-Wno-zero-as-null-pointer-constant
)
endif
()
endif
()
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER
"4.0.0"
)
add_compile_options
(
-Wno-unused-lambda-capture
)
endif
()
endif
()
# should remove these
# add_compile_options(-Wno-old-style-cast)
add_compile_options
(
-Wno-float-conversion
)
add_compile_options
(
-Wno-sign-conversion
)
add_compile_options
(
-Wno-padded
)
add_compile_options
(
-Wno-sign-compare
)
add_compile_options
(
-Wno-unused-parameter
)
add_compile_options
(
-Wno-conversion
)
add_compile_options
(
-Wno-double-promotion
)
add_compile_options
(
-Wno-undefined-func-template
)
src/ngraph/distributed.cpp
View file @
a3fceea5
...
...
@@ -52,7 +52,7 @@ void ngraph::set_distributed_interface(std::unique_ptr<DistributedInterface> dis
DistributedInterface
*
ngraph
::
get_distributed_interface
()
{
if
(
0
==
s_distributed_interface
)
if
(
nullptr
==
s_distributed_interface
)
{
#ifdef NGRAPH_DISTRIBUTED_OMPI_ENABLE
set_distributed_interface
(
std
::
unique_ptr
<
DistributedInterface
>
(
...
...
src/ngraph/pass/pass.hpp
View file @
a3fceea5
...
...
@@ -77,7 +77,7 @@ protected:
private
:
PassPropertyMask
m_property
;
ManagerState
*
m_state
{
0
};
ManagerState
*
m_state
{
nullptr
};
};
class
ngraph
::
pass
::
ModulePass
:
public
PassBase
...
...
src/ngraph/runtime/cpu/builder/quantized_conv.cpp
View file @
a3fceea5
...
...
@@ -70,7 +70,6 @@ namespace ngraph
auto
&
deps
=
mkldnn_emitter
->
get_primitive_deps
(
conv_index
);
auto
functor
=
[
&
,
scales_size
,
conv_desc
,
conv_attr
,
deps
,
...
...
src/ngraph/runtime/cpu/cpu_tensor_view.cpp
View file @
a3fceea5
...
...
@@ -173,7 +173,7 @@ void runtime::cpu::CPUTensorView::copy_from(const ngraph::runtime::Tensor& sourc
dynamic_cast
<
ngraph
::
runtime
::
cpu
::
LayoutDescriptor
*>
(
this
->
get_tensor_layout
().
get
());
auto
other_tl
=
dynamic_cast
<
ngraph
::
runtime
::
cpu
::
LayoutDescriptor
*>
(
source
.
get_tensor_layout
().
get
());
if
((
this_tl
!=
NULL
)
&&
(
other_tl
!=
NULL
)
&&
(
*
this_tl
==
*
other_tl
))
if
((
this_tl
!=
nullptr
)
&&
(
other_tl
!=
nullptr
)
&&
(
*
this_tl
==
*
other_tl
))
{
// Direct copy
memcpy
(
get_data_ptr
(),
cpu_source
->
get_data_ptr
(),
get_size_in_bytes
());
...
...
test/event_tracing.cpp
View file @
a3fceea5
...
...
@@ -32,7 +32,6 @@ TEST(event_tracing, event_file)
// Set the environment variable to ensure logging
ngraph
::
Event
::
enable_event_tracing
();
std
::
vector
<
std
::
thread
>
threads
;
std
::
mutex
mtx
;
for
(
auto
i
=
0
;
i
<
10
;
i
++
)
{
int
id
=
i
;
...
...
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