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

iOS support #3150

Merged
merged 16 commits into from
Jul 20, 2020
Merged

iOS support #3150

merged 16 commits into from
Jul 20, 2020

Conversation

reuben
Copy link
Contributor

@reuben reuben commented Jul 11, 2020

No description provided.

@reuben reuben force-pushed the ios-build branch 5 times, most recently from 35434c0 to e354218 Compare July 16, 2020 09:00
@reuben reuben requested a review from lissyx July 20, 2020 07:23
@reuben reuben marked this pull request as ready for review July 20, 2020 07:23
@@ -101,16 +101,34 @@ NODE_PLATFORM_TARGET := --target_arch=arm64 --target_platform=linux
TOOLCHAIN_LDD_OPTS := --root $(RASPBIAN)/
endif # ($(TARGET),rpi3-armv8)

ifeq ($(TARGET),ios-simulator)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does that means we have different binaries built for the simulator vs for real hardware ?
Can we run tests on those real hardware binary from the simulator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hardware is ARM64, simulator is x86_64, so no, can't run tests on real hardware binary.

Copy link
Collaborator

Choose a reason for hiding this comment

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

They have no way to run ARM64 simulator? Bad, it means we'll require more dedicated hardware and baby-sitting setup :/

Copy link
Contributor Author

@reuben reuben Jul 20, 2020

Choose a reason for hiding this comment

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

I don't think we have the capacity to handle real hardware tests for iOS.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mean the capacity at iOS simulator level, or our capacity in term of workload? I'm concerned that we have nothing exercizing at all, even basically, the library on ARM64 context, because it's very likely that we will break things somehow :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean in terms of the workload. New iPhones + new iOS released every year, Apple is famous for breaking compatibility and forcing developers to change their workflows frequently, plus none of us are iOS developers so everything takes twice as long to setup. I agree it's unfortunate to not have ARM64 test coverage.

taskcluster/tf_tc-brew.sh Outdated Show resolved Hide resolved
taskcluster/tf_tc-build.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@lissyx lissyx left a comment

Choose a reason for hiding this comment

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

LGTM but:

  • no tests yet? maybe you plan to add them after?
  • some files seems dead now
  • a little cleanup on the tensorflow build if mess with case might be easier to read
  • since we are building the workers, maybe we can simplify the base setup and limit ourselves to just depending on XCode ?

@reuben
Copy link
Contributor Author

reuben commented Jul 20, 2020

  • no tests yet? maybe you plan to add them after?

Correct.

  • some files seems dead now

Yeah, thanks for the comments, will clean those up.

  • a little cleanup on the tensorflow build if mess with case might be easier to read

Will take a look.

  • since we are building the workers, maybe we can simplify the base setup and limit ourselves to just depending on XCode ?

Yeah, that'd be nice. Filed #3169


if [ "${build_android_arm}" = "yes" ]; then
case "$1" in
"--cpu")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you file a bug for later? I think it could be a good idea we decouple more here and have a list like: "--linux-cpu"|"--windows-cpu" etc. But that miight require quite some move love, so let's not hold your PR on that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -30,7 +30,8 @@ public enum DeepSpeechError: Error {
case failCreateSess(errorCode: Int32)
case failCreateModel(errorCode: Int32)

// Additional case for invalid error codes, should never happen unless the user has mixed header and binary versions
// Additional case for invalid error codes, should never happen unless the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice documenting. Do you know if we are ready to run swift-backed doc against readthedocs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately there is no Swift support for our Sphinx version. So it'll be a bit more complicated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But I think it's supported by Doxygen, so we can use the existing support for that :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I looked for that too and couldn't find any Doxygen support. Do you have a link?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nope, I just saw a few people here and there that seemed to have it processing, as well as some apple github like https://github.com/apple/swift/blob/master/docs/doxygen.header

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is for Doxygen docs of the Swift compiler, which is implemented in C++.

@reuben reuben merged commit ffcec7f into master Jul 20, 2020
@reuben reuben deleted the ios-build branch July 20, 2020 12:10
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.

2 participants