riga / cmsdist

CMS Offline Software build configuration
Other
0 stars 0 forks source link

[WIP] TensorFlow 2.0 #1

Open riga opened 4 years ago

riga commented 4 years ago

The purpose if this issue is to document the steps required to have a running TensorFlow 2.0 installation. Commits are pushed to the tf-2.0 branch.

@smuzaffar @mrodozov

riga commented 4 years ago

Testing different --cxxopts:

(test_deepjet.py)

mrodozov commented 4 years ago

The memcpy issue I solved adding cstring, see the last commit on https://github.com/cms-externals/tensorflow/tree/cms/v1.13.1

mrodozov commented 4 years ago

@riga the https://github.com/riga/cmsdist/tree/tf-2.0 branch is copy of 820 , right ? We wil also need the cmssw code to link against (maybe post a link here to branch or something)

riga commented 4 years ago

@mrodozov Yes, I started from https://github.com/cms-sw/cmsdist/tree/tf-2.0 which @smuzaffar prepared to include the changes he proposed.

For the CMSSW code: except for the custom sessions, the code we have in the release already compiles correctly (but linking fails of course). Therefore I didn't create a branch yet, but you can do

# the usual checkout
export SCRAM_ARCH=slc7_amd64_gcc820
cmsrel CMSSW_11_0_0_pre9
cd cmsrel CMSSW_11_0_0_pre9/src
cmsenv

# checkout tensorflow and remove custom code
git cms-init
git cms-addpkg PhysicsTools/TensorFlow
rm -f PhysicsTools/TensorFlow/{src,interface}/{NTSession.*,TBBSession.*}

scram b