Project

General

Profile

Bug #1935

Charm++ version and commit information is not available in tarball downloads of repo

Added by Karthik Senthil 3 months ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
06/15/2018
Due date:
% Done:

0%


Description

If the repository is downloaded as a tarball from Gerrit, the version and last commit ID is not printed. Presumably the variable CmiCommitID is not populated.

Output of hello program in such a repo:

Charmrun> scalable start enabled. 
Charmrun> started all node programs in 1.677 seconds.
Charm++> Running in non-SMP mode: 4 processes (PEs)
Converse/Charm++ Commit ID: 
Charm++> scheduler running in netpoll mode.

History

#1 Updated by Sam White 3 months ago

  • Assignee set to Evan Ramos

#2 Updated by Evan Ramos 3 months ago

The code in src/scripts/Makefile that generates the definition of CmiCommitID must have run for a Charm++ program to build without a linker error indicating its absence. However, if no VERSION file is present, the string will be blank.

commitid.c: VERSION
    echo "extern const char * const CmiCommitID;" > $@
    echo "const char * const CmiCommitID = \"`cat VERSION`\";" >> $@

Does Gerrit have any way of running a script during the tarball assembly process? If not, I don't know if there is any way to resolve this issue.

#3 Updated by Evan Ramos 3 months ago

  • Status changed from New to Feedback

#4 Updated by Evan Ramos 2 months ago

  • Priority changed from Normal to Low

#5 Updated by Evan Ramos about 1 month ago

  • Assignee changed from Evan Ramos to Ronak Buch

Also available in: Atom PDF