borglab / SwiftFusion

Apache License 2.0
115 stars 13 forks source link

make everything compile on the stock toolchain #251

Closed marcrasi closed 3 years ago

marcrasi commented 3 years ago

This makes everything compile on the stock toolchain! Also everything still compiles on tensorflow-0.12 toolchain, so that you can continue working with that.

@ProfFan, let me know if it's okay for me to merge this with the tracking branch and also update the tracking branch to work with the stock toolchain. If it's okay, I'll do that next.

Note: The process for installing the stock toolchain with the required TensorFlow libraries is currently a bit complicated, so I wouldn't suggest trying it yourself yet. Soon we should have a simplified process. But if you really want to try it yourself, let me know and I can describe the process.

The required changes were:

dabrahams commented 3 years ago

Nice! I get: warning: dependency 'swift-argument-parser' is not used by any target.

Suggest you remove that from Package.swift

marcrasi commented 3 years ago

Nice! I get: warning: dependency 'swift-argument-parser' is not used by any target.

Suggest you remove that from Package.swift

I added a TODO. I can't do it now because there is some bug in SwiftPM so that it fails to build without it. It's fixed in very recent toolchains, so we should be able to remove it soon.

dabrahams commented 3 years ago

How do I get a stock toolchain this works with?