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

add tensor flow package #2824

Merged
merged 2 commits into from Feb 14, 2017

Conversation

davidlange6
Copy link
Contributor

add tensorflow for slc7_amd64, make theano the default backend for Keras. glibc on slc6 is too old to support it there.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlange6 (David Lange) for branch IB/CMSSW_9_0_X/gcc530.

@cmsbuild, @smuzaffar, @iahmad-khan, @davidlange6 can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@davidlange6
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 14, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17773/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2824/17773/summary.html

The workflows 1003.0, 1001.0, 1000.0, 140.53, 136.731, 4.22 have different files in step1_dasquery.log than the ones found in the baseline. You may want to check and retrigger the tests if necessary. You can check it in the "files" directory in the results of the comparisons

@davidlange6
Copy link
Contributor Author

need to confirm slc7 is ok in the IBs...

@davidlange6 davidlange6 merged commit d181c1b into cms-sw:IB/CMSSW_9_0_X/gcc530 Feb 14, 2017
@mharrend
Copy link

Sorry to step into this conversation, but since we are also interested in using tensorflow within our framework I have some questions:

  • Are you planning to compile and provide the tensorflow C++ library, too?
    E.g this can be done via
    git clone https://github.com/tensorflow/tensorflow
    cd tensorflow
    ./configure
    bazel build -c opt //tensorflow:libtensorflow_cc.so

  • Can this be backported to 8_0_X?

@davidlange6
Copy link
Contributor Author

Hi @mharrend - I was hoping the C++ API came with the PIP wheel, but it seems it does not (the headers are there..) - I think supporting bazel is beyond what we can do today, but I'll investigate. We can eventually think about how to back port things to analysis releases, though we need to implement some integration testing and get some experience first.

@davidlange6
Copy link
Contributor Author

hi again

fwiw, I've been slowly getting tensor flow to work - the available wheel requires changes to our python build. Its now available in the 'devel' version of our centos7 builds. At least import tensorflow works now..

[dlange@lxplus031 dlange]$ scram p CMSSW_9_1_DEVEL_X_2017-03-23-1100
WARNING: Release CMSSW_9_1_DEVEL_X_2017-03-23-1100 is not available for architecture slc7_amd64_gcc493.
Developer's area is created for available architecture slc7_amd64_gcc630.
[dlange@lxplus031 dlange]$ cd CMSSW_9_1_DEVEL_X_2017-03-23-1100
[dlange@lxplus031 CMSSW_9_1_DEVEL_X_2017-03-23-1100]$ cmsenv
[dlange@lxplus031 CMSSW_9_1_DEVEL_X_2017-03-23-1100]$ python
Python 2.7.11 (default, Mar 23 2017, 15:35:17)
[GCC 6.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import tensor flow

now onto the C++ interface..

@mharrend
Copy link

mharrend commented Mar 24, 2017 via email

@mharrend
Copy link

mharrend commented Apr 3, 2017

Dear @davidlange6,

I have now managed to build the Tensorflow C++ API library and also a Tensorflow PIP wheel package for SLC6.
Please checkout my recipe in
https://github.com/mharrend/tensorflow-c--api/blob/master/Jenkinsfile
and let me know if I can help you further, so that we get Tensorflow backported to CMSSW_8_0_X.

If you follow the instructions you can install obtained PIP wheel file via
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
pip install wheel-file.name

Best regards,

Marco

@mharrend
Copy link

mharrend commented Apr 7, 2017

Dear @davidlange6,

for at least the CMSSW_8_0_26_patch1 version it is now quite easy to use Tensorflow in the following way:

export PYTHONPATH=/afs/cern.ch/work/m/mharrend/public/tensorflow-cmssw8-0-26-patch1/site-packages:$PYTHONPATH

For a check if Tensorflow works:

python -m tensorflow

or better check:

git clone https://gitlab.cern.ch/mrieger/TensorflowTest.git
scram b -j
run_tftest

Hopefully, this is useful.

Best regards,

Marco

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.

None yet

3 participants