Skip to content

Fixing basic Ubuntu CMake Build#1309

Closed
rbharath wants to merge 1 commit intotensorflow:masterfrom
rbharath:ubuntu_cmake
Closed

Fixing basic Ubuntu CMake Build#1309
rbharath wants to merge 1 commit intotensorflow:masterfrom
rbharath:ubuntu_cmake

Conversation

@rbharath
Copy link
Copy Markdown

PR #728 added basic CMake support for Tensorflow. However, that PR was only tested on MacOSX, so had a few errors on Ubuntu. This PR adds in fixes to make basic model compile on Ubuntu 12.04, with gcc 4.9.2, glibc 2.15.

The compile model does not yet run to completion (segfaults). I hope to debug that issue in a follow-on PR.

@tensorflow-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@googlebot
Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@rbharath
Copy link
Copy Markdown
Author

I signed it!

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@martinwicke
Copy link
Copy Markdown
Member

Jenkins, test this please.

Testing for core/lib/io change.


// SIZE_MAX is not defined for older gcc versions (5.1 and back). Define if
// necessary.
#ifndef SIZE_MAX
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I wonder if this should be somewhere else, like in macros or types.h though

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good suggestion. Moved this to macros.h

@martinwicke
Copy link
Copy Markdown
Member

Our tests are down for the weekend, so we'll have to wait a bit. Sorry about that.

@rbharath
Copy link
Copy Markdown
Author

@martinwicke No problem. I made a couple small fixes in the meanwhile. As a quick addendum, what would be the best way to get the cmake build onto the jenkins test? I found that as I was making changes, I accidentally broke the build a couple times. It would be convenient to have jenkins catch this.

@jendap
Copy link
Copy Markdown
Contributor

jendap commented Mar 1, 2016

@rbharath can you please squash the commits? It would be great to have cmake working! I will try to set up jenkins build for cmake later this week.

@googlebot
Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@googlebot googlebot added cla: no and removed cla: yes labels Mar 1, 2016
@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Mar 1, 2016
@rbharath
Copy link
Copy Markdown
Author

rbharath commented Mar 1, 2016

@jendap Just squashed the commits. Great to hear you have time to get the cmake build up on jenkins! Please let me know if I can help. Right now the cmake build is pretty rudimentary. The tutorial compiles on Mac OSX/Ubuntu, but segfaults for some reason that needs to be fixed. We also need to add SWIG and GPU support to the cmake build. I'll try to work on this some over the next couple weeks, but would be great if any other folks are interested in helping :)

@rbharath
Copy link
Copy Markdown
Author

rbharath commented Mar 2, 2016

Oops, looks like my squashing messed things up here. I'll fix this and update this thread once everything is sorted out.

@rbharath
Copy link
Copy Markdown
Author

rbharath commented Mar 3, 2016

As a quick update, it appears that the cmake no longer builds tensorflow head due to recent changes in tensorflow :-(. Fixing this looks tricky, and I probably won't have time till next week or so. I'll update this thread then.

@martinwicke
Copy link
Copy Markdown
Member

Yeah, we are constantly messing with the location of header files etc.
Sorry. It should stabilize shortly.

On Thu, Mar 3, 2016 at 2:04 PM Bharath Ramsundar [email protected]
wrote:

As a quick update, it appears that the cmake no longer builds tensorflow
head due to recent changes in tensorflow :-(. Fixing this looks tricky, and
I probably won't have time till next week or so. I'll update this thread
then.


Reply to this email directly or view it on GitHub
#1309 (comment)
.

@jendap
Copy link
Copy Markdown
Contributor

jendap commented Mar 8, 2016

I forget that cmake build. I will try to get it done by tomorrrow.

@jendap
Copy link
Copy Markdown
Contributor

jendap commented Mar 14, 2016

There is very simple #1488. That should be enough for linux cmake cpu build.

I'm have set it up to run on pull request but only when pull request touch cmake. (Bash condition [ -z "$(git log $master_sha1..HEAD tensorflow/contrib/cmake)" ] is used for triggering).

That should allow to run cmake tests while not showing errors on non-cmake tests.

Once we get cmake working well we can enable it for all the builds. Then we would love to create windows build as well.

@jendap
Copy link
Copy Markdown
Contributor

jendap commented Mar 14, 2016

@rbharath can you please modify this PR to contain the intended changes only?

@rbharath
Copy link
Copy Markdown
Author

@jendap This PR was broken by changes in tensorflow, and fixing the issue looks tricky. I don't have time to work on this for a bit (probably a couple weeks), so I'll close this PR for the time being. I'll open a new PR with fixes if somebody else doesn't fix the issue in the meanwhile.

@rbharath rbharath closed this Mar 14, 2016
@jendap
Copy link
Copy Markdown
Contributor

jendap commented Mar 15, 2016

Ok, thanks! I hope somebody will help.

tarasglek pushed a commit to tarasglek/tensorflow that referenced this pull request Jun 20, 2017
fsx950223 pushed a commit to fsx950223/tensorflow that referenced this pull request May 29, 2023
…cm-enhanced-fixes-210325

[r1.15-rocm-enhanced] Switching ROCm TF to use the new hipfft library (instead of rocfft)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants