Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[CI] Add CPU C++ test stage #13338

Merged
merged 1 commit into from
Jan 8, 2019
Merged

[CI] Add CPU C++ test stage #13338

merged 1 commit into from
Jan 8, 2019

Conversation

larroy
Copy link
Contributor

@larroy larroy commented Nov 20, 2018

Description

We were not running C++ test compiled without GPU and without MKL, which had test failures, such as #13409

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http:https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@@ -199,13 +199,8 @@ void ActivationGradCompute(const nnvm::NodeAttrs& attrs,
const std::vector<OpReqType>& req,
const std::vector<TBlob>& outputs) {
const ActivationParam& param = nnvm::get<ActivationParam>(attrs.parsed);
#if (MXNET_USE_CUDNN == 1 || MXNET_USE_MKLDNN == 1)
bool relu = param.act_type == activation::kReLU;
const bool relu = param.act_type == activation::kReLU;
CHECK_EQ(inputs.size(), relu ? 2U : 3U);
Copy link
Contributor

Choose a reason for hiding this comment

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

This code was added in #11827 . Maybe @samskalicky can help here and say whether it's needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed all this stuff in #13409 just keeping the CI pipeline here until @marcoabreu green lights.

@stu1130
Copy link
Contributor

stu1130 commented Nov 20, 2018

@mxnet-label-bot add [pr-awaiting-review]
Thanks for your contribution! @larroy

@marcoabreu marcoabreu added the pr-awaiting-review PR is waiting for code review label Nov 20, 2018
@marcoabreu
Copy link
Contributor

Please wait with merging this PR until the Jenkinsfile refactoring has been completed

@larroy larroy changed the title Add CPU C++ test stage and fix CPU ACTIVATION_PERF.ExecuteBidirectional [Dont merge] Add CPU C++ test stage and fix CPU ACTIVATION_PERF.ExecuteBidirectional Nov 21, 2018
@vandanavk
Copy link
Contributor

@mxnet-label-bot update [pr-awaiting-testing]

@marcoabreu marcoabreu added pr-awaiting-testing PR is reviewed and waiting CI build and test and removed pr-awaiting-review PR is waiting for code review labels Nov 27, 2018
@larroy larroy changed the title [Dont merge] Add CPU C++ test stage and fix CPU ACTIVATION_PERF.ExecuteBidirectional [Dont merge][Dont review] Add CPU C++ test stage and fix CPU ACTIVATION_PERF.ExecuteBidirectional Nov 29, 2018
@roywei
Copy link
Member

roywei commented Dec 11, 2018

@larroy ping, is this still needed? thanks!

@larroy larroy changed the title [Dont merge][Dont review] Add CPU C++ test stage and fix CPU ACTIVATION_PERF.ExecuteBidirectional Add CPU C++ test stage Dec 11, 2018
@larroy larroy changed the title Add CPU C++ test stage [CI] Add CPU C++ test stage Dec 11, 2018
@larroy
Copy link
Contributor Author

larroy commented Dec 11, 2018

@roywei is needed. @marcoabreu pls review.

@larroy larroy changed the title [CI] Add CPU C++ test stage [CI] Add CPU C++ test stage, re-enable kvstore tests Dec 11, 2018
@larroy larroy force-pushed the cpp_ut branch 3 times, most recently from 19a730e to 0518e16 Compare December 18, 2018 11:38
@larroy larroy force-pushed the cpp_ut branch 3 times, most recently from 0481230 to 37291f5 Compare January 3, 2019 13:41
@larroy
Copy link
Contributor Author

larroy commented Jan 3, 2019

Ready to merge @marcoabreu

@larroy larroy changed the title [CI] Add CPU C++ test stage, re-enable kvstore tests [CI] Add CPU C++ test stage Jan 3, 2019
Copy link
Contributor

@jlcontreras jlcontreras left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lebeg lebeg left a comment

Choose a reason for hiding this comment

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

Are the mshadow submodule changes needed?

@larroy
Copy link
Contributor Author

larroy commented Jan 4, 2019

@lebeg no, fixed.

Copy link
Contributor

@lebeg lebeg left a comment

Choose a reason for hiding this comment

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

Looks good to me

@marcoabreu marcoabreu merged commit 4d65790 into apache:master Jan 8, 2019
haohuanw pushed a commit to haohuanw/incubator-mxnet that referenced this pull request Jun 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-testing PR is reviewed and waiting CI build and test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants