microsoft / caffe

Caffe on both Linux and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

caffe version returns CAFFE_VERSION

Coderx7 opened this issue · comments

How am I supposed to query a compiled caffe's version?
I tried using the -version switch, but I got CAFFE_VERSION as the output!
Is this a glitch?

 N:\Caffe\Build\x64\Release>caffe.exe -version
caffe.exe version CAFFE_VERSION

You must modify caffe\windows\caffe\caffe.vcxproj.
Open it and add the following content to 58L.

<ClCompile>
  <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);CAFFE_VERSION=1.0.0-rc3</PreprocessorDefinitions>
</ClCompile>

And after rebuild by release, you will be able to see version strings in commad prompt looks like.

D:\Works\Lib\Microsoft\caffe\Build\x64\Release>caffe.exe -version
caffe.exe version 1.0.0-rc3

Thanks, but this is not actually what I mean, see there are constant changes to the master-branch, and yet they are all rc3. the build version must be there as well.
I lately faced couple of issues that were fixed in the latest commits, and since I have rc! and the site shows rc3 I didnt bother checking any further to check if meanwhile there were some changes or not!.
I guess we really need to add an automatic build number to the project so anyone who compiles and runs caffe know for sure which build he/she is using!

Oh, I'm sorry for misunderstanding. You are correct. Assembly should increment build number automatically.
But I have no idea to resolve your hope because I am not familiar with C++ project. C++ project is very complex.

No, Thanks for your help any way.
by the way , This link can be helpful I guess : http://stackoverflow.com/questions/6920548/is-it-possible-to-add-a-version-number-using-git-github