Skip to content

Commit

Permalink
Merge pull request #24 from JiabinYang/fix_context_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JiabinYang authored Nov 19, 2021
2 parents d5b73a3 + a9893d0 commit dfcd566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/eager/function_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void FillConstCUDAFunctor(pten::DenseTensor* tensor_dense,
double value) {
paddle::platform::DeviceContextPool& pool =
paddle::platform::DeviceContextPool::Instance();
auto* dev_ctx = dynamic_cast<paddle::platform::CUDAContext*>(
auto* dev_ctx = dynamic_cast<paddle::platform::CUDADeviceContext*>(
pool.Get(paddle::platform::CUDAPlace()));
auto stream = dev_ctx->stream();

Expand Down

1 comment on commit dfcd566

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on dfcd566 Nov 19, 2021

Choose a reason for hiding this comment

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

🕵️ CI failures summary

🔍 PR: #24 Commit ID: dfcd566 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

Unknown Failed
2021-11-19 10:26:10 [INFO] Running on (paddle-cpu-2) with agent(v1.2.7) in workspace /home/xly/workspace/68f2c371-c1a5-401d-864b-10d6f312d3cb
2021-11-19 10:26:10 + set -x
2021-11-19 10:26:10 + cd /home
2021-11-19 10:26:10 + '[' -d Paddle ']'
2021-11-19 10:26:10 + rm -rf Paddle
2021-11-19 10:26:11 + rm -rf Paddle.tar.gz
2021-11-19 10:26:11 + work_dir=/home/Paddle
2021-11-19 10:26:11 + git clone --depth=1000 https://github.com/PaddlePaddle/Paddle.git
2021-11-19 10:26:11 正克隆到 'Paddle'...
2021-11-19 10:26:32 + cd Paddle
2021-11-19 10:26:32 + git fetch origin pull/36518/head
2021-11-19 10:27:48 fatal: write error: ???????
2021-11-19 10:27:48 fatal: index-pack 失败

🔹 Failed: PR-CI-Kunlun

Unknown Failed
2021-11-19 10:47:22 [ 29%] Linking CXX static library libfrobenius_norm_op.a
2021-11-19 10:47:22 [ 29%] Built target frobenius_norm_op
2021-11-19 10:47:43 [ 29%] Linking CXX static library libreduce_prod_op.a
2021-11-19 10:47:44 [ 29%] Built target reduce_prod_op
2021-11-19 10:48:00 [ 29%] Linking CXX static library libreduce_sum_op.a
2021-11-19 10:48:00 [ 29%] Built target reduce_sum_op
2021-11-19 10:48:00 Makefile:140: recipe for target 'all' failed
2021-11-19 10:48:00 make: *** [all] Error 2
2021-11-19 10:48:00 + build_error=2
2021-11-19 10:48:00 + collect_ccache_hits
2021-11-19 10:48:00 ++ ccache -s
2021-11-19 10:48:00 ++ grep 'cache hit rate'
2021-11-19 10:48:00 ++ awk '{print $4}'
2021-11-19 10:48:00 + rate=0.00
2021-11-19 10:48:00 ccache hit rate: 0.00%
2021-11-19 10:48:00 + echo 'ccache hit rate: 0.00%'
2021-11-19 10:48:00 + echo 'ipipe_log_param_Ccache_Hit_Rate: 0.00%'
2021-11-19 10:48:00 + '[' 2 '!=' 0 ']'
2021-11-19 10:48:00 + exit 7

🔹 Failed: PR-CI-Windows-OPENBLAS

build_failed
2021-11-19 10:54:33        "C:\home\workspace\Paddle\build\ALL_BUILD.vcxproj" (default target) (1) ->
2021-11-19 10:54:33 "C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\lite_resnet50_test.vcxproj" (default target) (455) ->
2021-11-19 10:54:33 LINK : fatal error LNK1104: cannot open file 'python37.lib' [C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\lite_resnet50_test.vcxproj]
2021-11-19 10:54:33 "C:\home\workspace\Paddle\build\ALL_BUILD.vcxproj" (default target) (1) ->
2021-11-19 10:54:33 "C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\test_analyzer_detect_functional_mkldnn.vcxproj" (default target) (543) ->
2021-11-19 10:54:33 LINK : fatal error LNK1104: cannot open file 'python37.lib' [C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\test_analyzer_detect_functional_mkldnn.vcxproj]
2021-11-19 10:54:33 742 Warning(s)
2021-11-19 10:54:33 81 Error(s)
2021-11-19 10:54:33 Time Elapsed 00:25:16.09
2021-11-19 10:54:33 7
2021-11-19 10:54:33 Build Paddle failed, will exit
2021-11-19 10:54:33 EXCODE: 7

🔹 Failed: PR-CI-NPU

Unknown Failed
2021-11-19 11:00:58 + set +x
2021-11-19 11:00:58 + SOURCE=/paddle/build/coverage-diff
2021-11-19 11:00:58 + [[ -d /paddle/build/coverage-diff ]]
2021-11-19 11:00:58 + [[ -f /paddle/build/coverage-diff ]]
2021-11-19 11:00:58 No such file or directory: /paddle/build/coverage-diff
2021-11-19 11:00:58 + echo 'No such file or directory: /paddle/build/coverage-diff'
2021-11-19 11:00:58 + exit 0
2021-11-19 11:00:58 report uploaded
2021-11-19 11:00:58 ===================================================================
2021-11-19 11:00:58 c++-coverage
2021-11-19 11:00:58 https://xly.bce.baidu.com/ipipe/ipipe-report/report/9350294/c++-coverage/
2021-11-19 11:00:58 ===================================================================
2021-11-19 11:00:58 + [[ 7 -eq 0 ]]
2021-11-19 11:00:58 + [[ 7 -eq 4 ]]
2021-11-19 11:00:58 + [[ 7 -eq 6 ]]
2021-11-19 11:00:58 + [[ 7 -eq 7 ]]
2021-11-19 11:00:58 Sorry, build failed.
2021-11-19 11:00:58 + echo 'Sorry, build failed.'
2021-11-19 11:00:58 + exit 7

🔹 Failed: PR-CI-Mac-Python3

build_failed
2021-11-19 11:09:22 + collect_ccache_hits
2021-11-19 11:09:22 ++ ccache -s
2021-11-19 11:09:22 ++ grep 'cache hit rate'
2021-11-19 11:09:22 ++ awk '{print $4}'
2021-11-19 11:09:22 + rate=38.64
2021-11-19 11:09:22 + echo 'ccache hit rate: 38.64%'
2021-11-19 11:09:22 ccache hit rate: 38.64%
2021-11-19 11:09:22 + echo 'ipipe_log_param_Ccache_Hit_Rate: 38.64%'
2021-11-19 11:09:22 + '[' 2 '!=' 0 ']'
2021-11-19 11:09:22 + exit 7
2021-11-19 11:09:22 + EXCODE=7
2021-11-19 11:09:22 + echo 'EXCODE: 7'
2021-11-19 11:09:22 EXCODE: 7
2021-11-19 11:09:22 + echo 'ipipe_log_param_EXCODE: 7'
2021-11-19 11:09:22 ipipe_log_param_EXCODE: 7
2021-11-19 11:09:22 + '[' 7 -eq 0 ']'
2021-11-19 11:09:22 + set +x
2021-11-19 11:09:22 Sorry, build failed.
2021-11-19 11:09:22 + exit 7

🔹 Failed: PR-CI-Static-Check

code_style_failed
2021-11-19 11:10:24     with_avx: ON
2021-11-19 11:10:24 with_gpu: ON
2021-11-19 11:10:24 with_mkl: ON
2021-11-19 11:10:24 with_mkldnn: ON
2021-11-19 11:10:24 with_python: ON'
2021-11-19 11:10:24 + set +x
2021-11-19 11:10:24 ========================================
2021-11-19 11:10:24 summary problems:
2021-11-19 11:10:24 There is 1 error: Code format error.
2021-11-19 11:10:24 ========================================
2021-11-19 11:10:24 Code format error Please fix it according to the diff information:
2021-11-19 11:10:24 code format error
2021-11-19 11:10:24 diff --git a/paddle/fluid/operators/warpctc_op.cu b/paddle/fluid/operators/warpctc_op.cu
2021-11-19 11:10:24 index 782ae62d56..6af5fccd90 100644
2021-11-19 11:10:24 --- a/paddle/fluid/operators/warpctc_op.cu
2021-11-19 11:10:24 +++ b/paddle/fluid/operators/warpctc_op.cu
2021-11-19 11:10:24 @@ -25,4 +25,3 @@ REGISTER_OP_CUDA_KERNEL(
2021-11-19 11:10:24 warpctc_grad,
2021-11-19 11:10:24 ops::WarpCTCGradKernel<paddle::platform::CUDADeviceContext, float>,
2021-11-19 11:10:24 ops::WarpCTCGradKernel<paddle::platform::CUDADeviceContext, double>);
2021-11-19 11:10:24 -

🔹 Failed: PR-CI-Model-benchmark

Unknown Failed
2021-11-19 11:18:50 yolov3_bs8, Precision_test, SUCCESS
2021-11-19 11:18:50 deeplabv3_bs4 running failed!
2021-11-19 11:18:50 ResNet50_bs32_dygraph running failed!
2021-11-19 11:18:50 model benchmark ci job failed!
2021-11-19 11:18:50 See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-Model-benchmark-Manual for details.
2021-11-19 11:18:50 Or you can apply for one QA(xiegegege(Recommend), hysunflower) approval to pass this PR.
2021-11-19 11:18:50 + EXCODE=24
2021-11-19 11:18:50 + '[' 24 -eq 0 ']'
2021-11-19 11:18:50 + [[ 24 -eq 22 ]]
2021-11-19 11:18:50 + [[ 24 -eq 0 ]]
2021-11-19 11:18:50 + [[ 24 -eq 4 ]]
2021-11-19 11:18:50 + [[ 24 -eq 5 ]]
2021-11-19 11:18:50 + [[ 24 -eq 6 ]]
2021-11-19 11:18:50 + [[ 24 -eq 7 ]]
2021-11-19 11:18:50 + [[ 24 -eq 8 ]]
2021-11-19 11:18:50 + [[ 24 -eq 9 ]]
2021-11-19 11:18:50 + set -x
2021-11-19 11:18:50 + exit 24
2021-11-19 11:18:50 {build code state=24}

Please sign in to comment.