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

[fbgemm] create a new port #16346

Merged
merged 12 commits into from
Mar 19, 2021
Merged

[fbgemm] create a new port #16346

merged 12 commits into from
Mar 19, 2021

Conversation

luncliff
Copy link
Contributor

What does your PR fix?

There was no port request for this project.

This is one of the 3rd party libraries for the PyTorch project. The PR will be used for future support of the libtorch port.

Which triplets are supported/not supported? Have you updated the CI baseline?

The project's CI only checks Linux. At a glance, the triplet support should be an intersection of asmjit and cpuinfo.
I will update "supports" after more checks.

  • x64-osx
  • x64-linux
  • x64-windows
  • x86-windows

Does your PR follow the maintainer guide?

The library doesn't have a tag. I snapshoted the source code with "version-string": 2021-02-21

@luncliff luncliff marked this pull request as draft February 21, 2021 11:22
@luncliff
Copy link
Contributor Author

luncliff commented Feb 21, 2021

So it seems like find_package(PythonInterp REQUIRED) is not available on the CI's Windows environment.

Possible reference? #15404

@NancyLi1013 NancyLi1013 added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Feb 22, 2021
@NancyLi1013
Copy link
Contributor

You may use this way to find python3.

vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
vcpkg_add_to_path(${PYTHON3_PATH})

@luncliff
Copy link
Contributor Author

luncliff commented Feb 22, 2021

Note for 0026248

x86-windows

Intrinsic _mm256_extract_epi64 is not available. I'm not a SIMD person so considering disable of x86.

x64-uwp

Seems like asmjit usage needs more update. I will deal with patch for now. --> d790ccc

x64-windows-static-md

fix-cmakelists.patch must remove /MD, /MT customization --> d790ccc

* remove /MT /MD customization
* remove deprecated warnings for asmjit
* uwp can't be supported with cpuinfo link failure
* x86 SIMD may become available in future update
@luncliff luncliff marked this pull request as ready for review February 22, 2021 12:06
@luncliff
Copy link
Contributor Author

luncliff commented Feb 23, 2021 via email

@luncliff luncliff marked this pull request as draft February 23, 2021 02:47
@luncliff
Copy link
Contributor Author

luncliff commented Mar 1, 2021

Seems like pytorch/FBGEMM#520 may need some time to be reviewed. Wish the work goes well...

@luncliff
Copy link
Contributor Author

Waiting for pytorch/FBGEMM#538

@luncliff luncliff marked this pull request as ready for review March 18, 2021 05:56
@luncliff luncliff requested a review from NancyLi1013 March 18, 2021 05:56
@NancyLi1013 NancyLi1013 added the info:reviewed Pull Request changes follow basic guidelines label Mar 18, 2021
@NancyLi1013
Copy link
Contributor

LGTM now, thanks for your efforts @luncliff.

Copy link
Contributor

@ras0219-msft ras0219-msft left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for the PR!

if(MSVC)
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267 /wd4305 /wd4309")
- if(FBGEMM_LIBRARY_TYPE STREQUAL "static")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267 /wd4305 /wd4309 /wd4703")
Copy link
Contributor

Choose a reason for hiding this comment

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

For future reference: it would be best to completely disable warnings as errors in vcpkg instead of maintaining a specific list of disabled warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR! info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants