Skip to content

WIP: Initial version of lwtnn for LCG 93

Ben Couturier requested to merge bcouturi/lcgcmake:SPI-1043 into LCG_93

This is an attempt to add lwtnn to the LCG stack, build it and prepare the RPMs.

This is teh recipe I followed:

git clone -b LCG_93 https://gitlab.cern.ch/sft/lcgcmake.git

Then built according to instructions from the repo, rebuilding only eigen as a test.

(I therefore used the following cmake command:

cmake -DLCG_INSTALL_PREFIX=/cvmfs/sft.cern.ch/lcg/releases -DLCG_VERSION=93 -DLCG_IGNORE='eigen' -DCMAKE_INSTALL_PREFIX=../lcgcmake-install ../lcgcmake )

Then I modified the LCGCMake files with Marco's help (beware, the URL for lwtnn is hardcoded), and managed to build it.

To package it, I went back to the top dir (i.e. same level as lcgcmake) then ran:

git clone https://gitlab.cern.ch/sft/lcgjenkins.git

cd lcgcmake-install

../lcgjenkins/extract_LCG_summary.py . x86_64-centos7-gcc62-opt 93 RELEASE

../lcgjenkins/LCGRPM/package/createLCGRPMSpec.py -p x86_64-centos7-gcc62-opt --release=1 --match=".lwtnn." -o lwtnn.spec ./LCG_externals_x86_64-centos7-gcc62-opt.txt

Then the directory contains too many RPMs:

/tmp/rpmbuild/RPMS/noarch/ -rw-r--r--. 1 lben z5 2132 17. Apr 17:58 LCG_93_gcc_6.2.0_x86_64_centos7-1.0.0-1.noarch.rpm -rw-r--r--. 1 lben z5 3456 17. Apr 17:58 LCG_93_lwtnn_2.6_x86_64_centos7_gcc62_opt-1.0.0-1.noarch.rpm -rw-r--r--. 1 lben z5 1764 17. Apr 17:58 LCG_93_x86_64_centos7_gcc62_opt-1.0.0-1.noarch.rpm -rw-r--r--. 1 lben z5 419524 17. Apr 17:58 lwtnn-9c0a2_2.6_x86_64_centos7_gcc62_opt-1.0.0-1.noarch.rpm

LCG_93_x86_64_centos7_gcc62_opt-1.0.0-1.noarch.rpm is there by construction, but we can ignore it. I need to debug to understand why LCG_93_gcc is there.

One issue is the distribution of the LCG_externals txt file, but we can also recreate the RPM that releases it and bump up the release number (as we do for the LHCb RPMs)

Ben

Merge request reports