Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
1329be96
Unverified
Commit
1329be96
authored
Feb 16, 2023
by
Songqing Zhang
Committed by
GitHub
Feb 16, 2023
Browse files
[Misc] Fix build warnings (#5303)
Co-authored-by:
songqing.zhang
<
songqing.zhang@shopee.com
>
parent
85dfcea0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
src/array/cpu/spmm.h
src/array/cpu/spmm.h
+1
-2
src/array/libra_partition.cc
src/array/libra_partition.cc
+1
-0
src/partition/ndarray_partition.cc
src/partition/ndarray_partition.cc
+3
-1
tests/dist/cpp/rpc_client.cc
tests/dist/cpp/rpc_client.cc
+0
-1
No files found.
src/array/cpu/spmm.h
View file @
1329be96
...
@@ -130,7 +130,6 @@ void SpMMSumCsr(
...
@@ -130,7 +130,6 @@ void SpMMSumCsr(
const
IdType
*
edges
=
csr
.
data
.
Ptr
<
IdType
>
();
const
IdType
*
edges
=
csr
.
data
.
Ptr
<
IdType
>
();
const
DType
*
X
=
ufeat
.
Ptr
<
DType
>
();
const
DType
*
X
=
ufeat
.
Ptr
<
DType
>
();
const
DType
*
W
=
efeat
.
Ptr
<
DType
>
();
const
DType
*
W
=
efeat
.
Ptr
<
DType
>
();
int64_t
dim
=
bcast
.
out_len
;
DType
*
O
=
out
.
Ptr
<
DType
>
();
DType
*
O
=
out
.
Ptr
<
DType
>
();
CHECK_NOTNULL
(
indptr
);
CHECK_NOTNULL
(
indptr
);
CHECK_NOTNULL
(
O
);
CHECK_NOTNULL
(
O
);
...
@@ -160,7 +159,7 @@ void SpMMSumCsr(
...
@@ -160,7 +159,7 @@ void SpMMSumCsr(
ElemWiseUpd
*
cpu_spec
=
(
asm_kernel_ptr
&&
asm_kernel_ptr
->
applicable
())
ElemWiseUpd
*
cpu_spec
=
(
asm_kernel_ptr
&&
asm_kernel_ptr
->
applicable
())
?
asm_kernel_ptr
.
get
()
?
asm_kernel_ptr
.
get
()
:
nullptr
;
:
nullptr
;
if
(
cpu_spec
&&
dim
>
16
&&
!
bcast
.
use_bcast
)
{
if
(
cpu_spec
&&
bcast
.
out_len
>
16
&&
!
bcast
.
use_bcast
)
{
SpMMSumCsrXbyak
<
IdType
,
DType
,
Op
>
(
cpu_spec
,
bcast
,
csr
,
X
,
W
,
O
);
SpMMSumCsrXbyak
<
IdType
,
DType
,
Op
>
(
cpu_spec
,
bcast
,
csr
,
X
,
W
,
O
);
}
else
{
}
else
{
#endif // USE_AVX
#endif // USE_AVX
...
...
src/array/libra_partition.cc
View file @
1329be96
...
@@ -41,6 +41,7 @@ int32_t Ver2partition(IdType in_val, int64_t *node_map, int32_t num_parts) {
...
@@ -41,6 +41,7 @@ int32_t Ver2partition(IdType in_val, int64_t *node_map, int32_t num_parts) {
pos
=
pos
+
1
;
pos
=
pos
+
1
;
}
}
LOG
(
FATAL
)
<<
"Error: Unexpected output in Ver2partition!"
;
LOG
(
FATAL
)
<<
"Error: Unexpected output in Ver2partition!"
;
return
-
1
;
}
}
/**
/**
...
...
src/partition/ndarray_partition.cc
View file @
1329be96
...
@@ -183,11 +183,13 @@ class RangePartition : public NDArrayPartition {
...
@@ -183,11 +183,13 @@ class RangePartition : public NDArrayPartition {
<<
") for "
<<
") for "
"partition of size "
"partition of size "
<<
NumParts
()
<<
"."
;
<<
NumParts
()
<<
"."
;
int64_t
part_size
=
-
1
;
ATEN_ID_TYPE_SWITCH
(
range_cpu_
->
dtype
,
RangeType
,
{
ATEN_ID_TYPE_SWITCH
(
range_cpu_
->
dtype
,
RangeType
,
{
const
RangeType
*
const
ptr
=
const
RangeType
*
const
ptr
=
static_cast
<
const
RangeType
*>
(
range_cpu_
->
data
);
static_cast
<
const
RangeType
*>
(
range_cpu_
->
data
);
return
ptr
[
part_id
+
1
]
-
ptr
[
part_id
];
part_size
=
ptr
[
part_id
+
1
]
-
ptr
[
part_id
];
});
});
return
part_size
;
}
}
private:
private:
...
...
tests/dist/cpp/rpc_client.cc
View file @
1329be96
...
@@ -47,7 +47,6 @@ class RPCClient {
...
@@ -47,7 +47,6 @@ class RPCClient {
++
recv_id
;
++
recv_id
;
}
}
}
}
const
int
num_machines
=
ips_
.
size
();
for
(
int
i
=
0
;
i
<
kNumMessage
;
++
i
)
{
for
(
int
i
=
0
;
i
<
kNumMessage
;
++
i
)
{
for
(
int
n
=
0
;
n
<
recv_id
;
++
n
)
{
for
(
int
n
=
0
;
n
<
recv_id
;
++
n
)
{
dgl
::
rpc
::
RPCMessage
msg
;
dgl
::
rpc
::
RPCMessage
msg
;
...
...
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