Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the code compatible with Ascend-20.1 and Ascend-20.2 #30722

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

zhiqiu
Copy link
Contributor

@zhiqiu zhiqiu commented Jan 26, 2021

PR types

Function optimization

PR changes

Others

Describe

Make the code compatible with Ascend-20.1 and Ascend-20.2

  1. Add cmake option WITH_ASCEND_CXX11 , default is OFF, which means not use CXX11_ABI.
    For Ascend-20.2, WITH_ASCEND_CXX11 can be ON or OFF.
    For Ascend-20.1, WITH_ASCEND_CXX11 should be OFF.

  2. Change protobuf to version 3.8, which is needed by Ascend-20.1.

  3. Handle the differences between APIs in Ascend-20.1 and Ascend-20.2

@CLAassistant
Copy link

CLAassistant commented Jan 26, 2021

CLA assistant check
All committers have signed the CLA.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jan 26, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@gongweibao gongweibao merged commit 6eabbc8 into PaddlePaddle:ascendrc Jan 27, 2021
@zhiqiu zhiqiu changed the title handle ascend_string not defined in version 20.1 Make the code compatible with Ascend-20.1 and Ascend-20.2 Jan 28, 2021
frankwhzhang added a commit that referenced this pull request Apr 7, 2021
* Ascend rc (#30483)

* Fix compilcation on CANN20.1 and older (#30494)

Fix compilcation on CANN20.1 and older

* Add distribution supported (#30578)

Add distribution supported

* Build praser for Hcom* operators (#30627)

Build praser for Hcom* operators

* Pass device_ids info from launch to trainer. (#30632)

Pass device_ids info from launch to trainer

* Add Hccl program group (#30642)

Add Hccl program group

* Add startup bash files of test_ascend_group. (#30645)

Add startup bash files of test_ascend_group

* cleanup (#30646)

cleanup test_ascend_group.py

* [Feature] Build parser to support distributed training (#30658)

[Feature] Build parser to support distributed training

* fix compilation on ascend-20.1 (#30722)

fix compilation on ascend-20.1

* Dev/fix ascend string (#30749)

Dev/fix ascend string

* code style (#30781)

code style

* Merge ascend_optimizer and ascend_parser. (#30776)

Merge ascend_optimizer and ascend_parser.

* Ascendrc add converted op : [range/equal/range/uniform_random/expand/squeeze], fix cast op bug  (#30797)

Ascendrc add converted op : [range/equal/range/uniform_random/expand/squeeze], fix cast op bug

* Add paddle ascend distribution training supported (#30796)

Add paddle ascend distribution training supported

* pass cxx_flags to gloo cmake (#30857)

* Destroy session first. (#30954)

Destroy session first.

* merge

* fix, test=develop

* fix, test=develop

* fix style, test=develop

* fix, test=develop

* fix

* fix log fatal, test=develop

* fix enforce style, test=develop

* fix, test=develop

* fix, test=develop

* fix rccl, test=develop

* fix test, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix node_num, test=develop

* fix ids str, test=develop

* fix ids str, test=develop

* fix ids str, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix, test=develop

* fix style code, test=develop

* fix style code, test=develop

* fix style code, test=develop

* fix style code, test=develop

Co-authored-by: hutuxian <hutuxian2011@sina.cn>
Co-authored-by: gongweibao <weibao.gong@gmail.com>
Co-authored-by: Void Main <voidmain1313113@gmail.com>
Co-authored-by: Leo Chen <chenqiuliang@baidu.com>
Co-authored-by: dingsiyu <18369187719@163.com>
Co-authored-by: OleNet <olenet@126.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants