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

Add cpuInfo support for Loongarch systems #92

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

33749110
Copy link

@33749110 33749110 commented Jun 9, 2022

In addition to the three submissions, the latest version of Googlebenchmark has added support for loongarch.

@facebook-github-bot
Copy link
Contributor

Hi @33749110!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@33749110
Copy link
Author

@malfet Can you approve?

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

Why do you need to add it to list of Darwin (MacOS/iOS) architectures? Are there any plans for them being released on Apple platform?
Also, can you please add some link to the processor support you are adding to the PR description? I.e. what ISA does it support (quickly looking thru the wiki suggest that it is an extension of MIPS ISA, isn't it?)

CMakeLists.txt Outdated
@@ -52,7 +52,7 @@ ENDMACRO()

# -- [ Determine target processor
SET(CPUINFO_TARGET_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
IF(IOS OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_ARCHITECTURES MATCHES "^(x86_64|arm64)$"))
IF(IOS OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_ARCHITECTURES MATCHES "^(x86_64|arm64|loongarch64)$"))
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's a type of HW Apple has announced yet

Suggested change
IF(IOS OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_ARCHITECTURES MATCHES "^(x86_64|arm64|loongarch64)$"))
IF(IOS OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_ARCHITECTURES MATCHES "^(x86_64|arm64)$"))

@33749110
Copy link
Author

33749110 commented Jul 1, 2022

1.Sorry, this is a small mistake of mine, we currently have no plans to release on IOS. It's been removed.

2.Related links to the Loongarch Isa are as follows:
loongarch isa:https://www.loongson.cn/loongArch
3a-5000:https://www.loongson.cn/productShow/32

@33749110
Copy link
Author

Conflicts caused by Cmakefile version issues have been resolved.

@33749110
Copy link
Author

Do you have any other questions?

@cheungxi
Copy link

ping

@33749110
Copy link
Author

ping

What does ping mean? May I ask if there are any problems I need to modify in this submission? If not, can I pass it? Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants