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
Paddle
Commits
cbd4c5cf
Commit
cbd4c5cf
authored
May 05, 2023
by
yuguo960516yuguo
Browse files
2.4.1-dtk23.04
parent
c0e3fa40
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
2 deletions
+7
-2
paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu
...e/fluid/operators/optimizers/distributed_fused_lamb_op.cu
+2
-2
paddle/phi/kernels/gpu/graph_send_recv_kernel.cu
paddle/phi/kernels/gpu/graph_send_recv_kernel.cu
+1
-0
paddle/phi/kernels/gpu/graph_send_ue_recv_kernel.cu
paddle/phi/kernels/gpu/graph_send_ue_recv_kernel.cu
+1
-0
paddle/phi/kernels/gpu/unique_kernel.cu
paddle/phi/kernels/gpu/unique_kernel.cu
+1
-0
paddle/phi/kernels/sparse/gpu/coalesce_kernel.cu
paddle/phi/kernels/sparse/gpu/coalesce_kernel.cu
+2
-0
No files found.
paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu
View file @
cbd4c5cf
...
@@ -884,7 +884,7 @@ static bool CreatePreMulScaleOpIfSupported(ncclDataType_t dtype,
...
@@ -884,7 +884,7 @@ static bool CreatePreMulScaleOpIfSupported(ncclDataType_t dtype,
ncclComm_t
comm
,
ncclComm_t
comm
,
const
void
*
scale
,
const
void
*
scale
,
ncclRedOp_t
*
op
)
{
ncclRedOp_t
*
op
)
{
#if NCCL_VERSION_CODE >= 21100
#if
(
NCCL_VERSION_CODE >= 21100
) && defined(PADDLE_WITH_NCCL)
int
ver
;
int
ver
;
PADDLE_ENFORCE_GPU_SUCCESS
(
platform
::
dynload
::
ncclGetVersion
(
&
ver
));
PADDLE_ENFORCE_GPU_SUCCESS
(
platform
::
dynload
::
ncclGetVersion
(
&
ver
));
if
(
ver
>=
21100
)
{
if
(
ver
>=
21100
)
{
...
@@ -965,7 +965,7 @@ static void NCCLSumWithScaleBase(const T *sendbuff,
...
@@ -965,7 +965,7 @@ static void NCCLSumWithScaleBase(const T *sendbuff,
sendbuff
,
recvbuff
,
recvcount
,
dtype
,
op
,
comm
,
stream
));
sendbuff
,
recvbuff
,
recvcount
,
dtype
,
op
,
comm
,
stream
));
}
}
#if NCCL_VERSION_CODE >= 21100
#if
(
NCCL_VERSION_CODE >= 21100
) && defined(PADDLE_WITH_NCCL)
if
(
should_destroy_op
)
{
if
(
should_destroy_op
)
{
VLOG
(
10
)
<<
"ncclRedOpDestroy starts"
;
VLOG
(
10
)
<<
"ncclRedOpDestroy starts"
;
PADDLE_ENFORCE_GPU_SUCCESS
(
platform
::
dynload
::
ncclRedOpDestroy
(
op
,
comm
));
PADDLE_ENFORCE_GPU_SUCCESS
(
platform
::
dynload
::
ncclRedOpDestroy
(
op
,
comm
));
...
...
paddle/phi/kernels/gpu/graph_send_recv_kernel.cu
View file @
cbd4c5cf
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include <thrust/device_vector.h>
#include <thrust/device_vector.h>
#include <thrust/fill.h>
#include <thrust/fill.h>
#include <thrust/execution_policy.h>
#include <algorithm>
#include <algorithm>
#include <vector>
#include <vector>
...
...
paddle/phi/kernels/gpu/graph_send_ue_recv_kernel.cu
View file @
cbd4c5cf
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include <thrust/device_vector.h>
#include <thrust/device_vector.h>
#include <thrust/fill.h>
#include <thrust/fill.h>
#include <thrust/execution_policy.h>
#include <algorithm>
#include <algorithm>
#include <vector>
#include <vector>
...
...
paddle/phi/kernels/gpu/unique_kernel.cu
View file @
cbd4c5cf
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include <thrust/scatter.h>
#include <thrust/scatter.h>
#include <thrust/sequence.h>
#include <thrust/sequence.h>
#include <thrust/unique.h>
#include <thrust/unique.h>
#include <thrust/sort.h>
#include <iostream>
#include <iostream>
#include <vector>
#include <vector>
...
...
paddle/phi/kernels/sparse/gpu/coalesce_kernel.cu
View file @
cbd4c5cf
...
@@ -22,6 +22,8 @@ limitations under the License. */
...
@@ -22,6 +22,8 @@ limitations under the License. */
#include "paddle/phi/kernels/funcs/sparse/flatten_indices.cu.h"
#include "paddle/phi/kernels/funcs/sparse/flatten_indices.cu.h"
#include "paddle/phi/kernels/funcs/sparse/scatter.cu.h"
#include "paddle/phi/kernels/funcs/sparse/scatter.cu.h"
#include "paddle/phi/kernels/funcs/sparse/utils.cu.h"
#include "paddle/phi/kernels/funcs/sparse/utils.cu.h"
#include <thrust/sort.h>
#include <thrust/unique.h>
namespace
phi
{
namespace
phi
{
namespace
sparse
{
namespace
sparse
{
...
...
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