Skip to content

Conversation

@kendalharland
Copy link
Member

Description

Targeting AXV2 is the closest we can get to targeting Haswell when compiling with msvc. See DEVIN-1142 for more context.

Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Copy link
Collaborator

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Does it make sense to use -D CMAKE_CXX_FLAGS="/arch:AVX2" -D CMAKE_C_FLAGS="/arch:AVX2"?

@kendalharland
Copy link
Member Author

kendalharland commented Mar 28, 2024

Does it make sense to use -D CMAKE_CXX_FLAGS="/arch:AVX2" -D CMAKE_C_FLAGS="/arch:AVX2"?

Are you asking if it's better to use add_definitions here or if it makes sense to set /arch to the same value for both languages?

@hjyamauchi
Copy link

Would it make sense (or feasible) to do this in https://github.com/thebrowsercompany/firebase-cpp-sdk/blob/compnerd/swift/.github/workflows/bcny-firebase.yml instead? I had the impression that our local bcny changes are concentrated in that file.

@compnerd
Copy link
Collaborator

More what @hjyamauchi was getting at - add that as flags to the command line invocation in the GHA yaml to avoid modifying the upstream package. I want to try to get as close to the upstream state for the package so that we can easily continue to rebase the package.

kendal added 2 commits March 29, 2024 15:37
Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.
@kendalharland kendalharland force-pushed the kendal/devin-1142-add-a-ceiling-cpu-version-to-arc-compiler-invocations branch from fcdc032 to 3186990 Compare March 29, 2024 22:38
@kendalharland kendalharland merged commit a37ec70 into compnerd/swift Mar 29, 2024
@kendalharland kendalharland deleted the kendal/devin-1142-add-a-ceiling-cpu-version-to-arc-compiler-invocations branch March 29, 2024 23:11
kendalharland pushed a commit that referenced this pull request May 7, 2024
kendalharland added a commit that referenced this pull request May 7, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
kendalharland added a commit that referenced this pull request May 8, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
kendalharland added a commit that referenced this pull request May 8, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
github-actions bot pushed a commit that referenced this pull request May 16, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
github-actions bot pushed a commit that referenced this pull request May 16, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 25, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 25, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 31, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request May 31, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 1, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 1, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 7, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jun 7, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 16, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 16, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 18, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Jul 18, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 3, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 3, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 6, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 6, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 21, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Aug 21, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 7, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 7, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 11, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 11, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 12, 2024
* [cmake] Target AXV2 ISA when building for AMD64

Targeting AXV2 is the closest we can get to targeting
Haswell when compiling with msvc. See DEVIN-1142 for
more context.

* Make changes in bcny-firebase.yml instead of CMakeLists.txt

---------

Co-authored-by: kendal <kendal@thebrowser.company>
bcny-fork-syncer bot pushed a commit that referenced this pull request Sep 12, 2024
This reverts commit a37ec70.

Co-authored-by: kendal <kendal@thebrowser.company>
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.

4 participants