mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-05-29, 10:35   #320
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

5,953 Posts
Default

Quote:
Originally Posted by Citrix View Post
I was finally able to modify the GPU code. I had to do the Perl portion manually. The script did not work for me. It goes into an infinite while loop. The code did compile.

Though I cannot get the code to run. I have tried the original gcwsievecl.exe from mtsieve and that does not work either. afsievecl.exe does not work either. ppsieve (open cl) etc works fine.

Any thoughts on how to fix this.
Hmm. Are you getting an error at runtime with gcwsievecl? If so, what error are you getting?

In the meantime, I'll do some tests to see if it is working for me. Maybe I broke something with a more recent change.

Last fiddled with by rogue on 2020-05-29 at 10:36
rogue is offline   Reply With Quote
Old 2020-05-29, 23:10   #321
Citrix
 
Citrix's Avatar
 
Jun 2003

32×52×7 Posts
Default

Quote:
Originally Posted by rogue View Post
Hmm. Are you getting an error at runtime with gcwsievecl? If so, what error are you getting?

In the meantime, I'll do some tests to see if it is working for me. Maybe I broke something with a more recent change.

No message, It does crash before the start banner is printed. Possibly I am not using the input line correctly.

I am using :- Should I be using something else? Both programs crash for me.

Code:
gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s + 
afsievecl.exe -n 825 -N 1000

Even using "any*cl.exe -h" will crash and not print the help options.
Citrix is offline   Reply With Quote
Old 2020-05-30, 01:19   #322
Citrix
 
Citrix's Avatar
 
Jun 2003

32×52×7 Posts
Default

Looking at the code more closely -

In the make file for linking the *cl files the $(GPUCPPFLAGS) and $(*_GPU_OBJS) is missing so the compiler does not even build the GPU.o files.

I now have
Code:
gcwsievecl: $(GPU_CORE_OBJS) $(PRIMESIEVE_OBJS) $(ASM_OBJS) $(GCW_OBJS) $(GCW_GPU_OBJS)
	$(CC) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(GPUCPPFLAGS) $(GPULDFLAGS) $(EXTRALDFLAGS)
In ip_CullenWoodallApp->GetDevice() ; there is no function defined as GetDevice.
Maybe an object of device type needs to be created under CullenWoodallGpuWorker.

Then use function *GetDeviceIdPtr or GetDeviceId (in device.h)

Are you able to correct the code?
Citrix is offline   Reply With Quote
Old 2020-05-30, 12:51   #323
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

174116 Posts
Default

I really messed up the makefile for GPU builds. You need this line:

GCW_GPU_OBJS=cullen_woodall/CullenWoodallApp_gpu.o cullen_woodall/CullenWoodallWorker.o cullen_woodall/CullenWoodallGpuWorker_gpu.o

and this line:

gcwsievecl: $(GPU_CORE_OBJS) $(PRIMESIEVE_OBJS) $(ASM_OBJS) $(GCW_GPU_OBJS)
$(CC) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(GPULDFLAGS) $(EXTRALDFLAGS)

to get a clean build. I haven't tested it yet, but I know that I have to fix the other OpenCL exes.

Thanks for the find.

BTW, I just committed an updated makefile that should fix all OpenCL exes.

Last fiddled with by rogue on 2020-05-30 at 13:02
rogue is offline   Reply With Quote
Old 2020-05-30, 15:15   #324
Citrix
 
Citrix's Avatar
 
Jun 2003

157510 Posts
Default

It did not work for me.
Citrix is offline   Reply With Quote
Old 2020-05-30, 15:16   #325
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

5,953 Posts
Default

Quote:
Originally Posted by Citrix View Post
It did not work for me.
Did not compile or failed when it ran?
rogue is offline   Reply With Quote
Old 2020-05-30, 16:38   #326
Citrix
 
Citrix's Avatar
 
Jun 2003

62716 Posts
Default

Quote:
Originally Posted by rogue View Post
Did not compile or failed when it ran?
Did not compile - "too many paths"
Citrix is offline   Reply With Quote
Old 2020-05-30, 16:51   #327
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

5,953 Posts
Default

I made another change to the makefile which might address the issue. Both gcwsieve and gcwsievecl run on Windows, but I haven't tried any GPU workers. It builds, but fails on OS X, for an unknown reason that I have to look into.
rogue is offline   Reply With Quote
Old 2020-05-30, 16:57   #328
Citrix
 
Citrix's Avatar
 
Jun 2003

30478 Posts
Default

Quote:
Originally Posted by rogue View Post
I made another change to the makefile which might address the issue. Both gcwsieve and gcwsievecl run on Windows, but I haven't tried any GPU workers. It builds, but fails on OS X, for an unknown reason that I have to look into.
Where do you get the new makefile from?
Citrix is offline   Reply With Quote
Old 2020-05-30, 17:32   #329
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

5,953 Posts
Default

Quote:
Originally Posted by Citrix View Post
Where do you get the new makefile from?
I had committed to svn.

Last fiddled with by rogue on 2020-05-30 at 17:33
rogue is offline   Reply With Quote
Old 2020-05-30, 17:54   #330
Citrix
 
Citrix's Avatar
 
Jun 2003

32·52·7 Posts
Default

Quote:
Originally Posted by rogue View Post
I had committed to svn.
You need to add gcwsievecl to

GPU_PROGS=afsievecl mfsievecl gfndsievecl pixsievecl xyyxsievecl

Compiles for me and at least I get
"gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s +
gcwsieve v1.2, a program to find factors numbers of the form n*b^n+1 and n*b^n-1
Sieve started: 377e10 < p < 4e12 with 0 terms (825 <= n <= 1000, n*2^n+1) (expecting 0 factors)"

Then it crashes.

Last fiddled with by Citrix on 2020-05-30 at 18:05
Citrix is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 09:37.

Wed Oct 28 09:37:01 UTC 2020 up 48 days, 6:47, 2 users, load averages: 1.73, 1.66, 1.60

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.