mersenneforum.org mtsieve
 Register FAQ Search Today's Posts Mark Forums Read

2020-06-04, 01:26   #342
Citrix

Jun 2003

112·13 Posts

Quote:
 Originally Posted by rogue I found and fixed two issues in the CullenWoodallWorker class. It no longer hangs and it runs cleanly on OS X. One was caused by a change in the framework. The other by indexing beyond the bounds of an array. That latter triggers a crash on OS X, but behaves unpredictably on Windows.
I was able to give this a try by replacing the CullenWoodallWorker class. No improvement. Still crashes.

In the latest build the gcwsievecl does work on my computer.

Would this have to do with opencl lib used. I am not using the AMD tool kit.

Any thoughts?

BTW there is an undeclared function in Cullenwoodallapp.cpp. Possibly a typo.

2020-06-04, 03:09   #343
rogue

"Mark"
Apr 2003
Between here and the

171E16 Posts

Quote:
 Originally Posted by Citrix I was able to give this a try by replacing the CullenWoodallWorker class. No improvement. Still crashes. In the latest build the gcwsievecl does work on my computer. Would this have to do with opencl lib used. I am not using the AMD tool kit. Any thoughts? BTW there is an undeclared function in Cullenwoodallapp.cpp. Possibly a typo.
Hmm. I will have to run some more tests then. Is this the same error you were seeing before? What command line parameters are you using?

2020-06-04, 03:15   #344
Citrix

Jun 2003

30458 Posts

Quote:
 Originally Posted by rogue Hmm. I will have to run some more tests then. Is this the same error you were seeing before? What command line parameters are you using?
Code:
gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s +
Same error. Crashes after printing banner. Though the gcwsievecl.exe from latest release does work as I mentioned before.

I believe it has something to do with not having proper libraries at the time of compile etc. I do get the following warning. Not sure if it makes a difference.

Code:
In file included from cullen_woodall/../core/../opencl/../CL/cl.h:22,
from cullen_woodall/../core/../opencl/Device.h:22,
from cullen_woodall/../core/App.h:26,
from cullen_woodall/../core/FactorApp.h:14,
from cullen_woodall/../core/AlgebraicFactorApp.h:14,
from cullen_woodall/CullenWoodallApp.h:16,
from cullen_woodall/CullenWoodallWorker.h:11,
from cullen_woodall/CullenWoodallWorker.cpp:12:
cullen_woodall/../core/../opencl/../CL/../CL/cl_version.h:22:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")

2020-06-04, 13:22   #345
rogue

"Mark"
Apr 2003
Between here and the

2·11·269 Posts

Quote:
 Originally Posted by Citrix Code: gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s + Same error. Crashes after printing banner. Though the gcwsievecl.exe from latest release does work as I mentioned before. I believe it has something to do with not having proper libraries at the time of compile etc. I do get the following warning. Not sure if it makes a difference. Code: In file included from cullen_woodall/../core/../opencl/../CL/cl.h:22, from cullen_woodall/../core/../opencl/Device.h:22, from cullen_woodall/../core/App.h:26, from cullen_woodall/../core/FactorApp.h:14, from cullen_woodall/../core/AlgebraicFactorApp.h:14, from cullen_woodall/CullenWoodallApp.h:16, from cullen_woodall/CullenWoodallWorker.h:11, from cullen_woodall/CullenWoodallWorker.cpp:12: cullen_woodall/../core/../opencl/../CL/../CL/cl_version.h:22:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2) #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
Where did you d/l the OpenCL libraries that you are using? It doesn't crash for me on Windows or OS X.

BTW, what is the undeclared function that you were referring to?

2020-06-05, 02:44   #346
Citrix

Jun 2003

112·13 Posts

Quote:
 Originally Posted by rogue Where did you d/l the OpenCL libraries that you are using? It doesn't crash for me on Windows or OS X. BTW, what is the undeclared function that you were referring to?

I get this error with the latest release

Code:
cullen_woodall/CullenWoodallApp.cpp: In member function 'virtual void CullenWoodallApp::ValidateOptions()':
cullen_woodall/CullenWoodallApp.cpp:191:4: error: 'SetMaxPrimeForSingleWorker' was not declared in this scope
SetMaxPrimeForSingleWorker(pForSingleWorker);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cullen_woodall/CullenWoodallApp.cpp:191:4: note: suggested alternative: 'pForSingleWorker'
SetMaxPrimeForSingleWorker(pForSingleWorker);
^~~~~~~~~~~~~~~~~~~~~~~~~~
pForSingleWorker
mingw32-make: *** [makefile:117: cullen_woodall/CullenWoodallApp.o] Error 1

2020-06-05, 12:21   #347
rogue

"Mark"
Apr 2003
Between here and the

10111000111102 Posts

Quote:
 Originally Posted by Citrix https://github.com/GPUOpen-Libraries...L-SDK/releases & https://github.com/KhronosGroup/OpenCL-Headers I get this error with the latest release Code: cullen_woodall/CullenWoodallApp.cpp: In member function 'virtual void CullenWoodallApp::ValidateOptions()': cullen_woodall/CullenWoodallApp.cpp:191:4: error: 'SetMaxPrimeForSingleWorker' was not declared in this scope SetMaxPrimeForSingleWorker(pForSingleWorker); ^~~~~~~~~~~~~~~~~~~~~~~~~~ cullen_woodall/CullenWoodallApp.cpp:191:4: note: suggested alternative: 'pForSingleWorker' SetMaxPrimeForSingleWorker(pForSingleWorker); ^~~~~~~~~~~~~~~~~~~~~~~~~~ pForSingleWorker mingw32-make: *** [makefile:117: cullen_woodall/CullenWoodallApp.o] Error 1
Hmm. Which compiler are you using? Is it the current version of that compiler? That is a protected method in App.h, so a child class should be able to call it. What if you change App.h to make it public?

The first link you provided only has OpenCL headers. What OpenCL libraries are you linking against? Can you compile and link with the headers then it fails at runtime? If so, then I suspect the libraries to be an issue. If you cannot compile or link, it could be an issue with the code.

Last fiddled with by rogue on 2020-06-05 at 12:27

2020-06-06, 05:42   #348
Citrix

Jun 2003

30458 Posts

Quote:
 Originally Posted by rogue Hmm. Which compiler are you using? Is it the current version of that compiler? That is a protected method in App.h, so a child class should be able to call it. What if you change App.h to make it public? The first link you provided only has OpenCL headers. What OpenCL libraries are you linking against? Can you compile and link with the headers then it fails at runtime? If so, then I suspect the libraries to be an issue. If you cannot compile or link, it could be an issue with the code.
I am using MinGW

I cannot find AMD SDK online. The one I could find was for openGL.
The code compiles fine but crashes on runtime. All cl apps crash for me (eg afsieve etc - so it has more to do with the header/lib than the code)

Any other SDK you can recommend?

 2020-06-06, 11:25 #349 rogue     "Mark" Apr 2003 Between here and the 2·11·269 Posts Okay. I'll try compiling and linking against that and see if I can reproduce. I did find the AMD SDK here: https://www.softpedia.com/get/Progra...ream-SDK.shtml.
 2020-06-06, 12:54 #350 pepi37     Dec 2011 After milion nines:) 53F16 Posts I found bug in latest 2..0.1 package ( twinsieve) Twinsieve ignore start sieving position in command, but uses header in sieve file. Previous version works ok
2020-06-06, 14:19   #351
rogue

"Mark"
Apr 2003
Between here and the

2×11×269 Posts

Quote:
 Originally Posted by pepi37 I found bug in latest 2..0.1 package ( twinsieve) Twinsieve ignore start sieving position in command, but uses header in sieve file. Previous version works ok
Thanks for the bug report. I'll take a look. It is possible that this is affecting all sieves.

2020-06-06, 14:19   #352
Citrix

Jun 2003

110001001012 Posts

Quote:
 Originally Posted by rogue Okay. I'll try compiling and linking against that and see if I can reproduce. I did find the AMD SDK here: https://www.softpedia.com/get/Progra...ream-SDK.shtml.
The windows version only has openGL. I do not see an openCL.lib. I tried this yesterday.

I also tried using the headers from the Khronos group (2nd link) and using opencl.dll driver provided by AMD with no luck.