![]() |
[QUOTE=rogue;546830]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.[/QUOTE]
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. |
[QUOTE=Citrix;547112]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.[/QUOTE] 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? |
[QUOTE=rogue;547119]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?[/QUOTE]
[CODE] gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s + [/CODE] 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)") [/CODE] |
[QUOTE=Citrix;547120][CODE]
gcwsievecl.exe -p 3770000000000 -P 4000000000000 -b 2 -n 825 -N 1000 -s + [/CODE] 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)") [/CODE][/QUOTE] 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? |
[QUOTE=rogue;547150]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?[/QUOTE] [url]https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases[/url] & [url]https://github.com/KhronosGroup/OpenCL-Headers[/url] 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 [/code] |
[QUOTE=Citrix;547198][url]https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases[/url] & [url]https://github.com/KhronosGroup/OpenCL-Headers[/url]
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 [/code][/QUOTE] 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. |
[QUOTE=rogue;547211]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.[/QUOTE] 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? |
Okay. I'll try compiling and linking against that and see if I can reproduce.
I did find the AMD SDK here: [url]https://www.softpedia.com/get/Programming/SDK-DDK/ATI-Stream-SDK.shtml[/url]. |
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 |
[QUOTE=pepi37;547279]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[/QUOTE] Thanks for the bug report. I'll take a look. It is possible that this is affecting all sieves. |
[QUOTE=rogue;547277]Okay. I'll try compiling and linking against that and see if I can reproduce.
I did find the AMD SDK here: [url]https://www.softpedia.com/get/Programming/SDK-DDK/ATI-Stream-SDK.shtml[/url].[/QUOTE] 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. |
| All times are UTC. The time now is 22:33. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.