Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu committed Feb 15, 2022
1 parent 8c29718 commit ef6a4d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paddle/fluid/platform/device/gpu/cuda/cuda_device_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ limitations under the License. */
#include "paddle/fluid/platform/bfloat16.h"
#include "paddle/fluid/platform/complex.h"
#include "paddle/fluid/platform/float16.h"
#include "paddle/pten/core/enforce.h"

namespace paddle {
namespace platform {
Expand Down Expand Up @@ -70,8 +71,8 @@ __forceinline__ __device__ bfloat16 CudaShuffleDownSync(unsigned mask,
return bfloat16(__shfl_down_sync(mask, static_cast<nv_bfloat16>(val),
static_cast<unsigned>(delta), width));
#else
PADDLE_THROW(platform::errors::Unimplemented(
"__shfl_down_sync with bfloat16 is not supported on cuda <= 11"));
PADDLE_ENFORCE(
false, "__shfl_down_sync with bfloat16 is not supported on cuda <= 11.");
#endif
}

Expand Down

1 comment on commit ef6a4d3

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on ef6a4d3 Feb 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #39485 Commit ID: ef6a4d3 contains failed CI.

🔹 Failed: PR-CI-MLU

Unknown Failed
2022-02-16 00:42:04 paddle/fluid/operators/metrics/CMakeFiles/accuracy_op.dir/build.make:75: recipe for target 'paddle/fluid/operators/metrics/CMakeFiles/accuracy_op.dir/accuracy_op_mlu.cc.o' failed
2022-02-16 00:42:04 make[2]: *** [paddle/fluid/operators/metrics/CMakeFiles/accuracy_op.dir/accuracy_op_mlu.cc.o] Error 1
2022-02-16 00:42:04 CMakeFiles/Makefile2:203273: recipe for target 'paddle/fluid/operators/metrics/CMakeFiles/accuracy_op.dir/all' failed
2022-02-16 00:42:04 make[1]: *** [paddle/fluid/operators/metrics/CMakeFiles/accuracy_op.dir/all] Error 2
2022-02-16 00:42:07 [ 36%] Built target scale_loss_grad_op_handle
2022-02-16 00:42:07 Makefile:140: recipe for target 'all' failed
2022-02-16 00:42:07 make: *** [all] Error 2
2022-02-16 00:42:07 + build_error=2
2022-02-16 00:42:07 + collect_ccache_hits
2022-02-16 00:42:07 ++ ccache -s
2022-02-16 00:42:07 ++ grep 'cache hit rate'
2022-02-16 00:42:07 ++ awk '{print $4}'
2022-02-16 00:42:10 + rate=99.77
2022-02-16 00:42:10 + echo 'ccache hit rate: 99.77%'
2022-02-16 00:42:10 ccache hit rate: 99.77%
2022-02-16 00:42:10 + echo 'ipipe_log_param_Ccache_Hit_Rate: 99.77%'
2022-02-16 00:42:10 + '[' 2 '!=' 0 ']'
2022-02-16 00:42:10 + exit 7
2022-02-16 00:42:10 {build code state=7}

Please sign in to comment.