Skip to content

Conversation

@edgchen1
Copy link
Contributor

@edgchen1 edgchen1 commented Jul 2, 2022

Description
Fix unused function warning for decodeMIDR().
Changed from static function defined in header to function declared in header and defined in separate .cc file.

Motivation and Context
Fix #12052

@edgchen1 edgchen1 requested a review from chenfucn July 2, 2022 00:30

#if defined(CPUIDINFO_ARCH_ARM)

#define CPUINFO_ARM_MIDR_IMPLEMENTER_MASK UINT32_C(0xFF000000)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

most of this file was moved from cpuid_uarch.h

@lgtm-com
Copy link

lgtm-com bot commented Jul 2, 2022

This pull request introduces 24 alerts when merging 367bae2 into df712d8 - view on LGTM.com

new alerts:

  • 24 for Commented-out code

@snnn
Copy link
Contributor

snnn commented Jul 2, 2022

How often these functions need to be called? If often, this change could hurt performance.
I think the root cause is "inline static". static functions should not be in header files. If you remove "static", it would be fine.

@edgchen1
Copy link
Contributor Author

edgchen1 commented Jul 5, 2022

How often these functions need to be called? If often, this change could hurt performance. I think the root cause is "inline static". static functions should not be in header files. If you remove "static", it would be fine.

I think the function is not called often.

decodeMIDR((uint32_t)midrVal, &uarch);


It is called during initialization of CPUIDInfo, which seems to be a singleton.

snnn
snnn previously approved these changes Jul 5, 2022
@edgchen1
Copy link
Contributor Author

edgchen1 commented Jul 5, 2022

@snnn I made some fixes after testing locally on Windows with the --arm64 build.py option. However, I didn't see any CI test failures. Should we also have a CI build with this configuration?

@snnn
Copy link
Contributor

snnn commented Jul 5, 2022

@snnn I made some fixes after testing locally on Windows with the --arm64 build.py option. However, I didn't see any CI test failures. Should we also have a CI build with this configuration?

Pranav says we will consider it after the release.

@lgtm-com
Copy link

lgtm-com bot commented Jul 5, 2022

This pull request introduces 24 alerts when merging ef529ab into 479e71a - view on LGTM.com

new alerts:

  • 24 for Commented-out code

@edgchen1 edgchen1 merged commit 07b0469 into master Jul 6, 2022
@edgchen1 edgchen1 deleted the edgchen1/unused_function branch July 6, 2022 16:18
RandySheriffH pushed a commit that referenced this pull request Jul 18, 2022
Changed from static function defined in header to function declared in header and defined in separate .cc file.
RandySheriffH added a commit that referenced this pull request Jul 19, 2022
* support optimizer opt for deepspeed 0.5.9

* resolve comments

* resolve comments

* FP16_Optimizer Support for more Deepspeed Versions (#12046)

* fp16_optimizer for more ds versions

* change ds version

* bugfix

* fix bug

* Fix unused function warning for decodeMIDR(). (#12069)

Changed from static function defined in header to function declared in header and defined in separate .cc file.

* pin protobuf version to be compatible with onnx (#12132)

Co-authored-by: Ashwini Khade <[email protected]@orttrainingdev10.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>

* RoiAlign CPU EP add warning for max mode with samples != 1 (#12136)

* RoiAlign add warning about incorrect max summation when sample size not 1

* include coreml_provider_factory.h in macos build instead of coreml_ex… (#12138)

include coreml_provider_factory.h in macos build instead of coreml_execution_provider.h

* List 3.10 as supported python version and remove 3.6 (#12141)

list 3.10 as supported python version and remove 3.6

Co-authored-by: Randy Shuai <[email protected]>

* Use updated symbolic_helper.check_training_mode (#11900)

Co-authored-by: Jingyan Wang, Baiju Meswani

* Fix GH issue 12151 by using inverse perms for updating DQ axis attribute (#12158)

* Fix GH issue 12151.

Need to use inverse perms for updating that axis to what is used for transposing the input. This only applies if the DQ node is doing per-axis dequantization.

* fixing positions for beam search gpt2 (#12156)

* fixing positions for beam search gpt2
Co-authored-by: Tianlei Wu <[email protected]>

* remove wrong placed libs (#12201)

* Add file mapping for windows platform. (#12183)

* Add file mapping for windows platform.

* Add unit test for file mapping for windows. Also add an error message for mis-aligned offset

* Add unit test for file mapping for windows. Also add an error message for mis-aligned offset

* Update data type to avoid warnings

* Compitable data type to avoid warnings. Update CreatFileMapping2 condition for winml compiling.

* Add type conversion to avoid warnings for X86 release build.

Co-authored-by: Ting Cao <[email protected]>

* Fix bug where onnxruntime_USE_NCCL flag would default to ON (#12195)

Fix bug where onnxruntime_USE_NCCL flag would default to ON, causing ORT to not build properly. New functionality: flag is ON when training is enabled and NCCL is not disabled. Flag is OFF otherwise

Co-authored-by: zhijxu <[email protected]>
Co-authored-by: zhijxu <zhijxu>
Co-authored-by: Vincent Wang <[email protected]>
Co-authored-by: Edward Chen <[email protected]>
Co-authored-by: Ashwini Khade <[email protected]>
Co-authored-by: Ashwini Khade <[email protected]@orttrainingdev10.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
Co-authored-by: Dwayne Robinson <[email protected]>
Co-authored-by: Carson Swope <[email protected]>
Co-authored-by: Randy Shuai <[email protected]>
Co-authored-by: jingyanwangms <[email protected]>
Co-authored-by: Scott McKay <[email protected]>
Co-authored-by: Viswanath Boga <[email protected]>
Co-authored-by: leqiao-1 <[email protected]>
Co-authored-by: caoting-dotcom <[email protected]>
Co-authored-by: Ting Cao <[email protected]>
Co-authored-by: Sean Murray <[email protected]>
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.

Universal build (x86_64 and arm64) error for MacOS

3 participants