-
Notifications
You must be signed in to change notification settings - Fork 338
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
base: main
Are you sure you want to change the base?
Conversation
…ding test output to the configuration file and test file
Hi @33749110! Thank you for your pull request and welcome to our community. Action RequiredIn 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. ProcessIn 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 If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@malfet Can you approve? |
There was a problem hiding this 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)$")) |
There was a problem hiding this comment.
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
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)$")) |
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: |
Conflicts caused by Cmakefile version issues have been resolved. |
Do you have any other questions? |
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. |
Is there any progress so far? We are using cpuinfo-> pytorch -> ml-cpp -> elasticsearch |
Please rebase this patch! |
@33749110, Thanks for adding LoongArch support to cpuinfo. |
This add basic support for LoongArch. Signed-off-by: Jinyang He <[email protected]> # Rebase pytorch#92
In addition to the three submissions, the latest version of Googlebenchmark has added support for loongarch.