Skip to content

Features/tensorflow#3244

Closed
tgamblin wants to merge 25 commits intospack:developfrom
AP97:features/tensorflow
Closed

Features/tensorflow#3244
tgamblin wants to merge 25 commits intospack:developfrom
AP97:features/tensorflow

Conversation

@tgamblin
Copy link
Copy Markdown
Member

@tgamblin tgamblin commented Feb 26, 2017

This is work in progress. It leverages the contributed CMake build of TensorFlow to build without Basel. The build Tricks CMake into thinking that the external projects are already installed.

All dependencies currently build successfully. Currently fighting with the Eigen headers in the final TensorFlow build.

  • dependency builds
  • Tensorflow build
  • GPU support

@tgamblin tgamblin added the WIP label Feb 26, 2017

#version('290bfb42684a', url='http://bitbucket.org/eigen/eigen/get/290bfb42684a.tar.gz',
# sha256='269c8bf20e8ac1aa8f5caf1ab2ca7be4909ec6ae085177a647aae138cd069b12')
version('290bfb42684a', url='http://bitbucket.org/eigen/eigen/get/290bfb42684a.tar.gz',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i think this could be 2.9.0.bfb42684a. The first three numbers don't look random to me.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's part of the sha256. Definitely random.


homepage = "https://www.tensorflow.org/"

version('e697cf7', git='https://github.com/tensorflow/tensorflow.git', commit='e697cf787b09193a6921af6d2b7db2d6c4d2a5dd')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

put commit on the new line?

homepage = "http://www.ijg.org"
url = "http://www.ijg.org/files/jpegsrc.v9b.tar.gz"
url = "http://www.ijg.org/files/jpegsrc.v8b.tar.gz"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you undo this URL change?


version('e697cf7', git='https://github.com/tensorflow/tensorflow.git', commit='e697cf787b09193a6921af6d2b7db2d6c4d2a5dd')

depends_on('[email protected]')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is it so strict?

@jcftang
Copy link
Copy Markdown
Member

jcftang commented Apr 1, 2017

Rather than pushing directly into this feature branch, I've stashed some changes that I made on my own repo at https://github.com/jcftang/spack/commits/features/tensorflow.

The latest versions of tensorflow includes tensorboard which also pulls in a number of external javascript dependencies. The branch I have is still not in a usable state.

@adamjstewart
Copy link
Copy Markdown
Member

I was looking more into Bazel today. I thought we had rejected Bazel because it fetched its own dependencies and we didn't want that. Looking at the documentation, it isn't hard to suppress that:
https://bazel.build/versions/master/docs/bazel-user-manual.html#fetch
Maybe we should just add a BazelPackage base class that does this?

@eschnett
Copy link
Copy Markdown
Contributor

I'm interested in installing TensorFlow via Spack. Could you describe the status of this pull request -- is it (1) basically working, but needs to be cleaned up, or (2) work-in-progress, and I should rather install TensorFlow from sources?

@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 7, 2017

I was looking more into Bazel today. I thought we had rejected Bazel because it fetched its own dependencies and we didn't want that. Looking at the documentation, it isn't hard to suppress that:
https://bazel.build/versions/master/docs/bazel-user-manual.html#fetch Maybe we should just add a BazelPackage base class that does this?

@adamjstewart I think we have two competing PRs for Tensorflow: #2043 seems Bazel based, this one CMake based.

@ifelsefi
Copy link
Copy Markdown
Contributor

Any update on this PR? Quite a few users here are installing Tensorflow themselves so it would be great to have it in Spack.

I think cmake would be the best way.

Any update on GPU support? I don't see depends_on("cuda") or depends_on("cudnn") which are in Spack already and required for GPUs on Tensorflow.

@ifelsefi
Copy link
Copy Markdown
Contributor

Any update?

@ifelsefi
Copy link
Copy Markdown
Contributor

Can we get this added?

@tgamblin
Copy link
Copy Markdown
Member Author

I'm not sure I'll have time to finish this in the next month or so. I'd like to get to it, though. I'm happy to try to help anyone who wants to keep pushing it.

@junghans
Copy link
Copy Markdown
Contributor

@tgamblin: Can you hack that together soon?

@alalazo
Copy link
Copy Markdown
Member

alalazo commented Dec 6, 2017

Here's a reference to Easybuild's recipe for tensorflow.

@tgamblin
Copy link
Copy Markdown
Member Author

Closing this as the CMake build is no longer supported by the TF team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants