mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing > GpuOwl

Reply
Thread Tools
Old 2019-04-13, 23:14   #1079
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Post

Quote:
Originally Posted by kriesel View Post
I've never used git; I always download a zipfile [...]
Ken, I updated the Makefile with the target gpuowl-win (changed the executable name accordingly, you'll get gpuowl-win, you need to rename it if the name is not good), added the strip too for the windows target.

If you don't have git, you need to put something manually in version.inc, changing this line:
echo "`git describe --long --dirty --always`" > version.inc
to something like:
echo "v6.5-8-g005297a" > version.inc

If you're building the version string manually, don't worry about the middle number, just replace it with 'x' such: v6.5-x-g005297a

The convention now is, if there are uncommited changes (local changes to the source), to suffix with -dirty: v6.5-x-g005297a-dirty , do indicate it's not exactly equal to that commit. (But for a public build it would be nice to be not-dirty, of course.)

You may try to install git, it may make the workflow a bit easier. After the initial "git clone" you'll only need "git pull" to get the delta.

Last fiddled with by preda on 2019-04-13 at 23:15
preda is offline   Reply With Quote
Old 2019-04-13, 23:19   #1080
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by SELROC View Post
I don't know what it means, it seems that a string is missing,


echo "git describe --long --dirty" > version.inc
fatal: No names found, cannot describe anything.
echo Version: cat version.inc
Version: ""
Thanks! I didn't realize that the tag is not pushed by default to remote on "git push", fixed now. If you retry, the version should be properly set now. Also added a check which rejects an empty VERSION on compilation, to prevent non-intentional build without version.

So, "git describe" searches for a git tag where it takes the version string from (e.g. "v6.5"), and it didn't like that there was no tag at all, because I forgot to push the tag to remote.

Last fiddled with by preda on 2019-04-13 at 23:26
preda is offline   Reply With Quote
Old 2019-04-14, 01:27   #1081
SELROC
 

1,013 Posts
Default

Quote:
Originally Posted by preda View Post
Thanks! I didn't realize that the tag is not pushed by default to remote on "git push", fixed now. If you retry, the version should be properly set now. Also added a check which rejects an empty VERSION on compilation, to prevent non-intentional build without version.

So, "git describe" searches for a git tag where it takes the version string from (e.g. "v6.5"), and it didn't like that there was no tag at all, because I forgot to push the tag to remote.

It has a git tag now, however it is not a version like x.y
  Reply With Quote
Old 2019-04-14, 07:31   #1082
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

22·32·23 Posts
Default

Quote:
Originally Posted by SELROC View Post
It has a git tag now, however it is not a version like x.y
It's just the commit hash which is all that's in version.inc. I'm prepending "6.5-x-" for now.


Quote:
Originally Posted by kriesel View Post
Would need to first install git, yes? in the msys/mingw environment that's atop Windows 7, where the compiling gets done, I think. It looks like it's already there in msys2/mingw.

This gives 5 ways on windows, some oriented to Win 10.
https://www.jamessturtevant.com/post...it-on-Windows/
If you already have it in mingw try that, otherwise I'd try the commandline bit of git for windows from your link.
M344587487 is offline   Reply With Quote
Old 2019-04-14, 07:38   #1083
SELROC
 

2·3·17·31 Posts
Default

Quote:
Originally Posted by M344587487 View Post
It's just the commit hash which is all that's in version.inc. I'm prepending "6.5-x-" for now.

The commit hash is a precise way to specify a version, probably we need no more information for the purpose.
  Reply With Quote
Old 2019-04-14, 10:46   #1084
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by SELROC View Post
It has a git tag now, however it is not a version like x.y
What do you mean, what is it like?

The version is supposed to look something like this:
v6.5-8-g005297a or v6.5-8-g005297a-dirty

Which gives at the same time a logical idea of the version (6.5), and access to the commit.
preda is offline   Reply With Quote
Old 2019-04-14, 10:49   #1085
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by M344587487 View Post
It's just the commit hash which is all that's in version.inc. I'm prepending "6.5-x-" for now.
It might have just the hash because you didn't pull the git tag ("v6.5") yet. Probably after the next git pull this will be solved.
preda is offline   Reply With Quote
Old 2019-04-14, 11:03   #1086
SELROC
 

2×11×269 Posts
Default

Quote:
Originally Posted by preda View Post
What do you mean, what is it like?

The version is supposed to look something like this:
v6.5-8-g005297a or v6.5-8-g005297a-dirty

Which gives at the same time a logical idea of the version (6.5), and access to the commit.



https://github.com/preda/gpuowl/issues/43
  Reply With Quote
Old 2019-04-14, 11:52   #1087
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

22·32·23 Posts
Default

Quote:
Originally Posted by SELROC View Post
The commit hash is a precise way to specify a version, probably we need no more information for the purpose.
It is but not human-readable. The format preda is using is x.y-z-hash, might as well follow convention.

Quote:
Originally Posted by preda View Post
It might have just the hash because you didn't pull the git tag ("v6.5") yet. Probably after the next git pull this will be solved.
That did it. I was on the latest commit and either pulled before you added the tag or "git pull origin master" doesn't get the tag.
M344587487 is offline   Reply With Quote
Old 2019-04-14, 12:48   #1088
SELROC
 

2,477 Posts
Default

Quote:
Originally Posted by M344587487 View Post
It is but not human-readable. The format preda is using is x.y-z-hash, might as well follow convention.

That did it. I was on the latest commit and either pulled before you added the tag or "git pull origin master" doesn't get the tag.

exact, only "git pull" gets the tag.
  Reply With Quote
Old 2019-04-14, 14:30   #1089
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Default

Warning for ROCm users: refrain from upgrading to recently-released ROCm 2.3, there is a 5% perf degradation. https://github.com/RadeonOpenCompute/ROCm/issues/766
preda is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1676 2021-06-30 21:23
GPUOWL AMD Windows OpenCL issues xx005fs GpuOwl 0 2019-07-26 21:37
Testing an expression for primality 1260 Software 17 2015-08-28 01:35
Testing Mersenne cofactors for primality? CRGreathouse Computer Science & Computational Number Theory 18 2013-06-08 19:12
Primality-testing program with multiple types of moduli (PFGW-related) Unregistered Information & Answers 4 2006-10-04 22:38

All times are UTC. The time now is 22:21.


Fri Aug 6 22:21:58 UTC 2021 up 14 days, 16:50, 1 user, load averages: 2.83, 3.23, 3.15

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.