mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-06-04, 01:26   #342
Citrix
 
Citrix's Avatar
 
Jun 2003

112×13 Posts
Default

Quote:
Originally Posted by rogue View Post
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.
Citrix is online now   Reply With Quote
Old 2020-06-04, 03:09   #343
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·11·269 Posts
Default

Quote:
Originally Posted by Citrix View Post
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?
rogue is offline   Reply With Quote
Old 2020-06-04, 03:15   #344
Citrix
 
Citrix's Avatar
 
Jun 2003

112×13 Posts
Default

Quote:
Originally Posted by rogue View Post
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)")
Citrix is online now   Reply With Quote
Old 2020-06-04, 13:22   #345
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·11·269 Posts
Default

Quote:
Originally Posted by Citrix View Post
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?
rogue is offline   Reply With Quote
Old 2020-06-05, 02:44   #346
Citrix
 
Citrix's Avatar
 
Jun 2003

112·13 Posts
Default

Quote:
Originally Posted by rogue View Post
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?
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
Citrix is online now   Reply With Quote
Old 2020-06-05, 12:21   #347
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

10111000111102 Posts
Default

Quote:
Originally Posted by Citrix View Post
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
rogue is offline   Reply With Quote
Old 2020-06-06, 05:42   #348
Citrix
 
Citrix's Avatar
 
Jun 2003

112·13 Posts
Default

Quote:
Originally Posted by rogue View Post
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

The first opencl link has both .lib and header files
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?
Citrix is online now   Reply With Quote
Old 2020-06-06, 11:25   #349
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

591810 Posts
Default

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.
rogue is offline   Reply With Quote
Old 2020-06-06, 12:54   #350
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

17·79 Posts
Default

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
pepi37 is offline   Reply With Quote
Old 2020-06-06, 14:19   #351
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·11·269 Posts
Default

Quote:
Originally Posted by pepi37 View Post
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.
rogue is offline   Reply With Quote
Old 2020-06-06, 14:19   #352
Citrix
 
Citrix's Avatar
 
Jun 2003

157310 Posts
Default

Quote:
Originally Posted by rogue View Post
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.
Citrix is online now   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 02:52.

Mon Sep 28 02:52:48 UTC 2020 up 18 days, 3 mins, 0 users, load averages: 1.38, 1.62, 1.59

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.