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

[Sonic] Add OpenCV external #5747

Merged
merged 8 commits into from May 22, 2020

Conversation

mrodozov
Copy link
Contributor

@mrodozov mrodozov commented Apr 15, 2020

please test
@kpedro88

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 15, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5705/console Started: 2020/04/15 18:13

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mrodozov (Mircho Rodozov) for branch IB/CMSSW_11_1_X/master.

@cmsbuild, @smuzaffar, @mrodozov, @tulamor can you please review it and eventually sign? Thanks.
cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

-1

Tested at: 3511c39

CMSSW: CMSSW_11_1_X_2020-04-14-2300
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6311d9/5705/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests RelVals AddOn

  • Unit Tests:

I found errors in the following unit tests:

---> test testPhase2PixelNtuple had ERRORS
---> test materialBudgetTrackerPlots had ERRORS
---> test testAlignmentOfflineValidation had ERRORS
---> test testTauEmbeddingProducers had ERRORS

  • RelVals:

When I ran the RelVals I found an error in the following workflows:
101.0 step1

runTheMatrix-results/101.0_SingleElectronE120EHCAL+SingleElectronE120EHCAL/step1_SingleElectronE120EHCAL+SingleElectronE120EHCAL.log

250202.181 step2
runTheMatrix-results/250202.181_TTbar_13UP18+TTbar_13UP18+PREMIXUP18_PU25+DIGIPRMXLOCALUP18_PU25+RECOPRMXUP18_PU25+HARVESTUP18_PU25/step2_TTbar_13UP18+TTbar_13UP18+PREMIXUP18_PU25+DIGIPRMXLOCALUP18_PU25+RECOPRMXUP18_PU25+HARVESTUP18_PU25.log

  • AddOn:

I found errors in the following addon tests:

cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run2_mc_Fake1 --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run2_25ns --fileout file:RelVal_Raw_Fake1_MC.root : FAILED - time: date Wed Apr 15 21:56:36 2020-date Wed Apr 15 21:49:12 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run2_mc_2018 --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run2_2018 --fileout file:RelVal_Raw_2018_MC.root : FAILED - time: date Wed Apr 15 22:03:13 2020-date Wed Apr 15 21:49:13 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run3_mc_GRun --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run3 --fileout file:RelVal_Raw_GRun_MC.root : FAILED - time: date Wed Apr 15 22:02:48 2020-date Wed Apr 15 21:49:17 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run3_mc_PRef --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run3 --fileout file:RelVal_Raw_PRef_MC.root : FAILED - time: date Wed Apr 15 21:57:37 2020-date Wed Apr 15 21:49:28 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_8TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run1_mc_Fake --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --fileout file:RelVal_Raw_Fake_MC.root : FAILED - time: date Wed Apr 15 21:56:45 2020-date Wed Apr 15 21:49:38 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run3_mc_HIon --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run3_pp_on_PbPb --fileout file:RelVal_Raw_HIon_MC.root : FAILED - time: date Wed Apr 15 21:58:45 2020-date Wed Apr 15 21:49:43 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run2_mc_Fake2 --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run2_2016 --fileout file:RelVal_Raw_Fake2_MC.root : FAILED - time: date Wed Apr 15 21:57:21 2020-date Wed Apr 15 21:49:45 2020 s - exit: 34304
cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run3_mc_PIon --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --era Run3 --fileout file:RelVal_Raw_PIon_MC.root : FAILED - time: date Wed Apr 15 21:59:52 2020-date Wed Apr 15 21:54:37 2020 s - exit: 34304

@cmsbuild
Copy link
Contributor

Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

@mrodozov , without adding toolfile and dependency in cmssw-tool-conf , cmsBuild is not going to build this. Please provide a toolfile for this and add opencv-toolfile in cmssw-tool-conf.

Did you try building it on aarch64 and ppc64le?

@mrodozov
Copy link
Contributor Author

hm, right. there is no existing reference. I'll add the toolfile
no I didn' build it on arm and ppc yet but it's simple enough and I'm not expecting any trouble there.

@davidlange6
Copy link
Contributor

how does this work with python3?

@mrodozov
Copy link
Contributor Author

let me post the cmake config for short:

-- Found PythonInterp: /build/mrodozov/Sonic_externals/build_grpc/slc7_amd64_gcc820/external/python/2.7.15-bcolbf/bin/python2.7 (found suitable version "2.7.15", minimum required is "2.7")           
-- Found PythonLibs: /build/mrodozov/Sonic_externals/build_grpc/slc7_amd64_gcc820/external/python/2.7.15-bcolbf/lib/libpython2.7.so (found suitable exact version "2.7.15+")                           
Traceback (most recent call last):                                                                                                                                                                     
  File "<string>", line 1, in <module>                                                                                                                                                                 
ImportError: No module named numpy.distutils                                                                                                                                                           
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.2")                                                                                                    
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.6.8")                                                                                       
Traceback (most recent call last):                                                                                                                                                                     
  File "<string>", line 1, in <module>                                                                                                                                                                 
ModuleNotFoundError: No module named 'numpy'

there are cmake vars that can be added to the config to make it find both py2 and 3 , but because the config from @kpedro88 aimed to build opencv libs I didn't add them.
If the concern is 'how do we make this work only with py3' I actually don't know.
It only needed to find py2 to build it so I didn't check

@davidlange6
Copy link
Contributor

seems more cmake options are needed to pick up the right python environment.

@mrodozov
Copy link
Contributor Author

mrodozov commented Apr 21, 2020

please test
I added all libs I found in the lib dir to the toolfile.
works for both py2 and 3 with import cv2 to use it

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 21, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/5806/console Started: 2020/04/21 19:14

@cmsbuild
Copy link
Contributor

Pull request #5747 was updated.

@smuzaffar
Copy link
Contributor

+externals
we will merge it after cmssw 11.1.0.pre8

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IB/CMSSW_11_1_X/master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

Pull request #5747 was updated.

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 22, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/6523/console Started: 2020/05/22 20:47

@smuzaffar smuzaffar merged commit 37d5106 into cms-sw:IB/CMSSW_11_1_X/master May 22, 2020
@cmsbuild
Copy link
Contributor

+1
Tested at: 6191986
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6311d9/6523/summary.html
CMSSW: CMSSW_11_1_X_2020-05-22-1100
SCRAM_ARCH: slc7_amd64_gcc820

@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-6311d9/6523/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 36
  • DQMHistoTests: Total histograms compared: 2780792
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2780726
  • DQMHistoTests: Total skipped: 50
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 35 files compared)
  • Checked 152 log files, 16 edm output root files, 36 DQM output files

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

5 participants