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

[tensorflow] Add C port #14392

Merged
merged 136 commits into from Nov 25, 2020
Merged

[tensorflow] Add C port #14392

merged 136 commits into from Nov 25, 2020

Conversation

jgehw
Copy link
Contributor

@jgehw jgehw commented Nov 4, 2020

This PR adds a C port for tensorflow. As large parts are identical to the C++ port [tensorflow-cc], I moved them into a common file.

I suggest to wait with reviewing until #13028 is merged into master, because this PR builds upon #13028, and once #13028 is merged the file diffs of this PR will collapse to just a few simple changes.

Gehweiler and others added 30 commits July 23, 2020 21:53
…se customized bazel config is stored in wrong directory
- add patch to fix debug builds
- add patch to fix exports for static linking
- really build debug (instead of cloning release)
- override bazel build options for debug (work around bazel bug)
- bazel doesn't support static libraries: work around by building dynamic library and constructing static linkage commands from build log
- Windows .pdb file can't be >4GB even on x64: work around using reduced debug information
- Windows doesn't support .lib files >4GB even on x64, so split into multiple libs
- vcpkg requires equal amount of libs for debug and release: work around using handcrafted empty dummy libs
- fix naming of libs (.dll on Windows and .dylib on macOS)
- adapt patch files to tensorflow code changes
- update bazel from v0.25.2 to v3.1
- on Windows use python installed on the host instead of embedded python obtained via vcpkg because embedded python lacks pip, which we need to obtain numpy
- on Windows add MSYS2 to the PATH so that bazel tools can access MSYS2 GIT
- add support for custom CA certificates when using HTTPS_PROXY
The existing implementation totally screwed up commands if the command's arguments contained semicolons (this is the case, e.g., in the FindPython modules of the cmake distribution).
incorporate changes from microsoft:master
…-more' as required for find_package(Python3)
Revert "incorporate changes from microsoft:master"
…eading the last real libraries contents over the required number of libraries
@NancyLi1013 NancyLi1013 removed the depends:different-pr This PR or Issue depends on a PR which has been filed label Nov 13, 2020
ports/tensorflow-cc/CONTROL Show resolved Hide resolved
ports/tensorflow/portfile.cmake Show resolved Hide resolved
ports/tensorflow/portfile.cmake Show resolved Hide resolved
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
@JackBoosY JackBoosY added info:reviewed Pull Request changes follow basic guidelines requires:discussion and removed requires:author-response labels Nov 19, 2020
Copy link
Contributor

@strega-nil strega-nil left a comment

Choose a reason for hiding this comment

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

Needs a few minor things in the python, but that's it.

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
@strega-nil
Copy link
Contributor

@jgehw have you tried out tensorflow at it's latest version on your local machine?

@jgehw
Copy link
Contributor Author

jgehw commented Nov 24, 2020

@jgehw have you tried out tensorflow at it's latest version on your local machine?

yes, I verified it on my local machine

@strega-nil strega-nil merged commit c961c13 into microsoft:master Nov 25, 2020
@strega-nil
Copy link
Contributor

Alright, thanks so much @jgehw :D

@jgehw jgehw deleted the add-tensorflow-c branch November 25, 2020 19:21
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.

None yet

5 participants