![]() |
![]() |
#320 | |
"Mark"
Apr 2003
Between here and the
5·1,249 Posts |
![]() Quote:
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 |
|
![]() |
![]() |
![]() |
#321 | |
Jun 2003
62B16 Posts |
![]() Quote:
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. |
|
![]() |
![]() |
![]() |
#322 |
Jun 2003
1,579 Posts |
![]()
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) 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? |
![]() |
![]() |
![]() |
#323 |
"Mark"
Apr 2003
Between here and the
5·1,249 Posts |
![]()
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 |
![]() |
![]() |
![]() |
#324 |
Jun 2003
157910 Posts |
![]()
It did not work for me.
![]() |
![]() |
![]() |
![]() |
#325 |
"Mark"
Apr 2003
Between here and the
5·1,249 Posts |
![]() |
![]() |
![]() |
![]() |
#326 |
Jun 2003
1,579 Posts |
![]() |
![]() |
![]() |
![]() |
#327 |
"Mark"
Apr 2003
Between here and the
5×1,249 Posts |
![]()
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.
|
![]() |
![]() |
![]() |
#328 |
Jun 2003
1,579 Posts |
![]()
Where do you get the new makefile from?
|
![]() |
![]() |
![]() |
#329 |
"Mark"
Apr 2003
Between here and the
5×1,249 Posts |
![]() Last fiddled with by rogue on 2020-05-30 at 17:33 |
![]() |
![]() |
![]() |
#330 |
Jun 2003
62B16 Posts |
![]()
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 |
![]() |
![]() |